Download GLOFA-GM
Transcript
Chapter 7 Communication function B) For command type of array Forma t Header Name Frame Ex.) ACK Station Com No. mand H10 R(r) Comman d type(##) H17 Number Number of of blocks data(**) H01 H14 Data H23A0112233445566778899 AABBCCDDEEFF001122 Frame Tail check ETX BCC H3233413031313232333334 ASCII H06 value H313 H52 0 (72) H3137 H3031 H3134 343535363637373838393941 414242434344444545464630 03 3031313232 Remark [Note 1] If response format from PLC when data type of array variable is WORD and variable’s name and element number is ‘OUTPUT_ARR[0]~[9]’ is as above, the number of data is the element number data*2 = 20( H14 ) Bytes. ü Station number, commands, type of command, and number of blocks are the same as in computer request format. ü BCC : When command is one of lower case(r), only one lower byte of the value resulted by adding 1 byte each to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent. ü Number of data means Byte number of HEX. type and is converted into ASCII. This number is determined according to command type, ## of computer request format. [Table7.19] Number of data according to variable data type Data type Command type(##) Data number(**) Data type Command type Number of (##) data(**) BIT H00 1 UDINT H0B 4 BYTE H01 1 ULINT H0C 8 WORD H02 2 REAL H0D 4 DWORD H03 4 LREAL H0E 8 LWORD H04 8 TIME H0F 8 SINT H05 1 DATE H10 8 INT H06 2 TOD H11 8 DINT H07 4 DT H12 8 LINT H08 8 STRING H13 10 USINT H09 1 BLOCK H14 Max. 60 Bytes UINT H0A 2 ARRAY H15-H27 Max. 60 Bytes 7-53