Download 7. Using ABC-LUFP Configurator
Transcript
7. Using ABC-LUFP Configurator Modbus command name Modbus query " Frame# Slave n° Function n° N° of 1st word (MSB / LSB) Number of words (MSB / LSB) Number of bytes …Word values (MSB / LSB)… CRC16 (LSB / MSB) Modbus response " Frame# Slave n° Function n° N° of 1st word (MSB / LSB) Number of words (MSB / LSB) CRC16 (LSB / MSB) N.B. In all cases, the “Query / Slave Address” and “Response / Slave Address” elements are automatically updated by AbcConf according to the node in which the command is located. Their values are not user-modifiable. Likewise, the “Query / Function” and “Response / Function” fields depend on the nature of the Modbus command and are not usermodifiable. The operations to be carried out are much the same as those used for changing the default commands. For the “Read Holding Registers” command, see Section 7.9.1 Replacing a Periodic Input, page 68, and Section 7.9.3 Increasing the Number of Periodic Inputs, page 70. For the “Preset Multiple Registers” command, see Section 7.9.2 Replacing a Periodic Output, page 69, and Section 7.9.4 Increasing the Number of Periodic Outputs, page 74. 7.11.2. With a Generic Modbus Slave Unlike in the previous section, here we will be looking at adding and setting up a Modbus command which is different from those configured by default with the LUFP1 gateway. We will use this opportunity to take an in-depth look at the fields with which you can set up communications for such commands. See Chapter 12 Appendix E: Modbus Commands, page 120, for the list and description of the Modbus functions supported by the LUFP1 gateway. Only a very few Modbus commands are authorised, in order to limit the complexity of configuring Modbus exchanges on the gateway. Moreover, AbcConf cannot be used to configure new Modbus commands (created from scratch) for LUFP1 gateways. E.g. To illustrate the various operations to be carried out and the explanations given, we will be taking the example of a Altistart starter, the ATS48, and a Modbus command recognised both by the gateway and the ATS48. This is the “Preset Single Register” command, whose function code is 6 and which allows you to write the value of a single output word. This function will be used to periodically write the value of the ATS48’s CMD command register, located at address W400 (address 400 = 16#0190). 81