ads_call_method
Invoke a function block method on a running TwinCAT PLC over ADS RPC by supplying inputs and outputs in VAR_INPUT/VAR_OUTPUT order; method must have TcRpcEnable.
Instructions
Invoke an FB method on the running PLC via ADS RPC. The method must carry {attribute 'TcRpcEnable'}. inputs: [{type:'LREAL', value: 12.5}, …] in VAR_INPUT order (use base types: INT not E_Enum); outputs: ['BOOL', …] in VAR_OUTPUT order. Write-class.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | ||
| method | Yes | ||
| outputs | No | ||
| instance | Yes | ||
| return_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||