
16/31
Command
Description
Hs
The
Home
command allows the GS-C to find the mechanicalreference position.
The commandis followedby the argument that specifies the searching directionof the End Of
Travel switch.
The argument can be omittedand in such a casethe GS-C willexecute the command:
H+
↓
As soon as the GS-Creceives the
Home
command, it moves the motorin the selected directionat
the Start-Stopspeed (definedas the first instruction at the beginning of the program) until the End
Of Travelinput is brought to ”zero”. When thiscondition is reached the direction is reversed and the
movement continues until the Home input reaches the ”zero” logical level. The position counter is
then cleared as well as the program contained inthe RAM memory, and the controller is ready to
process a new command.In the GS-C200S, the position is also cleared, but the previous program,
present in the RAM is saved. Whenthe Home and the End Of Travel inputs are tied toghether the
system reference point will correspondto the End Of Travel position.
To allow the system homing also in a standalone application, an
Home
command is automatically
executed at start-up after the program recall. The Home direction isdefined by the logicstate ofthe
RxD input(pin 11) that when unconnected is equivalent to a
H+
command, while when connected to
the +5V pin it forces a
H–
command. In a stand-alone environment, when the
Home
command is
not needed, it is mandatory to ground the End od Traveland the Home inputs(pins 32and 30). The
Home
command is of the immediateexecution type.
Ix
The
Initialize
commandforces the GS-C module to be selectively inizialized.
The commandis followedby an argument whosevalue ranges between 1 and 3, and that specifies
where the action is addressed according to the following table:
1 = Position counter is cleared
2 = User outputs are cleared
3 = Position counter and User outputs are cleared.
The
Initialize
command is used to create a logicHome positionfor the GS-C200 if the 9999999
steps are not enough forthe specificapplication. Thisfunction is better performed by the force
command in the GS-C200S,for whichit isalso possible to insert this command into the program.
The
Initialize
command is of the immediateexecution type for the GS-C200, while it results of the
delayed/immediate execution type forthe GS-C200S and it occupies 2 memory locations.
jv **
The
jump
command, executed only by the GS-C200S, allows the user to move inside the program
and to repeat indefinitely a portion of the programitself.
The argument specifies the memory locationto be reachedand it ranges from0 (that is the program
starting point) to 118.
The
jump
command is of the delayed execution type and it occupies 2 memory locations.
jcv,y**
The
conditional jump
command,executed onlyby the GS-C200S module, allows the user to move
inside the program as a function of the logic state of the Userinputs.
The argument specifies both the memory location to be reached (
v
), that must range between 0 and
118, and the User input conditionto be matched(
y
) in orderto execute the
conditional jump.
The following example shows how powerful this command is:
jc0,40
↓
jc1,52
↓
jc2,74
↓
When the first command is encountered the moduletests the statusof the User input pins and if
theirvalue is 0 a jumpto the memory location 40 isexecuted. If the condition is not met the jumpis
not executed and the following instruction isexamined, and soon.
The
conditional jump
command isof the delayed execution type and it occupies 2 memory
locations.
K
The
Kill
command aborts the programexecution.
The program can be restarted justby issuing the Execute instruction which will start the sequence
from the first program instructionand not fromthe interrupt point; it istherefore advisable to always
send a Home instruction after a
Kill
instruction in order to allowthe system to start from a known
position.
The
Kill
command is of the immediateexecution type.
GS-C200/ GS-C200S