plc_update_variable
Stages changes to PLC variable data type, initial value, retained status, or comment fields in a Sysmac Studio project transaction for validation and commit.
Instructions
Stage data_type, initial_value, retained or comment fields. Unbind before changing a bound variable type. Use plc_rename_variable for renames and bind_io/unbind_io for addresses.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"transaction_id": "<transaction_id>",
"variable_id": "<variable_id>",
"changes": "<changes>",
"expected_revision": "<expected_revision>"
},
"name": "plc_update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | ||
| variable_id | Yes | ||
| transaction_id | Yes | ||
| expected_revision | Yes | Project revision read before staging this change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||