Omron NJ501-1500 Reference Manual page 927

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

Program P2
LD
Internal
Variable
Variables
ReadReq
OutDat
External
Variable
Variables
GTable1
ReadReq
USINT#1
GTable1.Index
USINT#1
ST
Internal
Variable
Variables
ReadReq
OutDat
External
Variable
Variables
GTable1
// Detect read request.
IF (ReadReq=TRUE) THEN
// Execute Lock instruction.
Lock(USINT#1);
IF (GTable1.Index>INT#0) THEN
GTable1.Index:=GTable1.Index-INT#1;
OutDat
END_IF;
// Execute Unlock instruction.
UnLock(USINT#1);
ReadReq:=FALSE;
END_IF;
NJ-series Instructions Reference Manual (W502)
Data type
Comment
Initial value
BOOL
Read request
False
Read data
LREAL
0.0
Comment
Data type
Record storage structure
USERTABLE
Lock
EN
ENO
Index
>
EN
In1
GTable1.Index
In2
INT#0
GTable1.Record[Gtable1.index]
Unlock
EN
ENO
Index
ReadReq
R
Comment
Data type
Initial value
Read request
BOOL
False
Read data
LREAL
0.0
Comment
Data type
Record storage structure
USERTABLE
:=GTable1.Record[GTable1.Index];
2 Instruction Descriptions
Dec
EN
ENO
InOut
MOVE
EN
ENO
In
Out
OutDat
2
2-879

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents