5.1. Command list
5.1. Command list
Table 5‑1 Command table
Command | Description | |||
No. | Mnemonic | Name | Symbol | |
| RUNG | Rung | ├─┤ | Represents rung. |
| BST | Branch Start | ┬─ | Start of branch. |
| BND | Branch End | ─┬ | End of branch. |
| NXB | Nested Branch | └,├ | Nested branch. |
|
| Logic examine command |
| Check result, if true Rung activation/(false: deactivation) |
1 | XIC | Examine if Closed | -| |- | Examine if contact point is closed (A contact point) |
2 | XIO | Examine if Open | -|/|- | Examine if contact point is open (B contact point) |
3 | INV | Inverting | -//- | Inverting of Rung result. |
4 | EQU | Equal | -▤- | Examine if equal(=). |
5 | NEQ | Not Equal | -▤- | Examine if not equal. |
6 | LES | Less Than | -▤- | Examine if less than (<). |
7 | GRT | Greater Than | -▤- | Examine if greater than (>). |
8 | LEQ | Less Than or Equal | -▤- | Examine if less than or equal (<=). |
9 | GEQ | Greater Than or Equal | -▤- | Examine if greater than or equal (>=). |
|
| Output command |
|
|
10 | OTE | Output Energize | -( )- | Output Rung status (Activation:ON/Deactivation:OFF). |
11 | OTL | Output Latch | -(L)- | If Rung is activated, output is ON(high). |
12 | OTU | Output Unlatch | -(U)- | If Rung is activated, output is OFF(low). |
13 | OSR | One Shot Rising | -(OSR)- | If Rung is activated, output is ON only for one scan. |
14 | RES | Reset | -(RES)- | If Rung is activated, reset the timer or counter. |
|
| Timer and counter command |
|
|
15 | TON | Time On Delay | -▤- | Operate timer while Rung is in activation. |
16 | CTD | Count Down | -▤- | Down-count Rung’s activation (deactivation->activation). |
|
| Arithmetic command |
|
|
17 | ADD | Add | -▤- | If Rung is activated, (+) operation. |
18 | SUB | Subtract | -▤- | If Rung is activated, (-) operation. |
19 | MUL | Multiply | -▤- | If Rung is activated, (x) operation. |
20 | DIV | Divide | -▤- | If Rung is activated, (/) operation. |
21 | POW | Power | -▤- | If Rung is activated, (^:power) operation. |
|
| Data conversion command |
|
|
22 | TOD | Convert int. to BCD | -▤- | If Rung is activated, convert into BCD. |
23 | FRD | Convert form BCD to int. | -▤- | If Rung is activated, convert into Integer. |
24 | SEG | 7'Segment | -▤- | If Rung is activated, convert into 7’ Segment value. |
|
| Move and copy command |
|
|
25 | MOV | Move | -▤- | If Rung is activated, copy one data. |
26 | COP | Copy data | -▤- | If Rung is activated, copy multiple data. |
27 | CCOP | Conditional Copy data | -▤- | Copy multiple data according to the Rung status. |
|
| Applied command |
|
|
28 | ROT | Rotating Output | -▤- | If Rung is activated, output in rotation. |
|
| Block control command |
|
|
29 | FOR | For | -▤- | If Rung is activated, repeat execution until NEXT. |
30 | NEXT | Next | -▤- | If within repeat numbers, JUMP to FOR clause. |
31 | LBL | Label | -▤- | Designate location to Jump for Jump command. |
32 | JMP | Jump | -▤- | If Rung is activated, Jump to Label location. (if Label<0, Jump to –n number of Next). |
33 | CALL | Call | -▤- | If Rung is activated, call Sub-ladder. |
34 | END | End | -▤- | If Rung is activated, Sub-ladder end. |