Write coil
This operation writes values to the coils of Modbus protocol-compatible equipment.
You can display the write coil operation screen by displaying the script canvas on the Designer screen, clicking the following items in the following order, and then dragging and dropping the component icon onto the script canvas:
-
Tool palette > Industrial equipment > Modbus > Write coil

Figure 5.7 Write coil operation screen
(1) Field list
This is a list of the fields to configure for the write coil operation.
Field Name |
Initial Value |
Setting Value |
Omission |
Notes |
|
---|---|---|---|---|---|
Name |
|
Single-byte alphanumeric characters and certain symbols (*1) |
- |
A value that begins with a single-byte alphabetic character |
|
Input data |
(No input data) |
Name of the input data component |
- |
Select from list (*2) |
|
Required settings |
|||||
|
Destination |
|
|
- |
|
Slave ID |
01 |
From 01 to FF |
- |
Select hexadecimal |
|
Starting address |
|
From 0 to 65535 |
- |
Set as integer |
|
Number of data |
|
From 1 to 999 |
- |
|
|
Comment |
|||||
|
Comment |
|
Characters |
✓ |
|
✓ |
: |
Possible to omit |
- |
: |
Impossible to omit |
*1 |
: |
Only "_" (underscore) can be specified. |
*2 |
: |
When component icons for input or conversion are placed on the script canvas, the options are displayed in the list. |
(2) Description of each field
This section explains each of the fields to configure for the write coil operation.
After changing these settings, click Finish to save the settings.
Click Cancel to discard the changes.
- Name
-
Name of the write coil operation component
Single-byte alphanumeric characters and "_" (underscore) can be used.
Use a value that begins with a single-byte alphabetic character.
- Input data
-
Selection of the component name of the input data for the write coil operation
From the input data component names displayed in the list, select the component name for the write coil operation.
Required settings
- Destination
-
Modbus destination
Select the Modbus destination for writing coil.
When you click Add, the Modbus TCP connection settings screen appears.
For details on the Modbus TCP connection settings screen, refer to Modbus TCP connection settings.
When you click Edit list..., the editing screen for the resource list appears.
For details on the editing screen for the resource list, refer to Edit resource list.
- Slave ID
-
Slave ID
Select the slave ID for writing coil.
- Starting address
-
Starting address
Specify a numerical value from "0" through "65535" for the starting address for writing coil.
- Number of data
-
Number of data items
Specify a numerical value from "1" through "999" for the number of data items for writing coil.
Comment
- Comment
-
Comment regarding the write coil operation
You can enter a comment.