Read/write image data
Reading and writing local analog output QA1
The commands provided can be used to access the local analog output of the EZ800 or EZD basic unit. When writing to the analog output, however, the value will only be output externally if the device concerned is in Run mode and the image concerned has not been overwritten by actual program.
JSection “Read/write image data” on Page 99.
Byte |
| Meaning | Value (hex), sent by | ||||
|
|
|
|
| Master |
| Slave |
0 |
| Toggle byte |
| J page 94 |
|
| |
1 |
| Command |
|
|
|
| |
|
|
| Read | 91 |
| – | |
|
|
|
|
|
|
|
|
|
|
| Write | B1 |
| – | |
|
|
|
|
|
|
| |
|
| Response |
|
|
| ||
|
|
| Read successful |
| – |
| C2 |
|
|
| Write successful |
| – |
| C1 |
|
|
| Command |
| – |
| C0 |
|
|
| rejected |
|
|
|
|
2 |
| Len |
| 02 |
| 02 | |
|
|
|
|
|
|
| |
3 |
| Type | 05 |
| 05 | ||
|
|
|
|
|
|
| |
4 |
| Index |
| 00 |
| 00 | |
5 – 6 |
| Data 1 – 2 |
|
|
|
| |
|
|
| Read operation |
| 00 |
| See example |
|
|
| For write |
| See example |
| 00 |
|
|
| operation |
|
|
|
|
7 – 8 |
| Data 3 – 4 |
| 00 |
| 00 | |
|
|
|
|
|
|
|
|
Example
The analog output is to output a value of approx. 5 V.
500 = 01F4hex | Byte 5 – Data 1 | (LowByte) : F4hex |
| Byte 6 – Data 2 | (HighByte): 01hex |
MN05013001E | For more information visit: www.EatonElectrical.com | 109 |