Auber Instruments SYL-53X2P Podręcznik uzupełniający - Strona 4

Przeglądaj online lub pobierz pdf Podręcznik uzupełniający dla Przyrządy pomiarowe Auber Instruments SYL-53X2P. Auber Instruments SYL-53X2P 5 stron.

AUBER INSTRUMENTS
4. Function code examples
Note: Two function codes are available for this controller: 03 (0x03) and 06 (0x06). Function code 03 (read holding registers) and 06
(present single register/write register). For details, please check
4.1. Function code 03: Read parameter value from the controller
Function code 03 is used to read the parameter value from the controller. Please note, the query message (sent by host) has a length of 8-byte and
the response message (sent by PID) has a length of 7-byte.
Example: Read the current PV value from the controller:
Data sent by host (query):
Data received from PID (response): 01 03 02 03 7A 39 57
Table 4.1 Example for function code 03
By the response message, the current stored PV value was 037A (hex) or 890 (decimal). PV is in decimal format, so the actual display temperature
is 89.0 degree.
4.2. Function code 06: Write new parameter value to the controller
Function code 06 is used to write new parameter value to the controller. The query message (sent by host) and the response message (sent by
PID) both have a length of 8-byte. After the controller received the query message correctly, controller will reply the exact same message to the
host.
Example #1: Write 550.5 degree as new alarm 1 temperature (AL1) value to the controller. AL1 parameter is in decimal format, so the stored value
is 5505 (decimal) or 1581 (hex). The replied data will be the same as sent data.
Data sent by host (query):
Data received from PID (response): 01 06 00 01 15 81 16 FA
Example #2: Change the display temperature unit from Celsius to Fahrenheit. The address for parameter CF is 0011. Change it to 0 for Celsius
display and change it to 1 for Fahrenheit display.
Data sent by host (query):
Data received from PID (response): 01 06 00 11 00 01 18 0F
2020.09
01 03 10 01 00 01 D1 0A
Target Address
Function
01
03
Target Address
Function
01
03
01 06 00 01 15 81 16 FA
Table 4.2.1 Example 1 for function code 06
Target Address
Function
01
06
Target Address
Function
01
06
01 06 00 11 00 01 18 0F
ModBus
Protocol.
Query Message
Parameter Address
Number of words
1001
0001
Response Message
Data Length
Data
02
037A
Query Message
Parameter Address
Number of words
0001
1581
Response Message
Parameter Address
Number of words
0001
1581
WWW.AUBERINS.COM
CRC16
D10A
CRC16
3957
CRC16
16FA
CRC16
16FA
P4/5