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

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

Advertisement

Sample Programming
This sample gets the number of days in the current month.
LD
Internal
Variables
External
Variables
Always TRUE Flag
P_On
_CurrentTime
abc.Year
abc.Month
ST
Internal
Variables
External
Variables
DtToDateStruct(_CurrentTime, abc);
def:=GetDaysOfMonth(abc.Year, abc.Month);

NY-series Instructions Reference Manual (W560)

Variable
Data type
(Year:=0, Month:=0, Day:=0,
abc
_sDT
Hour:=0, Min:=0, Sec:=0, NSec:=0)
def
USINT
0
Variable
Data type
_CurrentTime
DATE_AND_TIME
DtToDateStruct
EN
ENO
In
DateStruct
GetDaysOfMonth
EN
ENO
Year
Month
Variable
Data type
(Year:=0, Month:=0, Day:=0,
abc
_sDT
Hour:=0, Min:=0, Sec:=0, NSec:=0)
def
USINT
0
Variable
Data type
_CurrentTime
DATE_AND_TIME
Initial value
Constant
abc
def
Initial value
Constant
2 Instruction Descriptions
Comment
Date and time
Days in current month
Comment
System Time of Day
Comment
Date and time
Days in current month
Comment
System Time of Day
2
2-639

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents