Stream.State (PROP) ¶ PROPERTY State : STREAM_STATE
TcEL69xxAnalogFBs Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title TcEL69xxAnalogFBs Version 4.3.0.0 Categories Application|Safety; Intern|Safety Namespace TcEL69xxAnalogFBs Author 3S - Smart Software Solutions GmbH Placeholder TcEL69xxAnalogFBs Description 1 ¶ Analog Function Blocks for EtherCAT Safety Modules Indices and tables ¶ 1 Based on TcEL69xxAnalogFBs.library, last modified 04.03.2021, 08:52:22. LibDoc 4.4.0.0-b.27 The content file TcEL69xxAnalogFBs.clean.json was generated with CODESYS V3.5 SP11 on 04.03.2021, 08:52:23.
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.
SWITCHBIT (FUN) ¶ FUNCTION SWITCHBIT : DWORD Switches a bit of a DWORD value See also: PUTBIT and EXTRACT . InOut: Scope Name Type Comment Return SWITCHBIT DWORD Value with the switched bit Input X DWORD Value to be manipulated N BYTE Position of the bit to switch, starting with 0
UNPACK (FB) ¶ FUNCTION_BLOCK UNPACK Converts a byte into 8 bits InOut: Scope Name Type Comment Input B BYTE Input value Output B0 BOOL Output bit 0 B1 BOOL Output bit 1 B2 BOOL Output bit 2 B3 BOOL Output bit 3 B4 BOOL Output bit 4 B5 BOOL Output bit 5 B6 BOOL Output bit 6 B7 BOOL Output bit 7
WORD_AS_BIT (FB) ¶ FUNCTION_BLOCK WORD_AS_BIT Converts an input value of data type WORD into 16 outputs of data type BOOL InOut: Scope Name Type Comment Input W WORD Input value Output B00 BOOL Output bit 0 B01 BOOL Output bit 1 B02 BOOL Output bit 2 B03 BOOL Output bit 3 B04 BOOL Output bit 4 B05 BOOL Output bit 5 B06 BOOL Output bit 6 B07 BOOL Output bit 7 B08 BOOL Óutput bit 8 B09 BOOL Output bit 9 B10 BOOL Output bit 10 B11 BOOL Output bit 11 B12 BOOL Output bit 12 B13 BOOL Output bit 13 B14 BOOL Output bit 14 B15 BOOL Output bit 15
Constants ¶ TextBlockSize (ParamList)
TextBlockSize (PARAMS) ¶ InOut: Scope Name Type Initial Comment Constant iBlockSize INT 22800 Block size of the string to be encoded; must be divisible through 3
Controller ¶ PD (FunctionBlock) PID (FB) Temperature control with PID and LIMIT PID_FIXCYCLE (FunctionBlock)
PD (FB) ¶ FUNCTION_BLOCK PD Represents a PD controller A PD controller continuously calculates an error value e(t) as the difference between a desired set point and a measured process variable. The PD controller applies a correction based on proportional and derivative terms (sometimes denoted P and D respectively) which give their name to the controller type. Y_OFFSET , Y_MIN and Y_MAX are used for the transformation of the manipulated variable within a prescribed range. MANUAL can be used to switch on and off manual operation. RESET serves to reset the controller. In normal operation ( MANUAL = RESET = LIMITS_ACTIVE = FALSE ) the controller calculates the controller error e as difference SET_POINT – ACTUAL , generates the derivation with respect to time \(\frac{\delta e}{\delta t}\) and stores these values internally. The output, that is the manipulated variable Y , is calculated as follows: \(Y = KP \cdot (e + TV \frac{\delta e}{\delta t}) + Y_{OFFSET}\) So besides the P-part also the current change of the controller error (D-part) influences the manipulated variable. Additionally Y is limited on a range prescribed by Y_MIN and Y_MAX . If Y exceeds these limits, LIMITS_ACTIVE will get TRUE . If no limitation of the manipulated variable is desired, Y_MIN and Y_MAX have to be set to 0. As long as MANUAL=TRUE , Y_MANUAL will be written to Y . A P controller can be easily created by setting TV=0 . For more information see: PID . InOut: Scope Name Type Initial Comment Input ACTUAL REAL Actual value, process variable SET_POINT REAL Specified value, set point KP REAL Proportionality constant P TV REAL Rate time, derivative time D [sec]. If set to 0, than it works a P controller Y_MANUAL REAL Y is set to this value as long as MANUAL = TRUE Y_OFFSET REAL Offset for manipulated variable Y_MIN REAL Minimum value for manipulated variable. If no limitation is desired, it must be be set to 0 Y_MAX REAL Maximum value for manipulated variable. If no limitation is desired, it must be be set to 0 MANUAL BOOL TRUE : Manual: Y is not influenced by controller FALSE : Controller determines Y RESET BOOL TRUE : Set Y output to Y_OFFSET Output Y REAL Manipulated variable, set value LIMITS_ACTIVE BOOL FALSE TRUE : Y has exceeded the given limits Y_MIN , Y_MAX and is limited to these values