|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
Beckhoff ADS / AMS protocol codec (PC_ENABLE_ADS) - zero-heap request builders + response parsers for TwinCAT PLCs over TCP 48898 (the PC-based-control protocol). More...
#include "protocore_config.h"Go to the source code of this file.
Beckhoff ADS / AMS protocol codec (PC_ENABLE_ADS) - zero-heap request builders + response parsers for TwinCAT PLCs over TCP 48898 (the PC-based-control protocol).
ADS (Automation Device Specification) rides on AMS (Automation Message Specification). Every multi-octet field is LITTLE-endian. A frame is an AMS/TCP header (6 octets) + an AMS header (32 octets) + the command payload:
AMS header field order (target-before-source), command ids, and state flags verified against the Beckhoff InfoSys AMS/ADS specification; payload layouts cross-checked with Beckhoff's own open-source ADS library, pyads, and Apache PLC4X. Pure codec, host-tested - the caller owns the TCP connection (pc_client_*) and the AMS route registration on the target router.
Definition in file ads.h.