Omron NY532-1500 User Manual page 362

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
Main Variables Used in the Programming Samples
Variable name
MC_Axis000
InitFlag
StartPg
Ladder Diagram
The axis parameters are set. When setting the parameters is completed, InitFlag is changed to TRUE.
InitFlag
If StartPg is TRUE, the setting of the In-position Check Time is changed.
StartPg
If changing the setting of the In-Position Check Time is completed,
the setting of the Positive Software Limit is changed.
Write1_D
10-86
Data type
Default
_sAXIS_REF
---
BOOL
FALSE
BOOL
FALSE
1
// In-position Check Time
2
Write1_Sv := UINT#10;
3
Write1_Pn := _eMC_PARAMETER_NUMBER#_mcInPosTime;
4
// Positive Software Limit
5
Write2_Sv := LREAL#10000.0;
6
Write2_Pn := _eMC_PARAMETER_NUMBER#_mcPosiSwLmt;
7
// Negative Software Limit
8
Write3_Sv := LREAL#-10000.0;
9
Write3_Pn := _eMC_PARAMETER_NUMBER#_mcNegaSwLmt;
10
// The Initialization Completed Flag is changed to TRUE.
11
InitFlag := TRUE;
MC_Axis000
Target
Write1_Sv
SettingValue
Execute
Write1_Pn
ParameterNumber
MC_Axis000
Target
Write2_Sv
SettingValue
Execute
Write2_Pn
ParameterNumber
NY-series Industrial Panel PC / Industrial Box PC Motion Control User's Manual (W559)
Comment
This is the Axis Variable for axis 0.
This variable indicates the status of parameter settings.
FALSE while parameters are changed.
TRUE after the changes to the parameters are completed.
This variable is used to execute the MC_Write instruction.
WRITE1
MC_Write
Target
SettingValue
Done
Write1_Bsy
Busy
Write1_Ca
CommandAborted
Write1_Err
Error
Write1_ErrID
ErrorID
WRITE2
MC_Write
Target
SettingValue
Done
Write2_Bsy
Busy
Write2_Ca
CommandAborted
Write2_Err
Error
Write2_ErrID
ErrorID
Write1_D
Write2_D

Advertisement

Table of Contents
loading

Table of Contents