GE GFK-0804B manual Message 16 Preset Multiple Registers Format

Models: GFK-0804B

1 160
Download 160 pages 24.24 Kb
Page 118
Image 118

C

Message (16): Preset Multiple Registers

Format:

Address

Func

16

Starting

Register No.

Number of Registers

Byte Count

Data

Error Check

Query

Address

Func

16

Starting

Register No.

Number of Registers

Error Check

Normal Response

Query:

HAn address of 0 indicates a broadcast request. All slave stations process a broadcast request and no response is sent.

HThe value of the function code is 16.

HThe starting register number is two bytes in length. The starting register number may be any value less than the highest register number available in the Micro PLC. It is equal to one less than the number of the first register preset by this request.

HThe number of registers value is two bytes in length. It must contain a value from 1 to 125 inclusive. The sum of the starting register number and the number of registers value must be less than or equal to the highest register number available in the Micro PLC. The high order byte of the starting register number and number of registers fields is sent as the first byte in each of these fields. The low order byte is the second byte in each of these fields.

HThe byte count field is one byte in length. It is a binary number from 2 to 250 inclusive. It is equal to the number of bytes in the data field of the preset multiple registers request. Note that the byte count is equal to twice the value of the number of registers.

HThe registers are returned in the data field in order of number with the lowest number register in the first two bytes and the highest number register in the last two bytes of the data field. The number of the first register in the data field is equal to the starting register number plus one. The high order byte is sent before the low order byte of each register.

Response:

HThe description of the fields in the response are covered in the query description.

C-16

Micro PLC Programmer's Guide ± April 1994

GFK-0804B

Page 118
Image 118
GE GFK-0804B manual Message 16 Preset Multiple Registers Format