GS-C200 / GS-C200S
P↓
Enter the programming mode
S10↓
Set the Start-stop rate to 100
steps/sec.
T100↓
Set the Slew speed rate to 1000
steps/sec.
R50↓
Set the Ramp length to 50 steps.
G500000↓ Goto the target position
E↓
End of the programming session.
The GS-C starts the program exe-
cution.
The G500000 command can be substituted by the
+500000 command. The program can also be
stored in the GS-C EEPROM by typing an M↓
command before the E↓ command.
Example 2
The program chosen for this example drills 5 equi-
distant holes on a metal bar. A GS-C and GS-D
motion system is used to control the vertical posi-
tion of the drill, while a second GS-C and GS-D
motion system is used for the proper bar loading
and positioning. To better clarify the operations to
be executed and to show the program simplicity, the
two command sequences and the relative process
flowcharts are also reported.
The programming session is entered following the
points 1 to 4 of the previous example. The first
command sequence, used to correctly position the
metal bar, is the following:
S10↓ Set the Start-stop speed to 100 steps/sec
T100↓ Set the Slew speed to 1000 steps/sec
R40↓ Set the ramp length to 40 steps
W1↓ Wait for the external Start
+250↓ Reach the first drilling position
L0↓
Loop starting point
A2↓
Activate the unit 2 forcing UO2 = 1
D1↓
Wait 0.1 sec
C2↓
Then reset UO2
W2↓ Wait until drilling completion
+120↓ Reach the drilling position 120 steps CW
L4↓
Repeat the loop 4 times
A2↓
Activate the unit 2 forcing UO2 = 1
C2↓
Then reset UO2
W2↓ Wait until drilling completion
+250↓ Reach the cutting position 250 steps CW
A1↓
Activate the cutting blade forcing UO1 = 1
D5↓
Wait 0.5 sec
C1↓
Clear cutting command resetting UO1
The second command sequence, used to drill the
metal bar, is the following:
S15↓ Set the Start-stop rate to 150 steps/sec
T200↓ Set the Slew rate to 200 steps/sec
R25↓ Set the Ramp length to 25 steps
W1↓ Wait for start
W2↓ Wait for a drilling command from unit 1
A2↓
Activate the drill motor forcing UO2 = 1
+150↓ Pull down the drill
D1↓
Wait 0.1 sec
G0↓
Lift the drill up
C2↓
Stop the drill motor
A1↓
Notify drilling completion to unit 1 forcing
UO1 = 1
D1↓
Wait 0.1 sec
C1↓
Then clear UO1
The combination of these two programs operates
only on one bar, then the two GS-C become avail-
able again to the Host both for the repetition of the
program or for the entering of a new command
sequence.
If the operation has to be repeated till the exhaus-
tion of bars, it will be sufficient to add, at the
beginning of the first sequence, the command;
U3↓
execute until UI3 = 1
which allows the drilling cycle to continue until the
controller which takes care of the bar positioning, is
notified to stop the operations.
This notification is accomplished by clearing the
User input UI3 of GS-C devoted to the positioning.
To demonstrate the efficiency of the GS-C program-
ming language it is worth to mention that the pro-
gram for the bar positioning uses 50 memory
locations, while the program for the drill control
needs only 36 memory locations. The two programs
can be contained in the GS-C memory thus making
the system simpler and easier to maintain.
21/31