mc_read_words
Batch-read consecutive 16-bit word devices from a MELSEC head device. Specify starting device, endpoint, and count to retrieve signed integers.
Instructions
[READ][risk=low] Batch-read 16-bit word devices from a head device.
Args:
headdevice: MELSEC word device, e.g. "D100", "W10", "R0".
endpoint: Endpoint name from config.
count: Number of consecutive words (1..256, capped server-side).
Returns dict: {endpoint, headdevice, count, words:[int,...]} (signed 16-bit).
Example: mc_read_words(headdevice="D100", count=8).
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": {
"headdevice": "<headdevice>"
},
"name": "mc_read_words"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| endpoint | No | ||
| headdevice | Yes |