Omron NY532-1500 User Manual page 294

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
ST Programming
// If the external button is ON (i.e., if ResetOn changes to TRUE) while there is a minor fault level error,
// the MC_Reset (Reset Axis Error) instruction is executed.
IF (MC_Axis000.MFaultLvl.Active=TRUE)
AND (ResetOn=TRUE) THEN
Reset_Ex := TRUE;
ELSE
Reset_Ex := FALSE;
END_IF;
// If the Failure output variable from the MC_Reset instruction changes to TRUE,
// processing is performed to read the cause of the error with GetFaultFactor.
// Program GetFaultFactor according to the device.
IF (MC_Axis000.MFaultLvl.Active=TRUE)
AND (Reset_Fail=TRUE) THEN
GetFaultFactor();
END_IF;
// If a minor fault level error did not occur or was reset,
// normal device processing (RegularProcess) is performed.
// Program GetFaultFactor according to the device.
IF MC_Axis000.MFaultLvl.Active=FALSE THEN
RegularProcess();
END_IF;
// MC_Reset
RESET(
Axis
Execute := Reset_Ex,
Done
Busy
Failure => Reset_Fail,
Error
ErrorID => Reset_ErrID
);
10-18
// Minor fault is reset.
:= MC_Axis000,
=> Reset_D,
=> Reset_Bsy,
=> Reset_Err,
NY-series Industrial Panel PC / Industrial Box PC Motion Control User's Manual (W559)

Advertisement

Table of Contents
loading

Table of Contents