Omron NY532-1500 User Manual page 303

Ny-series ipc machine controller industrial panel pc / industrial box pc
Hide thumbs Also See for NY532-1500:
Table of Contents

Advertisement

// If home is defined for axis 0 and axis 1 and the axes group is disabled, the axes group is enabled.
IF (MC_Group000.Status.Disabled=TRUE)
AND (Hm1_D=TRUE) AND (Hm2_D=TRUE) THEN
Grp_En_Ex:= TRUE;
END_IF;
// If the axes group is enabled, absolute linear interpolation is executed.
IF MC_Group000.Status.Ready=TRUE THEN
Mv_Lin_Abs_Ex:=TRUE;
END_IF;
// If the external button turns ON (i.e., StopOn changes to TRUE) during execution of absolute linear interpolation,
the axes group is stopped.
IF (MC_Group000.Status.Moving=TRUE)
AND (StopOn=TRUE) THEN
Grp_Stp_Ex := TRUE;
END_IF;
// If the CommandAborted or Error output variable from the Group Stop instruction are TRUE, the axes group is
stopped immediately.
IF (Grp_Stp_Ca=TRUE)
OR (Grp_Stp_Err=TRUE) THEN
Grp_Imd_Stp_Ex:=TRUE;
END_IF;
//MC_Power
PWR1(
Axis
Enable := Pwr1_En,
Status
Busy
Error
ErrorID => Pwr1_ErrID
);
PWR2(
Axis
Enable := Pwr2_En,
Status
Busy
Error
ErrorID => Pwr2_ErrID
);
//MC_Home
HM1(
Axis
Execute
Done
Busy
CommandAborted
Error
ErrorID
);
HM2(
Axis
Execute
Done
Busy
CommandAborted
Error
ErrorID
);
NY-series Industrial Panel PC / Industrial Box PC Motion Control User's Manual (W559)
:= MC_Axis000,
=> Pwr1_Status,
=> Pwr1_Bsy,
=> Pwr1_Err,
:= MC_Axis001,
=> Pwr2_Status,
=> Pwr2_Bsy,
=> Pwr2_Err,
:= MC_Axis000,
:= Hm1_Ex,
=> Hm1_D,
=> Hm1_Bsy,
=> Hm1_Ca,
=> Hm1_Err,
=> Hm1_ErrID
:= MC_Axis001,
:= Hm2_Ex,
=> Hm2_D,
=> Hm2_Bsy,
=> Hm2_Ca,
=> Hm2_Err,
=> Hm2_ErrID
10 Sample Programming
10
10-27

Advertisement

Table of Contents
loading

Table of Contents