4. Configuration of Operation Program
28
© Copyright Reserved Autonics Co., Ltd.
4.1.1
Commands in the Operation Program
The operation program has 12 commands as shown below.
Command type
Code
Description
Drive commands
ABS
Move absolute position
INC
Move relative position
HOM
Home search
I/O commands
IJP
Jump input condition
OUT
On/Off of Output port
OTP
ON pulse from output port
Program control commands
JMP
Jump
REP
Start repetition
RPE
End repetition
END
End program
Others
TIM
Timer
NOP
No operation
Now, each command is described as shown below.
ABS Move absolute position
CMD
Data
STD
TIM
END.P
Both
ABS
Absolute position(-8388608 ~ +8388607)
1~4
0~3
0/1
0/1
Move the specified distance on the basis of the home to absolute position.
● Data : Input the movement position to absolute value. This value can be configured in mm or inch if pulse
nominator/denominator is configured(refer to 3.3). The default value is the pulse value since the
nominator and denominator of pulse scale are equal.
The range of data configuration for pulse value is between -8388608 and +8388607.
●
SPD : This value selects the drive speed in moving.
Drive speed 1~4 are the speeds registered in parameters configuration(Refer to 3.3).
● TIM : This value specifies the waiting time until the next register is executed after the movement is
completer. If 1, 2 and 3 are specified at TIM, the time of the post timer 1 to 3 is registered in a
parameter(see 3.3). If the waiting time is not configured, zero is set to TIM.
● END.P : If 1 is specified, the end pulse comes out FROM the nDRIVE/END output signal of parallel P I/
F after the movement is completed. However, the end pulse pulse must be pre-enabled in mode
configuration and the drive end pulse width must be, also, previously configured in parameter
configuration.
● Both : When ABS only operates on X-axis, 0 is configured. When the ABS operates on X-axis and Y-axis
and waits to be stopped, 1 is configured.
This Both function is only applied to ABS, INC and HOM commands on X-axis.
If Both=1, Y-axis with the same register number must have the same commands(ABS, INC and
HOM commands) to move the Y-axis at the same time.
If commands are different from each other, Error occurs.
【
Note for Both
】
In case executing the program with Both function, make sure that only X-axis should be executed only.
When Both register reaches after program is executed, both X and Y axis for the register will be executed
together. If executing both axis programs together after making each X and Y axis separate program, Error
will occur. In other words, Y axis will be used as an auxiliary axis for X-axis.