Omron NY532-5400 Reference Manual page 1020

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

Advertisement

2 Instruction Descriptions
ST
Internal
Variable
Variables
Trigger
ReadCondition
ReadGo
NXUnitProxy
NXObject
IoRefreshMethod
NormalEnd
ErrorEnd
R_Trig_instance
NX_ReadObj_instance
External
Variable
Variables
_EC_MBXSlavTbl
*1 The data type is ARRAY [1..192] OF BOOL for an NJ-series CPU Unit.
// Prepare object parameter.
R_Trig_instance(Clk := Trigger);
IF (R_Trig_instance.Q=TRUE)THEN
NXObject.Index
NXObject.Subindex := USINT#1;
END_IF;
// Execute NX_ReadObj instruction.
IF (Trigger=TRUE) THEN
ReadCondition := TRUE;
END_IF;
IF ( (NX_ReadObj_instance.Done=TRUE) OR (NX_ReadObj_instance.Error=TRUE) ) THEN
ReadCondition := FALSE;
END_IF;
ReadGo := ReadCondition & _EC_MBXSlavTbl[10];
NX_ReadObj_instance(
Execute
UnitProxy := NXUnitProxy,
Obj
TimeOut
ReadDat
// Processing after instruction execution.
IF (NX_ReadObj_instance.Done=TRUE) THEN
// Processing after normal end.
NormalEnd := NormalEnd + UINT#1;
ELSIF (NX_ReadObj_instance.Error=TRUE) THEN
// Processing after error end.
ErrorEnd := ErrorEnd + UINT#1;
END_IF;
2-968
Data type
BOOL
BOOL
BOOL
_sNXUNIT_ID
_sNXOBJ_ACCESS
USINT
UINT
UINT
R_Trig
NX_ReadObj
Constant
ARRAY[1..512] OF BOOL
*1
:= UINT#16#4002;
:= ReadGo,
:= NXObject,
:= UINT#2000,
:= IoRefreshMethod);
Initial value
FALSE
Execution condition
FALSE
Execution condition to read data
FALSE
Execution of data read
Unit designation
(Index:=0,
Subindex:=0,
Object parameter
IsCompleteAc-
cess:=FALSE)
0
Read data
0
Normal end
0
Error end
Data type
Message Communications Enabled
Slave Table
NY-series Instructions Reference Manual (W560)
Comment
Comment

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents