Chapter 8 Logic Instructions
Table of Contents
8.1 Table of Logic Instructions ......................................................................... 8-4
8.2 Explanation of Logic Instructions ............................................................... 8-7
8.2.1 EN and ENO .......................................................................................... 8-7
8.3 Sequence Input /Output Instructions ........................................................ 8-7
8.3.1 R_TRIG ................................................................................................ 8-7
8.3.2 F_TRIG ................................................................................................ 8-9
8.3.3 RS ..................................................................................................... 8-11
8.3.4 SR ..................................................................................................... 8-13
8.3.5 SEMA ................................................................................................. 8-15
8.4 Data Movement Instructions .................................................................... 8-17
8.4.1 MOVE ................................................................................................ 8-17
8.4.2 MoveBit .............................................................................................. 8-18
8.4.3 TransBit ............................................................................................. 8-20
8.4.4 MoveDigit ........................................................................................... 8-22
8.4.5 Exchange ........................................................................................... 8-24
8.4.6 Swap ................................................................................................. 8-26
8.5 Comparison Instructions .......................................................................... 8-28
8.5.1 LT ..................................................................................................... 8-28
8.5.2 LE ..................................................................................................... 8-30
8.5.3 GT ..................................................................................................... 8-32
8.5.4 GE ..................................................................................................... 8-34
8.5.5 EQ ..................................................................................................... 8-36
8.5.6 NE ..................................................................................................... 8-38
8.6 Timer Instructions ................................................................................... 8-40
8.6.1 TON ................................................................................................... 8-40
8.6.2 TOF ................................................................................................... 8-42
8.6.3 TP ..................................................................................................... 8-44
8.7 Counter Instructions ................................................................................ 8-46
8.7.1 CTU ................................................................................................... 8-46
8.7.2 CTD ................................................................................................... 8-48
8.7.3 CTUD ................................................................................................. 8-50
8.8 Math Instructions ..................................................................................... 8-53
8.8.1 ADD .................................................................................................. 8-53
8.8.2 SUB ................................................................................................... 8-56
8.8.3 MUL ................................................................................................... 8-59
8.8.4 DIV ................................................................................................... 8-62
8-1