Omron NY532-1500 User Manual page 284

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

Advertisement

10 Sample Programming
If ResetON is TRUE (i.e., when the external button is ON) and the command current velocity is zero, the error is reset.
MC_Axis000.Status.ErrorStop
ResetON
ST Programming
// Check that the Servo Drive is ready when StartPg is TRUE and turn ON the Servo for axis 0.
// If the Servo Drive is not ready, turn OFF the Servo for axis 0.
IF (StartPg=TRUE)
AND (MC_Axis000.DrvStatus.Ready=TRUE) THEN
Pwr_En:=TRUE;
ELSE
Pwr_En:=FALSE;
END_IF;
// If a minor fault level error occurs for axis 0, the error handler for the device (FaultHandler) is executed.
// Program the FaultHandler according to the device.
IF MC_Axis000.MFaultLvl.Active=TRUE THEN
FaultHandler();
END_IF;
// If ResetON is TRUE (i.e., when the external button is ON) and the command current velocity is zero, the error is
reset.
IF (ResetOn=TRUE)
AND (MC_Axis000.Status.ErrorStop=TRUE)
AND (MC_Axis000.Details.Idle=TRUE) THEN
Reset_Ex := TRUE;
END_IF;
// MC_Power
PWR(
Axis
Enable := Pwr_En,
Status
Busy
Error
ErrorID => Pwr_ErrID
);
// MC_Reset
RESET(
Axis
Execute := Reset_Ex,
Done
Busy
Failure => Reset_Fai,
Error
ErrorID => Reset_ErrID
);
10-8
MC_Axis000
MC_Axis000.Details.Idle
// Minor fault is reset.
:= MC_Axis000,
=> Pwr_Status,
=> Pwr_Bsy,
=> Pwr_Err,
:= MC_Axis000,
=> Reset_D,
=> Reset_Bsy,
=> Reset_Err,
NY-series Industrial Panel PC / Industrial Box PC Motion Control User's Manual (W559)
RESET
MC_Reset
Axis
Axis
Execute
Done
Busy
Failure
Error
ErrorID
Reset_D
Reset_Bsy
Reset_Fail
Reset_Err
Reset_ErrID

Advertisement

Table of Contents
loading

Table of Contents