Standard function blocks
logiccloud provides the IEC 61131-3 standard function blocks as built-in,
ready-to-instantiate types. You do not declare their bodies — you declare an
instance of the type in a VAR section and call it like any other function
block instance.
VAR debounce : TON; // an instance of the on-delay timerEND_VAR
debounce(IN := sensor, PT := T#200ms);IF debounce.Q THEN // sensor has been stable for 200 msEND_IFThis reference is split by category. Each category page lists every function block in that group with its signature, I/O table, timing behavior and a usage example.
Categories
Section titled “Categories”- Timers —
TP(pulse),TON(on-delay),TOF(off-delay) and their typed variants. - Counters —
CTU(count up),CTD(count down),CTUD(count up/down) and their typed variants. - Edge detection —
R_TRIG(rising edge) andF_TRIG(falling edge). - Bistables —
SR(set-dominant) andRS(reset-dominant) latches.