Communication
2.3 Modbus communication
SIMOCODE pro - Communication
104 Function Manual, 11/2018, A5E40508495002A/RS-AC/003
Function code 15 - Write Multiple Coils
Function
This function enables the Modbus master system to write several bits from the
SIMOCODE pro bit memory area.
A valid address from the bit memory area is expected as the start address. The selected
address must be designated as writable (see the tables in Section Modbus RTU data tables
(Page 277), "Access" column).
When writing several bits, they must be marked as a "writable" coherent block. A bit area
that is interrupted by read-only bits cannot be written to as a block.
Slave address Function code Start address Number of bits
Number of bytes Data CRC
1 byte 1 byte 2 bytes 2 bytes 2 bytes
Several output bits in the area of the PIQ (process image output) of the SIMOCODE pro with
slave address 16 are to be written via Modbus. Using these bits, the motor is usually
switched on and off, "Remote/Manual" mode selected, or a reset command output.
In the case shown, the motor is to be started and "Remote" mode activated for a
SIMOCODE device operated as a direct-on-line starter (see Chapter "Example circuits" in
the manual SIMOCODE pro - application examples
(https://support.industry.siemens.com/cs/ww/en/view/109743959)):
Value to be transferred: 000
b = 0x12