Compax3 Sofware - T30/T40 - IEC Programming Tips and Code Examples

This posting is a launch page for various FAQ's on the Compax3 IEC programming.

Tips

Navigating Codesys Quick Tips

How do I use the FOR loop?

How do I add a C3 IEC library?

T30 and T40 - Where are the Analog Input Status?

What does the PIO_Init Device input refer to?

How do I change the homing mode after configuration?

D to A Monitors in T30/T40

C3_Input and C3_Output function blocks need EN enable in Ladder

 

Samples

Compax3 Series Sample files

Below samples included in the IEC_Samples.zip file, right-click on link and Save Target As... and extract and then open in CoDeSys v2.3

IEC_Samples.zip  

   Includes:

C3 with Xpress HMI 

Array

Basic Motion with IO CFC LD ST

Counters Timers  CFC LD  ST

Custom Function  Exponential

Cyclic Motion  LD ST

Discrete Motion CFC LD ST

Gearing CFC LD ST

Homing CFC LD ST

Jog on Inputs CFC

Motion Status CFC LD ST

Retain Variables CFC LD ST

Case Statement Template

Torque Block Sample CFC LD

T30 as T11 - CFC and ST - Makes a T30 work like a T11 with BCD inputs

 

Video: Sample Program: Life Test Cycle

Video: Analog position / Joystick program for Compax3

Toggle Function - Useful IEC Functions (for Codesys and Compax3)

Torque Control Sample - Useful IEC Functions (for Codesys and Compax3 with Interact Xpress Panels)

Convert Binary Pattern to Integer - Useful IEC Functions (for Codesys and Compax3)

Convert Integer to Binary Pattern - Useful IEC Functions (for Codesys and Compax3)

Moving/Not Moving Signal - Useful IEC Functions (for Codesys and Compax3)

Reset - Enable - Home Function Block - Useful IEC Functions (for Codesys and Compax3)

Read Analog Inputs - Useful IEC Functions (for Codesys and Compax3)

T40 Cam - See Compax3 Application

 

Related FAQ: 

C3 I11T30 Training Videos

 

 

glh 10/18/12

5/22jh .pro blocked move to zip file