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
SendDat
SendSize
NX_Seri-
alSend_instance
SendCfg
StartTrig
StartCode
EndTrig
EndCode
Exter-
nal Vari-
ables
E001_NX_Unit_I_O_Data_Ac-
tive_Status_63
N1_Node_location_information _sNXUNIT_ID
// Detect when Trigger changes to TRUE.
IF ( (Trigger=TRUE) AND (LastTrigger=FALSE)
AND (E001_NX_Unit_I_O_Data_Active_Status_63[1]) AND
(NX_SerialSend_instance.Busy=FALSE) ) THEN
OperatingStart:=TRUE;
Operating:=TRUE;
DevicePort.DeviceType:=_eDEVICE_TYPE#_DeviceNXUnit;
DevicePort.NxUnit:=N1_Node_location_information;
DevicePort.PortNo:=2;
END_IF;
LastTrigger:=Trigger;
// Set communications parameters and initialize NX_SerialSend instruction.
IF (OperatingStart=TRUE) THEN
NX_SerialSend_instance(
StringToAry(In:='@READ', AryOut:=SendDat[0]);
SendSize:=UINT#10#5;
OperatingStart:=FALSE;
END_IF;
// Execute NX_SerialSend instruction.

NY-series Instructions Reference Manual (W560)

Data type
BOOL
BOOL
BOOL
BOOL
_sDEVICE_PORT
ARRAY [0..5] of BYTE
UINT
NX_SerialSend
_sSERIAL_CFG
_eSERIAL_START
BYTE[2]
_eSERIAL_END
BYTE[2]
Variable
Data type
ARRAY[0..63]
OF BOOL
Execute:=FALSE,
DevicePort:=DevicePort;
SendDat:=SendDat[0],
SendSize:=UINT#1,
SendCfg:=SendCfg);
2 Instruction Descriptions
Initial value
FALSE
FALSE
FALSE
FALSE
[6(16#0)]
0
_SERIAL_START_NONE
[2(16#0)]
_SERIAL_END_ENDCODE1
[16#0D,16#00]
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
Send data
2
Send data size
Without start code
With end code
16#0D(CR)
2-1167

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents