Omron NX701-1 User Manual page 324

Machine automation controller nj/nx-series cpu unit
Hide thumbs Also See for NX701-1:
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,
NJ/NX-series CPU Unit Motion Control User's Manual (W507)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nx102-1Nx102-90Nj501Nj301-1Nx1p2-1Nx1p2-90 ... Show all

Table of Contents