I
In my application (MODBUS interface) i use a uController (PIC18F662 from Microchip) which is not capable of defining a bit array to use for coils or discrete inputs.
Now i have declared an array of 5 integers (16 bits) to define the 90 coils (5 x 16 bits) i need for my application.
My application automatically detects which device (2 types of burner controls can be used) is connected to the interface board and automatically knows which coils belong to which device.
So it could be that for example coils 1 to 32 belongs to device 1 and coils 33 to 90 to device 2.
What will be the exception code if device 1 is connected and the MODBUS unit asks for coils between 33 and 90 (which belongs to another device)? Is this exception code 2?
Is exception code 3 only used if the address is outside the allowable MODBUS address range?
The replied coils in the response of a read coil command must be placed in bytes. What is the method to put for example the status of coils 37 to 53 in the bytes of the response
Thanks in advance!
Ivar
Now i have declared an array of 5 integers (16 bits) to define the 90 coils (5 x 16 bits) i need for my application.
My application automatically detects which device (2 types of burner controls can be used) is connected to the interface board and automatically knows which coils belong to which device.
So it could be that for example coils 1 to 32 belongs to device 1 and coils 33 to 90 to device 2.
What will be the exception code if device 1 is connected and the MODBUS unit asks for coils between 33 and 90 (which belongs to another device)? Is this exception code 2?
Is exception code 3 only used if the address is outside the allowable MODBUS address range?
The replied coils in the response of a read coil command must be placed in bytes. What is the method to put for example the status of coils 37 to 53 in the bytes of the response
Thanks in advance!
Ivar