Write To Multiple Coils [0F Hex] - Omron MX2 Series User Manual

Multi-function compact inverter
Hide thumbs Also See for MX2 Series:
Table of Contents

Advertisement

8 Communications Functions
⚫ Response
No.
1
Slave address
2
Function code
3
Test sub code (MSB)
4
Test sub code (LSB)
5
Data (MSB)
6
Data (LSB)
7
CRC-16 (MSB)
8
CRC-16 (LSB)
*1. Broadcasting cannot be performed.
The test sub code supports the Echo Query Data command (00 hex, 00 hex) only. Other commands are
not supported.
8-5-6

Write to Multiple Coils [0F hex]

Rewrites the ON/OFF status to consecutive multiple coils.
Example. Changing Status of Multi-function Input Terminals 1 to 7 of
Inverter with Slave Address 1
Change the ON/OFF status of the multi-function input terminal 1 to 7 as shown in the following table.
Item
Coil No.
Multi-function input terminal
Terminal status
⚫ Query
No.
1
Slave address
2
Function code
3
Coil start address (MSB)
4
Coil start address (LSB)
5
Number of coils (MSB)
6
Number of coils (LSB)
7
Number of bytes
8
Change data (MSB)
9
Change data (LSB)
10
CRC-16 (MSB)
CRC-16 (LSB)
8 - 16
Example
Field name
[hex]
*1
01
08
00
00
Any
Any
CRC
CRC
0007 hex 0008 hex 0009 hex
1
ON
Example
Field name
[hex]
*1
01
0F
*2
00
*2
06
00
07
02
*3
17
*3
00
06
98
Multi-function Compact Inverter 3G3MX2-EV2 User's Manual (I666-E1)
Data
000A hex
2
3
4
ON
ON
OFF
(Coil address) = (Coil number) − 1
17 hex = 0001 0111
Input terminal 7
000B hex
000C hex
000D hex
5
6
7
ON
OFF
OFF
Input terminal 1 input

Advertisement

Table of Contents
loading

Table of Contents