Special Functions
7, Single Register Write [REGW]
REGW K1 K500 D1
X0
K2
D1· S1· S2·D2·
8, Multi-register Write [MRGW]
MRGW K1 K500 K3 D1
X0
K2
D1· D2· D3· S1· S2·
z Write single register instruction, Modbus function code is 06H
Function: write the assigned register status to PLC’s assigned bureau’s assigned register.
Far away communication bureau number. Operands: K、TD、CD、D、FD
Far away communication bureau number. Operands: K、TD、CD、D、FD
Local receive register’s start ID. Operands: D
Port number. Bound: K1~K2
S2·
S1·
D2·
D1·
Instruction description: when X0 is ON, execute REGW or MRGW instruction. After finish
executing the instruction, set communication finish bit. No operation when X0 is OFF. If
communication errors, resend automatically. If reach 10 times, set communication error flag. User
can check the relative register to judge the reason.
z Write multi-register instruction, Modbus function code is 10H
Function: write the assigned input register status to PLC’s assigned bureau’s assigned register.
Far away communication bureau number. Operands: K、TD、CD、D、FD
Far away communication bureau number. Operands: K、TD、CD、D、FD
Register number. Operands: K、TD、CD、D、FD
Local receive register’s start ID. Operands: D
Port number. Bound: K1~K2
S1·
S2·
S3·
D1·
D2·
10