Skip to content

User program

The TGZ GUI application allows for the execution of a user-defined test program. You can develop this program in environments such as Visual Studio or Code::Blocks.


Running a User Program

To run a user program, follow these steps:

Connect to the TGZ device where you want to upload the PLC program using TGZ GUI II. In the upper section of the application, navigate to the User Program tab.

TGZ GUI UPL 01

In the lower section of the application, select the Control tab.

TGZ GUI UPL 02

Under this tab, locate the File with program field.

TGZ GUI UPL 03

Click the "…" button at the end of the line.

TGZ GUI UPL 41

Select the desired PLC file and confirm your selection. The path to the chosen PLC file will now appear in the Program file field.

TGZ GUI UPL 05

Click the Upload button.

TGZ GUI UPL 06

A message indicating the successful upload of the PLC will be displayed.

TGZ GUI UPL 07

If the upload is successful and no issues occur, the text in the Control section at the bottom right corner will change from Program is not loaded to Program started, and the buttons, along with the text background, will change colors.

TGZ GUI UPL 08

Finally, click the Save to Memory button to save the PLC to the device's flash memory.

TGZ GUI UPL 09


Parameter Settings

To configure parameters for the user program:

In the upper section of the TGZ GUI, select the Parameters tab.

TGZ GUI UPL 10

In the dropdown menu for the CO-UserProgStart parameter,

TGZ GUI UPL 11

Select the option 1: Yes – from flash if you want the PLC to start automatically when the device powers on.

TGZ GUI UPL 12