MOVE and SEL functions in IEC

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 datatype.

Trio's IEC61131-3 has exactly the same block SEL :


    • 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
    • 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 ...
    • Set and Clear bits in TABLE values (Function)

      Here are 2 functions to set and clear a bit in a given TABLE value. ' functions to set and clear bits in TABLE FUNCTION set_table_bit(index, bit AS INTEGER)   DIM pattern AS INTEGER   pattern = 1 << bit   TABLE(index, TABLE(index) OR pattern) ENDFUNC ...
    • 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.
    • AN-307 Move Embedded Parameters

      Move Embedded Parameters are a new feature within the Trio MC4XX Motion Coordinator system software. Each move can have up to 2 user parameters per axis pass through the motion buffers and become available during the motion for processing. The first ...