3 Devices
DVP-20PM Application Manual
3-34
Example 4: Using COM1/COM2 in an RTU mode
COM1: (9,600, 8, E, 1, RTU)
MOV
H87 D1036
SET M1138
M1002
SET M1139
COM2: (9,600, 8, E, 1, RTU)
MOV
H87 D1120
SET M1120
M1002
SET M1143
Communication
timeout
D1038
If an RS-485 port on a DVP-20PM series motion controller functions as a slave station,
users can set a communication timeout. The value in D1038 is in the range of 0 to
3,000 (0 to 30 seconds). The unit used is 10 milliseconds. If the value in D1038 is not
in the range of 0 to 3,000, the value in D1038 will become 0. The value in D1038 must
be less than the value in D1000.
Fixed scan
time
M1039 and D1039
1. If M1039 is ON, the time it takes for the program to be scanned will depend on the
value in D1039. If the execution of a program is complete, the program will not be
scanned again until the fixed scan time set elapses. If the value in D1039 is less
than the time it takes for a program to be scanned, the time it takes for a program
to be scanned, will be given priority.
M1039
Fixed scan time
M1000
Normally-open
contact
D1039K20MOV P
The fixed scan time is 20 milliseconds.
2. The values stored in D1010~D1012 include the value stored in D1039.
Setting an OX
motion subroutine
er
1. The users have to set bit 14 in D1868 to 1, set bit 15 in D1868 to 1, or set bit 14
and bit 15 in D1868 to 1. Besides, the users have to write K99 (H63) into bit 0~bit
13 in D1868, that is, the Ox motion subroutine number specified is Ox99. To sum
up, the users have to write H8063 into D1868.
numb
M1074 and D1868
Users can specify an Ox motion subroutine by setting D1868. The steps of setting
D1868 are as follows.
2. After M1074 is set to ON, the Ox motion subroutine specified by D1868 will be
executed.
The program is shown below.
MOVP H8063 D1868
SET M1074
X0
In the main program O100, X0 starts the motion subroutine Ox99.