12 CONTROL AUXILIARY FUNCTIONS
PLC CPU data register
D27
D28
D29
D30
D40
D41
Positioning data
D42
(1 positioning
D43
amount)
D44
D45
(5) Teaching program example
The following shows a sequence program example for setting (writing) the
positioning data obtained with the teaching function to the AD75.
(a) Setting conditions
•
When setting the current feed value as the positioning address/arc
auxiliary point, write it when the BUSY signal is OFF.
(b) Program example 1
•
The following example shows a program in which the " Md.29 Current
feed value" is written to the "positioning address" of the axis 1 positioning
data No. 1, and the positioning data stored in D40 to D45 is written to the
other positioning data.
1
(Axis 1)
(Data No. 1)
1
(Current feed value is the address)
1280
(0500
)
(Also write data other than the address)
H
(Writing request)
2
(Control method: axis 1 linear ABS)
(Deceleration time: Use No. 0)
272
(0110
)
H
(Acceleration time: Use No. 1)
(Operation pattern: Positioning complete)
10
(M code No.)
1000
(ms)
0
(pulse/s)
100000
0
(Address)
(Not used)
0
800
(Address)
801
to
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
12 - 87
MELSEC-A
AD75 buffer memory
Md. 29 Current feed value
to
Cd.4 Target axis
Cd.5 Positioning data No.
Cd.6 Write pattern
Cd.7 (Read/write request)
(Open)
Positioning identifier
M code
Dwell time
(Open)
Command speed
Positioning address
Arc data