1 OVERVIEW
MELSEC |
|
| Q25HCPU | QJ71E71 |
|
|
|
| QJ71C24 | |||
|
| RUN | ERR. |
|
|
|
| |||||
| POWER |
| MODE | INIT. | COM.ERR | CH1. |
| CH2. | ||||
|
|
| RUN | OPEN |
|
|
|
|
|
|
|
|
|
|
| SD | RD |
|
|
|
| ||||
|
|
| ERR. |
|
|
| CH1. | |||||
|
|
| USER |
|
|
|
|
|
|
|
|
|
|
|
| BAT. |
|
|
|
|
|
|
|
|
|
|
|
| BOOT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10BASE |
|
|
|
| CH.2 |
|
|
|
|
|
|
|
|
|
|
|
| SDA |
|
|
|
PULL |
|
|
|
|
|
|
| SG |
| 2 | 1 | |
| USB |
|
|
|
|
| SDB |
|
| |||
|
|
|
|
|
|
|
| (FG) |
|
| 3 | |
|
|
|
|
|
|
|
|
| RDA |
| 4 |
|
|
|
|
|
|
|
|
| (FG) |
|
| 5 | |
|
|
| +12V |
|
|
|
| RDB |
| 6 | ||
|
|
|
| 12G |
|
|
|
|
|
|
| |
MITSUBISHI |
|
|
|
|
|
|
|
| 7 | |||
|
|
| ||||||||||
|
|
|
|
|
|
| /485 |
|
|
|
(d)It is necessary to create a sequence program for communication control that conforms to the external device.
(e)Communication can be performed using an user frame by registering the fixed format portion of the head and tail sections of a message as an user frame.
•When sending data, the Q series C24 adds an user frame to any data specified by the user.
•When receiving data, the Q series C24 transfers any data excluding the user frame to the PLC CPU.
|
| When receiving data |
|
|
STX |
| Any data format |
| ETX |
ETX |
| Any data format |
| STX |
|
| |||
|
| |||
|
| When sending data |
|
|
|
|
|
|
(f)It is possible to clear the current reception data without interrupting the transmission processing by using the dedicated instruction "CSET."
(3) Data communication using the bidirectional protocol
MELSEC |
|
| Q25HCPU | QJ71E71 |
|
|
|
| QJ71C24 | |||
|
| RUN | ERR. |
|
|
|
| |||||
| POWER |
| MODE |
|
|
|
| |||||
|
| INIT. | COM.ERR | CH1. |
| CH2. | ||||||
|
|
| RUN | OPEN |
|
|
|
|
|
|
|
|
|
|
| SD | RD |
|
|
|
| ||||
|
|
| ERR. |
|
| CH1. | ||||||
|
|
| USER |
|
|
|
|
|
|
|
|
|
|
|
| BAT. |
|
|
|
|
|
|
|
|
|
|
|
| BOOT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10BASE |
|
|
|
| CH.2 |
|
|
|
|
|
|
|
|
|
|
|
| SDA |
|
|
|
PULL |
|
|
|
|
|
|
| SG |
| 2 | 1 | |
| USB |
|
|
|
|
| SDB |
|
| |||
|
|
|
|
|
|
|
| (FG) |
|
| 3 | |
|
|
|
|
|
|
|
|
| RDA |
| 4 |
|
|
|
|
|
|
|
|
| (FG) |
|
| 5 | |
|
|
| +12V |
|
|
|
| RDB |
| 6 |
| |
|
|
|
| 12G |
|
|
|
|
|
|
| |
MITSUBISHI |
|
|
|
|
|
|
|
| 7 | |||
|
| |||||||||||
|
|
|
|
|
|
| /485 |
|
|
|
(Details are explained in Chapter 7 and the User's Manual (Application).)
(a)In communication between PLC CPUs and communication with an external device for which transmission/receive control programming is allowed, data communication is performed in a sequence of "data transmission and response receipt".
(b)Error check of received data can be performed using the
| ENQ | Data length | Any data |
| Sum check | |||
|
| code |
| |||||
|
|
| ||||||
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
| ACK |
|
|
|
|
|
|
|
| |
| Sending completed normally |
|
| |||||
|
|
|
| |||||
|
|
|
|
|
| |||
|
|
|
| Error |
| NAK | ||
| Sending completed | code |
|
| ||||
|
|
|
| |||||
| abnormally |
|
|
|
|
| ||
|
|
|
|
|
(c)ASCII code data can be used for communication using the
QCPU |
| QJ71C24 | ASCII | ||||||
| data | ||||||||
| Q25HCPU |
|
| ||||||
| RUN |
|
|
|
| ||||
| MODE |
|
|
|
|
|
|
| |
| ERR. |
|
| conversion |
|
| |||
| BOOT |
|
|
|
| ||||
| USER |
|
|
|
|
|
|
| |
| BAT. |
|
|
|
|
|
|
| |
|
|
|
| Binary |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
| data |
|
|
|
|
|
|
|
|
| Binary |
|
| |||
|
|
|
|
|
| ||||
| USB |
|
|
|
|
| |||
|
|
|
|
|
| ||||
|
|
|
|
| data |
|
| ||
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 - 4 | 1 - 4 |