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

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

Advertisement

ST
Internal
Vari-
Variable
ables
Trigger
LastTrigger
OperatingStart
Operating
DevicePort
RecvDat
RecvSize
RecvStringDat
Code
NX_SerialRcv_in-
stance
RcvCfg
StartTrig
StartCode
EndTrig
EndCode
RcvSizeCfg
Option
TimeOut
LastDatRcv
Exter-
nal Vari-
ables
E001_NX_Unit_I_O_-
Data_Active_Sta-
tus_63
N1_Node_loca-
tion_information
// Detect when Trigger changes to TRUE.
IF ( (Trigger=TRUE) AND (LastTrigger=FALSE)
AND(E001_NX_Unit_I_O_Data_Active_Status_63[1]) AND (SerialRcv_in-
stance.Busy=FALSE) ) THEN
OperatingStart:=TRUE;
Operating:=TRUE;
DevicePort.DeviceType:=_eDEVICE_TYPE#_DeviceNXUnit;
DevicePort.NxUnit:=N1_Node_location_information;
DevicePort.Port.PortNo:=2;
END_IF;
LastTrigger:=Trigger;
// Set communications parameters and initialize SerialRcv instruction.

NY-series Instructions Reference Manual (W560)

Data type
BOOL
BOOL
BOOL
BOOL
_sDEVICE_PORT
ARRAY [0..255] of
BYTE
UINT
STRING[257]
ULINT
NX_SerialRcv
_sSERIAL_CFG
_eSERIAL_START
BYTE[2]
_eSERIAL_END
BYTE[2]
UINT
_sSERIAL_RCV_OP-
TION
TIME
BOOL
Variable
Data type
ARRAY[0..63] OF
BOOL
_sNXUNIT_ID
2 Instruction Descriptions
Initial value
FALSE
FALSE
FALSE
FALSE
[256(16#0)]
0
''
0
_SERIAL_START_NONE
[2(16#0)]
_SERIAL_END_END-
CODE1
[16#0D,16#00]
0
TIME#0s
FALSE
Comment
• Usage of I/O data for 63 NX Units.
• If the relevant Unit number is 1, E001_NX_Unit_I_O_-
Data_Active_Status_63[1] is used.
Device variable to specify NX-CIF210
Comment
Execution condition
Value of Trigger from
previous task period
Processing started
Processing
Port settings
Receive data
Receive data size
Barcode (integer)
Reception completion
setting
Without start code
With end code
16#0D(CR)
Option
2-1181
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents