YASKAWA CP 341 Manual page 65

Rs422/485
Table of Contents

Advertisement

VIPA System 300S
6.4.4.11
FC 15 - Force Multiple Coils
6.4.4.12
FC 16 - Preset Multiple Registers
HB130 | CP | 341-1CH01 | en | 18-40
This function code serves to change up to 2040 (ASCII: 1976) bits in the slave.
DB SEND source
Address
Name
+0.0
ADDR
+1.0
FUNC
+2.0
start_addr
+4.0
bit_number
+6.0
coil_state[1]
n
start_addr
start_addr is not checked by the driver and is sent unchanged.
n
bit_number
Any value between 1...2040 (ASCII: 1...1976) is permitted as bit_number.
This indicates how many bits in the slave should be overwritten.
n
coil_state[1]
State Coil:
5Fh...58h
57h...50h
This function code serves to overwrite up to 127 (ASCII: 123) registers in the slave with
one request message.
DB SEND source
Address
Name
+0.0
ADDR
+1.0
FUNC
+2.0
start_register
+4.0
register_number
+6.0
data[1]
+8.0
data[2]
+10.0
data[3]
...
...
n
start_register
start_register is not checked by the driver and is sent unchanged.
n
register_number
Any value between 1...127 (ASCII: 1...123) is permitted as register_number.
This indicates the number of registers (1 register = 2bytes) to be read.
Communication protocols
Modbus > Modbus Master - Function codes
Type
Comment
BYTE
Slave address
BYTE
Function code
WORD
Bit start address
INT
Number of bits
WORD
State Coil
Type
Comment
BYTE
Slave address
BYTE
Function code
WORD
Register bit start address
INT
Register amount of bits
WORD
Register data
WORD
Register data
WORD
Register data
...
...
65

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vipa system 300s

Table of Contents