
4-45
4 Using Protocol Macros
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
4-3 Usin
g Pr
otoco
l Macr
o
s
4
4-3-2 U
s
er Prog
ram Example
z
LD
System-defined variable
User-defined variables (To be defined before or when creating a program)
* When HR, DM, or EM is specified as an allocated address (AT) for user-defined variables, set the Retention
Specification to Retained. When CIO/WR is specified, set it to No-retained.
Name
Data
type
Factory
setting
Comments
Details
_Port_isAvailable
BOOL
---
Network Communica-
tions Instruction
Enabled Flag
This flag becomes TRUE when
there are internal logic ports
available, FALSE when there is
no internal logic port available.
Name
Data type
Factory setting
Allocated
address
(AT)
Details
OperatingEnd
BOOL
False
---
Process completed
Trigger
BOOL
False
---
Execution conditions
Operating
BOOL
False
---
Processing
InPort
_sPORT
UnitNo:=_CBU_No00,
PhysicPortNo:=0)
---
Port setting
SendData
ARRAY[0..4] OF
WORD
[5(16#0)]
---
Send data
RecvData
ARRAY[0..3] OF
WORD
[4(16#0)]
%D200 (*)
Receive data
TmpData
DINT
0
---
Present value of
E5
@
N
RS_instance
RS
---
---
---
ExecPMCR_instance
ExecPMCR
---
---
---
Содержание CJ1W-SCU22
Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...