2 / 30
目 录
一、位指令 ....................................................................................................................................... 3
1.检查是否闭合指令 (XIC) ...................................................................................................... 3
2.检查是否断开指令 (XIO) ...................................................................................................... 3
3.输出激励指令 (OTE) ............................................................................................................. 3
4.输出锁存指令 (OTL) ............................................................................................................. 3
5.输出解锁存指令 (OUT) ......................................................................................................... 4
6.一次响应指令 (ONS) ............................................................................................................. 4
7.上升沿触发指令 (OSR) ......................................................................................................... 4
8.下降沿触发指令 (OSF) .......................................................................................................... 5
二、计时器和计数器指令 ............................................................................................................... 5
1.延时导通计时器指令 (TON) ................................................................................................. 5
2.延时断开计时器指令 (TOF).................................................................................................. 6
3.保持型计时器 RTO ............................................................................................................... 7
4.加计数指令( CTU )............................................................................................................ 8
5.减计数指令( CTD )............................................................................................................ 8
6.复位指令( RES) ................................................................................................................ 9
三、比较指令 ................................................................................................................................. 10
1.比较指令( CMP ) ............................................................................................................. 10
2.等于指令( EQU ) ............................................................................................................. 11
3.大于或等于指令( GEQ) ................................................................................................. 12
4.大于指令( GRT) .............................................................................................................. 12
5.小于或等于指令( LEQ ) .................................................................................................. 13
6.小于指令( LES)............................................................................................................... 13
7.极限比较指令( LIM ) ...................................................................................................... 13
8.屏蔽等于指令( MEQ ) ..................................................................................................... 14
9.不等于指令( NEQ ) ......................................................................................................... 15
四、计算 /算术指令 ........................................................................................................................ 15
1 计算指令( CPT) ............................................................................................................. 15
2 加法指令 (ADD) ................................................................................................................. 17
3 减法指令 (SUB) .................................................................................................................. 17
4 乘法指令 (MUL) ................................................................................................................. 18
5.除法指令 (DIV) ................................................................................................................. 18
6 平方根指令 (SQR) .............................................................................................................. 19
7 取反指令 (NEG) .................................................................................................................. 20
五、传送 /逻辑指令 ........................................................................................................................ 20
1. 传送指令 (MOV) ................................................................................................................ 20
2. 屏蔽传送指令 (MVM) ....................................................................................................... 21
3. 位域分配 (BTD) ................................................................................................................. 22
4. 清零指令 (CLR) ................................................................................................................. 23
5. 按位与指令 (AND) ............................................................................................................ 23
6. 按位或指令 (OR) ............................................................................................................... 24