User Tools

Site Tools


plc:plc_modbus_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
plc:plc_modbus_api [2019/07/29 12:28] ivanplc:plc_modbus_api [2020/04/28 19:49] skirillov
Line 20: Line 20:
 | 60030 | **Write Register**.  Writing to register will send value from shadow register to Modbus devive  to address given in written value on **write** operation | 16 | | 60030 | **Write Register**.  Writing to register will send value from shadow register to Modbus devive  to address given in written value on **write** operation | 16 |
 | 60031 | **Read Register**. Read from this register will send read inquiry to Modbus device (PLC controller will be in Sleep till Register value received from Modbus device). Writing to this register will send ready inquiry to Modbus device. The value written is used as Register address to read  | 3 | | 60031 | **Read Register**. Read from this register will send read inquiry to Modbus device (PLC controller will be in Sleep till Register value received from Modbus device). Writing to this register will send ready inquiry to Modbus device. The value written is used as Register address to read  | 3 |
-| 60035 | **Write multiple coils**. Write multiple coils command indicates the 16-bit address of first coil to write, the number of coils to write, number of bytes of coil values to follow, and the coil values The response will be the address of the first coil and the number of coils. | 15 |+| 60035 | **Write multiple coils**. Low 16 bits of the value indicates the address of the first coil should be written. The high byte of the value (value>>24) indicates number of coils to write. The value latched in 60019 register will be sent to the device. | 15 |
 | 60037 | **Write single register**. Write single register indicates address of the holding register and the new value of the register. The response, similarly, is the address of the register and the new value.  | 6 | | 60037 | **Write single register**. Write single register indicates address of the holding register and the new value of the register. The response, similarly, is the address of the register and the new value.  | 6 |
 | 60038 | **Write single coil**. Requests the 16-bit address of the coil, and the value to write (0 for OFF, FF00 for ON) | 5| | 60038 | **Write single coil**. Requests the 16-bit address of the coil, and the value to write (0 for OFF, FF00 for ON) | 5|
Line 95: Line 95:
 ^ Device ^ Description ^ ^ Device ^ Description ^
 | WP8028ADAM| 8 digital inputs, 8 digital outputs | | WP8028ADAM| 8 digital inputs, 8 digital outputs |
-| WP8027ADAM | 16 digital outputs, 0 inputs |  +| WP8027ADAM | 16 digital outputs, 0 inputs (write-only) |  
-| WP8026ADAM | 16 digital inputs, 0 outputs | +| WP8026ADAM | 16 digital inputs, 0 outputs (read-only) | 
-| WP9038ADAM | 6 analog inputs, 4 digital inputs, 4 digital outputs |+| WP8025ADAM | 8 relay outputs (normally open) 
 +| WP9038ADAM | 6 analog inputs, 4 digital inputs, 4 digital outputs. The digital inputs/outputs work similarly to the WP8028 |
  
 Modbus Scheduler in myCNC has 4 messages queue. Up to 4 registers can be written immediately from PLC procedure. Modbus manager will send it one-by-one and will be waiting a reply from Modbus device after each message.  Modbus Scheduler in myCNC has 4 messages queue. Up to 4 registers can be written immediately from PLC procedure. Modbus manager will send it one-by-one and will be waiting a reply from Modbus device after each message. 
  
-Modbus manager will repeat the message to device up to 4 times in case no reply in 250ms. +Modbus manager will repeat the message to device up to 4 times in case no reply is received within 250ms. 
  
 <code>Important! <code>Important!
-If Modbus device is controlled directly from the PLC procedure, "RS485/Modbus communication" +If the Modbus device is controlled directly from the PLC procedure, "RS485/Modbus communication" 
 checkbox should be UNCHECKED in Settings > Config > Technology > Mill/Lathe > Spindle  checkbox should be UNCHECKED in Settings > Config > Technology > Mill/Lathe > Spindle 
 configuration dialog </code> configuration dialog </code>
plc/plc_modbus_api.txt · Last modified: 2020/07/03 11:27 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki