AN-402 User PID Function Block
Trio BASIC includes a PID function for general purpose use. The function mirrors the PID found in a typical IEC 61131-3 PLC programming system.
This document explains how to use the USER_PID function and examples.
Related Articles
AN-338 Creating User Function Block in IEC-61131-3
This document is a quick guide to creating and using a User Function Block in IEC61131-3 programming
MOVE and SEL functions in IEC
I could not find equivalent of Codesys MOVE or SEL functions in our IEC language. A programmer can easily recreate the MOVE by creating a user function block that on rising edge of the ENO input will pass the value of IN to OUT with the desired ...
Gathering analog input data using Flexslice Ain Module
A Visual Studio program connecting over Ethernet will not be deterministic. So there will be timing errors. The built-in SCOPE command can be used to log data. It will save data to TABLE at the servo cycle rate. So if SERVO_PERIOD is 1000 usec, then ...
AN-389 VRSTRING 16 bits TrioBASIC Function
VRSTRING combines the contents of an array of VR() variables so that they can be printed as a text string or used as part of a STRING variable. This document explains with an example code.
Timed ramps and dwells - a FUNCTION example
Functions to make timed position ramps and dwells. For example as might be used in a blow moulding controller. ' Function library to support timed ramps ' 'Declare a universal value to hold the table index DIM tab_index AS INTEGER ' Set up a linear ...