Omron NY532-5400 Reference Manual page 1029

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

Advertisement

ST
Internal
Vari-
ables
Trigger
ReadGo
DevicePort
DeviceObject
DeviceErrorLog
NormalEnd
ErrorEnd
R_Trig_instance
IOL_ReadObj_instance
Exter-
nal Vari-
ables
_EC_MBXSlavTbl
IO_LINK_Unit
*1 For NJ-series CPU Units, the data type is ARRAY [1..192] OF BOOL.
// Prepare object parameter.
R_Trig_instance(Clk := Trigger);
IF (R_Trig_instance.Q=TRUE)THEN
DeviceObject.Index := UINT#10#37;
DeviceObject.Subindex := USINT#0;
DevicePort.DeviceType:= _eDEVICE_TYPE#_DeviceNXUnit;
DevicePort.NxUnit:= IO_LINK_Unit;
DevicePort.PortNo:= USINT#10#1;
IF ( _EC_MBXSlavTbl[10] =TRUE)THEN
END_IF;
END_IF;
IF ( (IOL_ReadObj_instance.Done=TRUE) OR (IOL_ReadObj_instance.Error=TRUE) ) THEN
ReadGo:= FALSE;
END_IF;
// Execute IOL_ReadObj instruction.
IOL_ReadObj_instance(
Execute := ReadGo,
DevicePort:= DevicePort,
DeviceObj := DeviceObject,
ReadDat :=DeviceErrorLog);
// Processing after instruction execution
IF (IOL_ReadObj_instance.Done=TRUE) THEN
// Processing after normal end
NormalEnd := NormalEnd + UINT#1;
ELSIF (IOL_ReadObj_instance.Error=TRUE) THEN
NY-series Instructions Reference Manual (W560)
Variable
BOOL
BOOL
_sDEVICE_PORT
_sIOLOBJ_ACCESS
ARRAY[1..30] OF
BYTE
UINT
UINT
R_Trig
IOL_ReadObj
Variable
Constant
ReadGo := TRUE;
Data type
Initial value
FALSE
FALSE
(Index:=0, Sub-
index:=0)
0
0
Initial value
ARRAY[1..512] OF BOOL
Set the device variable
which specifies NX-ILM400
as the initial value of the
structure member NxUnit.
2 Instruction Descriptions
Comment
Execution condition
Data reading execution
Specification for the IO-Link
device object
Read data
Normal end
Error end
Comment
Message Communications
*1
Enabled Slave Table
2
2-977

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents