Panasonic FP0R User Manual page 131

Hide thumbs Also See for FP0R:
Table of Contents

Advertisement

Communication
The maximum volume of data that can be sent is 2048 bytes.
EXAMPLE
Define a send buffer for 30 bytes (ARRAY [0...15] OF WORD) and copy 8 characters of a
string ("ABCDEFGH") into the buffer.
Send buffer layout:
Offset
8
0
16#42(B) 16#41(A)
1
16#44(D) 16#43(C)
2
16#46(F) 16#45(E)
3
4
16#48(H) 16#47(G)
15
The first word of the send buffer (offset 0) is reserved for the number of bytes to be sent.
Therefore, copy the data into offset 1 (SendBuffer[1]).
When sending begins (the execution condition for F159_MTRN turns to TRUE), the value in
offset 0 is set to 8. At the end of transmission, the value in offset 0 is automatically reset to 0.
The data in offset 1 to offset 4 is sent in order from the low order byte.
POU Header and LD Body
ST Body
130

Advertisement

Table of Contents
loading

Table of Contents