Omron NJ501-1400 User Manual page 342

Machine automation controller nj series cpu unit motion control
Hide thumbs Also See for NJ501-1400:
Table of Contents

Advertisement

10 Sample Programming
If changing the setting of the Positive Software Limit is completed, the setting of the Negative Software Limit is changed.
Write2_D
ST Programming
// The axis parameters are set. When setting the parameters is completed, InitFlag is changed to TRUE.
IF InitFlag=FALSE THEN
// In-position Check Time
// Positive Software Limit
// Negative Software Limit
// The Input Parameter Initialization Completed Flag is changed to TRUE.
InitFlag := TRUE;
END_IF;
// If StartPg is TRUE, the setting of the In-position Check Time is changed.
IF StartPg =TRUE THEN
Write1_Ex := TRUE;
END_IF;
// If changing the setting of the In-Position Check Time is completed, the setting of the Positive Software Limit is
changed.
IF Write1_D = TRUE THEN
Write2_Ex := TRUE;
END_IF;
// If changing the setting of the Positive Software Limit is completed, the setting of the Negative Software Limit is
changed.
IF Write2_D = TRUE THEN
Write3_Ex := TRUE;
END_IF;
// MC_Write
WRITE1(
Target
SettingValue
Execute
ParameterNumber
Done
Busy
CommandAborted
Error
ErrorID
);
10-88
MC_Axis000
Target
Write3_Sv
SettingValue
Execute
Write3_Pn
ParameterNumber
Write1_Sv := UINT#10#10;
Write1_Pn := _eMC_PARAMETER_NUMBER#_mcInPosTime;
Write2_Sv := LREAL#10000.0;
Write2_Pn := _eMC_PARAMETER_NUMBER#_mcPosiSwLmt;
Write3_Sv := LREAL#-10000.0;
Write3_Pn := _eMC_PARAMETER_NUMBER#_mcNegaSwLmt;
:= MC_Axis000,
:= Write1_Sv,
:= Write1_Ex,
:= Write1_Pn,
=> Write1_D,
=> Write1_Bsy,
=> Write1_Ca,
=> Write1_Err,
=> Write1_ErrID
WRITE3
MC_Write
Target
SettingValue
Done
Write3_Bsy
Busy
Write3_Ca
CommandAborted
Write3_Err
Error
Write3_ErrID
ErrorID
NJ-series CPU Unit Motion Control User's Manual (W507)
Write3_D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1500

Table of Contents