Basic Format Of Computer Link Commands; Communication Format - Sharp JW-20FL5 User Manual

Fl-net module (board)
Table of Contents

Advertisement

[2] Basic format of computer link commands

(1) Communication format

When a computer link is used, data sent from this node to a target node is referred to as a [com-
mand], and data received from the target node by this node is referred to as a [response]. The
communication format for commands and responses is as follows.
Ë Command
+2000
+2047 +2050
Header (40 bytes)
Ë Response
+0000
+0047 +0050
Header (40 bytes)
Header
: Normally, all 40 bytes are 00
If you want to communicate with Ethernet over two layers, you have to use an exten-
sion header.
(See "[5] Two-layer communication with Ethernet")
c-ID
: 47
(H)
r-ID
: 45
(H)
ATTR
: 00
(H)
COM
: Command code (See page 9-14)
RSLT
: Command execution result
Normally terminated with 00
If any byte other than 00
link error code table").
If an error code is output, there is no response text.
Command Text : Command details (See "[3] Descriptions of each command")
Response Text : Response details (See "[3] Descriptions of each command")
[Example] When you want to monitor the ON/OFF status of relay 04033
Ë Command
Header (40 bytes)
00
00
Ë Response
Header (40 bytes)
00
00
Remarks
The maximum data length for read/write operations is 1024 bytes. In case of two-layer communication
with the Ethernet, however, the maximum length is 256 bytes. For the UDP, the total number of bytes
from the header to the command text must be less than 1024 bytes.
+2051
+2052
+2053
c-ID
ATTR
COM
+0051
+0052
+0053
r-ID
ATTR
COM
RSLT
.
(H)
(H)
is found, an error code will be output (See "[4] Computer
(H)
c-ID
ATTR
COM
47
00
20
00
File 0
ATTR
COM
RSLT
r-ID
45
00
20
00
9-19
Chapter 9: Message transfers
Command Text
+0054
Response Text
See page 9-17.
Command Text
03
01
03
File address
Bit 3
000403
= 0103
(8)
(H)
Relay No. 04033
Response Text
00
03
01
File address
000403
= 0103
(8)
(H)
File 0
Relay No. 04033
9
03
01
ON
Bit 3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jw-20fltJw-50flZ-336j

Table of Contents