CHAPTER 13 RS-485 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
Assign [START] to CONT9.・・・ PA3_09: CONT9 signal assignment
Assign [INP] to OUT6. ・・・ PA3_56: OUT6 signal assignment
=7: Positioning operation
=4: [START]
=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
5 ms
5 ms
5 ms
5 ms
5 ms
5 ms
Query
Response
[START]
[INP]
Immediate value data setting 1 Immediate value data setting 2
OFF
ON
ON
OFF
Speed
Immediate value data
operation 1
Immediate value data
operation 2
(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
5 ms
Detection of time for 3
characters (38400 bps)
1.5 ms
Response
[START]
0.5 ms
Speed
0.5 ms
13-36 Modbus RTU Communications