set_esm_state
Transition EtherCAT slaves between INIT, PREOP, BOOT, SAFEOP, or OP states to control device operational modes.
Instructions
Request an EtherCAT State Machine (ESM) transition (INIT, PREOP, BOOT, SAFEOP, OP) for a slave or all slaves.
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": {
"targetState": "<targetState>"
},
"name": "set_esm_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slaveIndex | No | Optional slave index. If omitted, applies to all slaves and master. | |
| targetState | Yes | Target ESM state |