上海维宏电子科技股份有限公司
Weihong Electronic Technology Co., Ltd.
Specialized, Concentrated, Focused 51
PX[_], PY[_], PZ[_]:
PLC address of to-be triggered latch signals of X, Y and Z axes
LX_, LY_, LZ_:
Signal status to trigger latch of X, Y and Z axes
Programming Example:
G916 PX[00000]LX0;
’In the process of homing, encoder zero is used to trigger the latched encoder data. This
instruction informs the drive to write the configuration data of X axis and trigger latch when level
is low.
G918 Clearing Latch Flag Command
Format:
G918
Description:
Clears the flag bit of encoder latch of each axis.
Programming Example:
G918;
’Clear the latch flag of encoder of each axis before the encoder latches data. After latch is done,
the flag will be set as 1.
G919 Calculating Deceleration Distance of Cross-signal Trigger Point
Format:
G919 H_
Description:
H_: axis No. (0: X axis; 1: Y axis; 2: Z axis) that needs to calculate the deceleration distance from
the triggering point of cross-signal
Programming Example:
G919 H0;
’Calculate the cross-signal deceleration distance of X axis, i.e. the X axis will stop with
deceleration after passing through a waiting signal. This instruction calculates the distance
between triggering point and stop position.
4.4 Advanced Functions
G65 Subroutine Call Command
Command Format:
G65 P_ L_
Description:
P: to specify the sequence number or the name of a subprogram to be called
L: times of executing the subprogram
P is used to specify the sequence number or the name of a subprogram to be called in a macro
program. The subprogram will be executed L times. The default value of L is 1.
An argument can be defined in a user macro program if necessary.
The machine tool designer or the user can write some specific programs consisting of a group of
commands in Public.dat, and call them for execution with instruction G65.
Summary of Contents for Ncstudio
Page 74: ...RMB 21 00 ...