![Omron SYSMAC CJ1W-SCU21-V1 Скачать руководство пользователя страница 271](http://html1.mh-extra.com/html/omron/sysmac-cj1w-scu21-v1/sysmac-cj1w-scu21-v1_operation-manual_743586271.webp)
242
Communications Frames
Section 6-8
Note
Use either of the following methods to specify the serial port using
the CMND(490) instruction.
• Set 80/81 hex + 4
×
unit number directly as the serial port unit address
in the send destination unit address bits 00 to 07 of C+3. (With this
method, set the serial port number (physical port) to 0 hex (not used)
in bits 08 to 11 of C+2)
• Set the unit address of the Serial Communications Board/Unit itself
(Board: E1 hex; Unit: 10 hex + unit number) in the send destination unit
address bits 00 to 07 of C+3, and set the serial port numbers (Port
number 1: 1 hex; Port number 2: 2 hex) in the serial port number (phys-
ical port) bits 08 to 11 of C+2.
• Host Link FINS
Always set the unit address of the actual destination unit.
Sending Modbus-RTU Commands
• Set the FINS command code 2804 hex indicating the Modbus-RTU con-
version in S.
• Set the slave address (1 byte) + FUNCTION code (1 byte) + communica-
tions data (n bytes) in order of leftmost byte to rightmost bytes (see note)
from S+1 onwards.
Note
For Modbus-RTU, set the Modbus-RTU slave address (1 byte) in the leftmost
byte of S+1, and the FUNCTION code (1 byte) in the rightmost byte of S+.
Example of Sending Modbus-RTU Command Using CMND(490) Instruction
This example is for writing a frequency reference value from an OMRON
3G3MV Inverter connected through RS-485 to the Serial Communications
Unit via two networks, Ethernet-to-Controller Link.
Example: The CMND(490) instruction is executed in the PLC for Ethernet.
The Modbus-RTU command for writing frequency reference value data is sent
via Ethernet to the 3G3MV Inverter (Modbus-RTU slave address: 02) that is
connected to port 1 (Unit address: 80 hex + 4 hex
×
unit number 3 = 8C hex)
of the Serial Communications Unit (Unit number: 3), that is mounted to the
PLC on the Controller Link (Network address: 2; Node address: 5). The fre-
quency reference value 10.0 Hz (set as 100 decimal in units of 0.1 Hz) is writ-
ten.
The Modbus-RTU command is configured from the following elements.
Modbus-RTU slave address: 02
FUNCTION code: 10 hex (DATA WRITE)
Write start register No.: 0002 hex (frequency reference)
Write data: 0064 hex (100 decimal)
Содержание SYSMAC CJ1W-SCU21-V1
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ...x...
Страница 15: ...xvi...
Страница 89: ...60 Basic Operating Procedure Section 1 9...
Страница 151: ...122 RS 232C and RS 422A 485 Wiring Section 3 4...
Страница 173: ...144 Host Link Function for Replacing Existing PLCs Section 4 6...
Страница 223: ...194 Enhanced Protocol Macro Functions Section 5 6...
Страница 277: ...248 Communications Frames Section 6 8...
Страница 291: ...262 Basic Operating Procedure in No protocol Mode Section 7 4...
Страница 301: ...272 Auxiliary Area and CIO Area Allocations Section 8 3...
Страница 391: ...362 Introduction Appendix A...
Страница 421: ...392 CompoWay F Master Protocol Appendix B...
Страница 513: ...484 E5 K Digital Controller Read Protocol Appendix F...
Страница 571: ...542 E5ZE Temperature Controller Write Protocol Appendix I...
Страница 587: ...558 E5 J Temperature Controller Protocol Appendix J...
Страница 627: ...598 ES100 Digital Controller Protocol Appendix K...
Страница 661: ...632 V500 V520 Bar Code Reader Protocol Appendix M...
Страница 697: ...668 3Z4L Laser Micrometer Protocol Appendix N...
Страница 717: ...688 Visual Inspection System Protocol Appendix O...
Страница 755: ...726 V600 V620 ID Controller Protocol Appendix P...
Страница 763: ...734 Hayes Modem AT Command Protocol Appendix Q...
Страница 767: ...738 Changing Communications Port Settings Using STUP 237 Appendix R...
Страница 781: ...752 Revision History...