12 CONTROL AUXILIARY FUNCTIONS
(5) Teaching program example
PLC CPU data register
D27
D28
D29
D30
D40
D41
Positioning data
D42
(1 positioning
D43
amount)
D44
D45
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
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)
1
(Data No. 1)
(Current feed value is the address)
(Also write data other than the address)
1280
(0500
)
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
100000
(pulse/s)
0
(Address)
(Not used)
0
12 - 67
AD75 buffer memory
800
(Address)
Md. 29 Current feed value
801
to
Cd.4 Target axis
1103
Cd.5 Positioning data No.
1104
1105
Cd.6 Write pattern
Cd.7 (Read/write request)
1106
1107
1108
Positioning identifier
1109
1110
1111
1112
Command speed
1113
1114
Positioning address
1115
1116
1117
MELSEC-A
to
(Open)
M code
Dwell time
(Open)
Arc data