
Chapter 7 XGT Dedicated Communication
7-46
(2) P2PRD
Function block
Description
P2PRD
STAT
BL_NUM
P_NUM
DONE
REQ
VAL_NUM
USINT
USINT
USINT
BOOL
USINT
BOOL
VAL_SIZE
DEV
USINT
ANY_BIT
Input REQ : requests function block execution
P_NUM : P2P number
BL_NUM : block number
VAL_NUM : Variable number
VAL_SIZE : Variable size
DEV : Device (Only direct variable)
Output DONE : Keeping 1 after first operation
STAT : Information about error
ANY type
Variable
description
Variable
name
B
OOL
B
Y
T
E
W
O
RD
DW
O
RD
LW
O
R
D
S
IN
T
INT
D
IN
T
L
IN
T
U
S
INT
U
IN
T
U
DI
NT
U
LI
N
T
R
E
A
L
L
R
E
A
L
TI
M
E
D
AT
E
TO
D
DT
S
T
RI
NG
DEV
○ ○ ○ ○ ○
(a) Function
1) Changes variable size of P2P parameter block and destination station’s device area to read
(Command type Single and Continuous are available.)
2) After designating P2P parameter, block and variable by using P_NUM, BL_NUM, VAL_NUM, it changes the variable size
and device to VAL_SIZE(if continuous, VAL_SIZE means variable size and if individual, it means the size of variable type),
where DEV can be input only for a direct variable(ex, %MW100).
Communication modules: FEnet, FDEnet, Cnet
(b) Error
1) If it is out of the allowable scope of P2P parameter set in XG5000, the error number occurs as follows.
STAT_NUM
Message
Description
1
P2P number setting
error
If a value except P_NUM(1~8) is set
2
Block number setting
error
If a value except BL_NUM(0~63) is set
< In case of Cnet, 0~31 >
3
Variable number setting
error
If a variable number not allowed in P2P parameter set in XG5000 is
input
4
No slot
-
5
Module inconsistency
No communication module
6
Module inconsistency
Communication module not available in the instruction
10
MODBUS setting error
MODBUS offset can not be input(ex, h10000). Because DEV can be
input only for a direct variable
11
Variable size setting
error
If a variable size not allowed in P2P parameter set in XG5000 is input
12
Data type setting error
If a variable type not allowed in P2P parameter set in XG5000 is input
Summary of Contents for XGL-C22A
Page 172: ...Chapter 8 Modbus Communication 8 23 ...
Page 246: ...Chapter 10 Program Examples 10 40 XG 5000 program Sequence Program 1 2 3 4 ...
Page 247: ...Chapter 10 Program Examples 10 41 Sequence Program 5 6 ...
Page 289: ...Appendix A 23 Sub procedure module When port open event occurs perform the next module ...
Page 291: ...Appendix A 25 The lower code shows BCC check setting ...