EasyManuals Logo

Omron NX701-1 User Manual

Omron NX701-1
448 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #392 background imageLoading...
Page #392 background image
10 Sample Programming
10-86
NJ/NX-series CPU Unit Motion Control User’s Manual (W507)
This sample uses the MC_Write (Write MC Setting) instruction to change the settings of the In-Position
Check Time, Positive Software Limit, and Negative Software Limit.
10-2-17 Temporarily Changing Axis Parameters
Main Variables Used in the Programming Samples
Variable name Data type Default Comment
MC_Axis000 _sAXIS_REF --- This is the Axis Variable for axis 0.
InitFlag BOOL FALSE This variable indicates the status of parameter settings.
FALSE while parameters are changed.
TRUE after the changes to the parameters are completed.
StartPg BOOL FALSE This variable is used to execute the MC_Write instruction.
Ladder Diagram
Write1_Bsy
Write1_Ca
Write1_Err
Write1_ErrID
Write1_D
Done
Error
CommandAborted
SettingValue
Busy
ErrorID
Execute
WRITE1
MC_Write
SettingValue
Write1_Sv
ParameterNumber
Write1_Pn
TargetTarget
MC_Axis000
StartPg
Write2_Bsy
Write2_Ca
Write2_Err
Write2_ErrID
Write2_D
Done
Error
CommandAborted
SettingValue
Busy
ErrorID
Execute
WRITE2
MC_Write
SettingValue
Write2_Sv
ParameterNumber
Write2_Pn
TargetTarget
MC_Axis000
Write1_D
InitFlag
1
2
3
4
5
6
7
8
9
10
11
// In-position Check Time
Write1_Sv := UINT#10;
Write1_Pn := _eMC_PARAMETER_NUMBER#_mcInPosTime;
// Positive Software Limit
Write2_Sv := LREAL#10000.0;
Write2_Pn := _eMC_PARAMETER_NUMBER#_mcPosiSwLmt;
// Negative Software Limit
Write3_Sv := LREAL#-10000.0;
Write3_Pn := _eMC_PARAMETER_NUMBER#_mcNegaSwLmt;
// The Initialization Completed Flag is changed to TRUE.
InitFlag := TRUE;
The axis parameters are set. When setting the parameters is completed, InitFlag is changed to TRUE.
If StartPg is TRUE, the setting of the In-position Check Time is changed.
If changing the setting of the In-Position Check Time is completed,
the setting of the Positive Software Limit is changed.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NX701-1 and is the answer not in the manual?

Omron NX701-1 Specifications

General IconGeneral
BrandOmron
ModelNX701-1
CategoryController
LanguageEnglish

Related product manuals