Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Precautions for Correct Use
Version Information
A CPU Unit with unit version 1.02 or later and Sysmac Studio version 1.03 or higher are required
to use this instruction.
Sample Programming
In this sample, the operating mode of the user program is defined with enumerated data type Enum-
Mode. To monitor the operating mode on the HMI, the value of variable myEnumMode (an enumeration
with a data type of EnumMode) is converted and the converted value is output to DINT variable Moni-
tor_myMode. For example, if the value of myEnumMode is mode2, the value of Monitor_myMode will
be 2.
 Data Type Definition
Name
EnumMode
mode0
mode1
mode2
LD
Name
myEnumMode
Monitor_myMode
P_On
myEnumMode
ST
Name
myEnumMode
Monitor_myMode
Monitor_myMode:=EnumToNum(myEnumMode);

NY-series Instructions Reference Manual (W560)

Enumeration value
---
Enumerated data type
0
Member
1
Member
2
Member
Data type
EnumMode
mode0
DINT
0
EnumToNum
EN
ENO
In
Monitor_myMode
Data type
EnumMode
mode0
DINT
0
2 Instruction Descriptions
Comment
Default
Value of mode in enumer-
ated data type
Monitored mode value
Default
Value of mode in enumer-
ated data type
Monitored mode value
Comment
Comment
2-313
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents