Omron NJ501-1400 User Manual page 296

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

Advertisement

10 Sample Programming
Variable name
Mv_Feed_Ex
InitFlag
Ladder Diagram
When StartPg is TRUE, the status of process data communications of axis 0 is checked to see if communications
are active and normal.
StartPg
_EC_PDSlavTbl[MC_Axis000.Cfg.NodeAddress] _EC_CommErrTbl[MC_Axis000.Cfg.NodeAddress
The Servo for axis 0 is turned ON if process data communications for axis 0 are active and normal.
Lock
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.
MC_Axis000.MFaultLvl.Active
If the Servo is ON for axis 0 and home is not defined, the MC_Home instruction is executed.
Pwr_Status MC_Axis000.Details.Homed
The input parameters for interrupt feeding are set.
InitFlag
10-42
Data type
BOOL
BOOL
MC_Axis000
Axis
Enable
FaultHandler
EN
FaultHandler
MC_Axis000
1
// Parameters for MC_MoveFeed
2
Mv_Feed_TrigRef.Mode
3
Mv_Feed_TrigRef.LatchID
4
Mv_Feed_TrigRef.InputDrive := _eMC_TRIGGER_INPUT_DRIVE#_mcEncoderMark;
5
Mv_Feed_TrigVar
6
Mv_Feed_Pos
7
Mv_Feed_Vel
8
Mv_Feed_Acc
9
Mv_Feed_Dec
10
Mv_Feed_Dir
11
Mv_Feed_Mm
12
Mv_Feed_FeedDis
13
Mv_Feed_FeedVel
14
// The Input Parameter Initialization Completed Flag is changed to TRUE.
InitFlag := TRUE;
15
Default
FALSE
This variable is used to execute the
MC_MoveFeed (Interrupt Feeding) instruc-
tion. It is used in ST programming.
FALSE
TRUE if the input parameters are set for the
MC_MoveFeed instruction.
PWR
MC_Power
Axis
Status
Busy
Pwr_Bsy
Error
Pwr_Err
ErrorID
Pwr_ErrID
HM
MC_Home
Axis
Axis
Execute
Done
Busy
CommandAborted
Error
ErrorID
:= _eMC_TRIGGER_MODE#_mcDrive;
:= _eMC_TRIGGER_LATCH_ID#_mcLatch1;
:= FALSE;
:= LREAL#2000.0;
:= LREAL#1000.0;
:= LREAL#10000.0;
:= LREAL#10000.0;
:= _eMC_DIRECTION#_mcCurrentDirection;
:= _eMC_MOVE_MODE#_mcVelocity;
:= LREAL#500.0;
:= LREAL#500.0;
NJ-series CPU Unit Motion Control User's Manual (W507)
Comment
Lock
Pwr_Status
Hm_D
Hm_Bsy
Hm_Ca
Hm_Err
Hm_ErrID

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1500

Table of Contents