set_dtm_address
Set a slave device's bus address—IP for Modbus TCP/EtherNet/IP, node number for fieldbus—and optionally its gateway and subnet. Reloads project when those are set; rebuild and save afterward.
Instructions
Set a slave DTM's bus address — for Modbus TCP / EtherNet/IP devices this is the IP address (e.g. '192.168.10.21'); for fieldbus slaves the node number. Optionally also set the device's gateway and subnet mask (the gateway must be in the same IP domain as the address or the build warns 'IP Address and Gateway address are not in the same domain'). Setting gateway/subnet rewrites the project archive: the project is reloaded and UNSAVED — build_project then save_project afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| subnet | No | ||
| address | No | ||
| gateway | No |