Amtech
6-116
6
In-built PLC Command Detail Description:
1. END (OPCODE
000)
This command indicates End of PLC program. Any command after this command (END) will not be
executed.
Input Command
000000000000
2. REG_LD (OPCODE
001)
This command is used to Load 16-bit signed value into selected register.
Example,
REG_LD Rn 32000
Where,
Rn = Register Number (0 to 85)
Input Command
001001032000
001 indicates Command OPCODE
001 indicates Register Number 1
032000 indicate 16-bit value (32000).
3. REG32_LD (OPCODE
002)
This command is used to load 32-bit value into 32-bit Register.
Example,
REG32_LD Rn
Where,
Rn = Register Number (0 to 113)
32-bit register = value of Register (n) as a high byte and the value of Register (n+1) as a low byte.
Input Command
002001000000
002 Indicate Command OPCODE
001 Indicates Register Number 1
000 Not used
000 Not used
4. REG32_ST (OPCODE
003)
This command is used to store 32-bit value into Register.
Example,
REG32_ ST Rn
Where,
Rn = Register Number (0 to 84)
High byte of 32-bit value will be store into selected Rn and Low byte of 32-bit value will be stored into
selected R (n+1).
Input Command
003001000000
003 Indicate Command OPCODE
001 Indicates Register Number 1
000 Not used
000 Not used
5. REGDEC (OPCODE
005)
This command is used to Decrement the value of selected register by one.
Example,
REGDEC Rn
Where,
Rn = Register Number (0 to 85)