uPLC examples - Structured text (ST)

To help you get started with the ST to IL Converter, we have provided a collection of code examples ranging from basic logic to advanced functions. These snippets demonstrate the correct syntax and best practices for writing Structured Text optimized for our integrated drives.

Please use the ST to IL online converter here: https://www.ni-lab.online/new_websmart/nilab_st_converter.php

Motion controller interaction

Change the motion table index with a timer (5 different motion tasks): :integrated_drive_motors:5_step_motion_with_timer.zip

Change the motion table index with the two digital inputs (4 different motion tasks): :integrated_drive_motors:4_step_motion_with_2_inputs.zip

Output control

Toggle Digital output3 with timer : :integrated_drive_motors:output_pulse_with_timer.zip