The direction of the DIO port bit belongs to must then be set to
"input" in order for the controller to detect the external event. Once
these preliminaries are completed, the controller will execute the user
specified stored program whenever it detects a change in the state –
HIGH to LOW logic level – of the corresponding DIO hardware.
Please review the examples below for further clarifications.
Example 1:
EP ABS0MM
|
Define stored program called "Abs0mm"
1MO;
2MO
|
Turn axes 1,2 ON
1TJ1;
2TJ1
|
Set trajectory mode for axes 1,2 to TRAPEZOID
1PA0; 2PA0
|
Move axes 1,2 to absolute 0 units
1WS100; 2WS100
|
Wait for axes 1,2 motion to complete
QP
|
End of program
0BG ABS0MM
|
Assign DIO #0 to run stored program called
|
"Abs0mm"
BO
04H
|
04H = (0100)Binary
|
Set DIO ports A, B to input and port C to output
|
i.e., set bits 0 – 15 to input and 16 – 23 to output
After the above commands are sent to the controller, the controller
will execute the stored program called "Abs0mm" when DIO bit #0
changes its state from HIGH to LOW logic level.
Example 2:
EP CYC2MM
|
Define stored program called "Cyc2mm"
1MO;
2MO
|
Turn axes 1,2 ON
1TJ1;
2TJ1
|
Set trajectory mode for axes 1,2 to TRAPEZOID
1PA0; 2PA0
|
Move axes 1,2 to absolute 0 units
1WS100; 2WS100
|
Wait for axes 1,2 motion to complete
DL
LOOP
|
Define a label called "LOOP"
1PR2;
2PR2
|
Move axes 1,2 by relative 2 units
1WS100; 2WS100
|
Wait for axes 1,2 motion to complete
1PR-2; 2PR-2
|
Move axes 1,2 by relative –2 units
1WS100; 2WS100
|
Wait for axes 1,2 motion to complete
JL LOOP,10
|
Jump to label called "LOOP" 10 times
QP
|
End of program
1BGCYC2MM
|
Assign DIO #1 to run stored program called
|
"Cyc2mm"
BO
04H
|
04H = (0100) Binary
|
Set DIO ports A, B to input and port C to output
|
i.e., set bits 0 – 15 to input and 16 – 23 to output
After the above commands are sent to the controller, the controller
will execute "Cyc2mm" stored program when DIO bit #1 changes its
state from HIGH to LOW logic level.
Section 4 – Advanced Capabilities
4-13
Summary of Contents for ESP300 Series
Page 1: ...ESP300 Motion Controller Driver User s Manual...
Page 4: ...ESP300 1999 EU Declaration of Conformity iv Preface...
Page 29: ...This page is intentionally left blank Section 2 Modes of Operation 1 15...
Page 30: ......
Page 230: ...4 16 Section 4 Advanced Capabilities...
Page 274: ...This page is intentionally left blank 6 6 Section 6 Servo Tuning...
Page 290: ...This page is intentionally left blank B 6 Appendix B Trouble Shooting and Maintenance...