CHAPTER 13 RS-485 COMMUNICATIONS
13-36
Modbus RTU Communications
13
5. Communications example
5-1. Immediate value data operation
A Communications example for conducting positioning operation with immediate value data is
described.
Preparation
Select the positioning operation control mode.
・・・ PA1_01: Control mode selection =7: Positioning operation
Assign [START] to CONT9. ・・・ PA3_09: CONT9 signal assignment =4: [START]
Assign [INP] to OUT6. ・・・ PA3_56: OUT6 signal assignment =2: [INP]
Communications example
Turn on [S-ON] assigned to CONT1 to arrange the operation state, and perform communications
as shown below.
The example assumes a communications baud rate of 38400 bps.
5 ms 5 ms 5 ms 5ms 5ms 5ms 5ms 5 ms 5 ms
Query
Response
Speed
OFF
ON
Immediate value data setting 1
Immediate value data setting 2
Immediate value data
operation 1
Immediate value data
operation 2
ON
OFF
①
② ③ ④ ⑤ ⑤ ⑥ ⑦ ⑧ ⑧
(1) Write immediate value data setting 1 as immediate value data.
Setting 1: Designation method = ABS. Immediate value position = 500000 units.
Immediate value speed = 500.00 r/min
Query: 01 10 5100 0006 0C 00000000 0007A120 0000C350 D9EC (21 bytes)
Response: 01 10 5100 0006 50F7 (8 bytes)
(2) Write “1” (ON) to [START] to start positioning operation. (Immediate value data operation 1
based on immediate value data setting 1 starts.)
Query: 01 10 0000 0002 04 00000001 326F (13 bytes)
Response: 01 10 0000 0002 41C8 (8 bytes)
The detail timing at this time is shown below.
Query
Detection of time for 3