plc:plc_modbus_api
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plc:plc_modbus_api [2019/07/29 12:28] – ivan | plc:plc_modbus_api [2020/07/03 11:27] (current) – ivan | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== PLC/Modbus API ===== | ===== PLC/Modbus API ===== | ||
+ | {{youtube> | ||
A number of Variables from [[mycnc: | A number of Variables from [[mycnc: | ||
Line 20: | Line 21: | ||
| 60030 | **Write Register**. | | 60030 | **Write Register**. | ||
| 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**. | + | | 60035 | **Write multiple coils**. |
| 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. | | 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. | ||
| 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 96: | ||
^ 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 |
- | | WP8026ADAM | 16 digital inputs, 0 outputs | | + | | WP8026ADAM | 16 digital inputs, 0 outputs |
- | | 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/ | ||
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 |
< | < | ||
- | If Modbus device is controlled directly from the PLC procedure, " | + | If the Modbus device is controlled directly from the PLC procedure, " |
checkbox should be UNCHECKED in Settings > Config > Technology > Mill/Lathe > Spindle | checkbox should be UNCHECKED in Settings > Config > Technology > Mill/Lathe > Spindle | ||
configuration dialog </ | configuration dialog </ |
plc/plc_modbus_api.txt · Last modified: 2020/07/03 11:27 by ivan