Omron NY532-5400 Reference Manual page 959

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

Advertisement

ST
Internal
Variable
Variables
Trigger
SdoObject
DoSdoRead
VersionInfo
NormalEnd
ErrorEnd
EC_CoESDORe-
ad_instance
External
Variable
Variables
_EC_MBXSlavTbl
*1 The data type is ARRAY [1..192] OF BOOL for an NJ-series CPU Unit.
// Detect when Trigger changes to TRUE.
IF ( (Trigger=TRUE) AND (DoSdoRead=FALSE) AND (_EC_MBXSlavTbl[1]=TRUE) ) THEN
DoSdoRead
SdoObject.Index
SdoObject.Subindex
SdoObject.IsCompleteAccess:=FALSE;
EC_CoESDORead_instance(
Execute:=FALSE,
ReadDat:=VersionInfo);
END_IF;
// Execute EC_CoESDORead instruction.
IF (DoSdoRead=TRUE) THEN
EC_CoESDORead_instance(
Execute :=TRUE,
NodeAdr :=UINT#1,
SdoObj
TimeOut :=UINT#20,
ReadDat :=VersionInfo);
IF (EC_CoESDORead_instance.Done=TRUE) THEN
// Processing after normal end
NormalEnd:=NormalEnd+UINT#1;
ELSIF (EC_CoESDORead_instance.Error=TRUE) THEN
// Processing after error end
ErrorEnd :=ErrorEnd+UINT#1;
END_IF;
END_IF;
NY-series Instructions Reference Manual (W560)
Data type
BOOL
_sSDO_ACCESS
BOOL
STRING[256]
UINT
UINT
EC_CoESDORead
Data type
ARRAY[1..512] OF BOOL
*1
:=TRUE;
:=UINT#16#100A;
:=USINT#0;
// Initialize instance.
// Dummy
// Node address 1
:=SdoObject,
// SDO parameter
// Timeout time: 2.0 s
// Read data
2 Instruction Descriptions
Initial value
FALSE
(Index:=0, Subindex:=0,
IsCompleteAccess:=FALSE)
FALSE
''
0
0
Constant
Message Communications Enabled Slave
Table
Comment
Execution condition
SDO parameter
Processing
Read data
Normal end
Error end
Comment
2-907
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents