mc_read_words
Batch-read consecutive 16-bit word values from a MELSEC PLC device (e.g., D100) to retrieve signed integers for monitoring, diagnostics, or troubleshooting data breaks.
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| endpoint | No | ||
| headdevice | Yes |