DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
cclink.h File Reference

CC-Link (CLPA) cyclic fieldbus frame codec (DETWS_ENABLE_CCLINK). More...

#include "ServerConfig.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

CC-Link (CLPA) cyclic fieldbus frame codec (DETWS_ENABLE_CCLINK).

CC-Link is Mitsubishi's (CLPA) factory fieldbus. The classic CC-Link master polls remote stations over RS-485 exchanging a cyclic process image split into bit devices (RX/RY - remote input/output bits) and word devices (RWr/RWw - remote registers). This codec builds/validates the cyclic frame a master/station exchanges:

[station][command][RX/RY bit data...][RWr/RWw word data...][sum-checksum]

A station's process image is a fixed BSS block; this frames it. The checksum is the low byte of the arithmetic sum of the framed bytes. The RS-485 timing and the CC-Link IE Field (Gigabit) PHY are the hardware-gated part; this is the frame + process-image accessors. Pure, zero heap, host-testable.

Definition in file cclink.h.