1. PLC software Quick Started

1. PLC software Quick Started

1.1. 1. brief introduction

If you are new to this product, we recommend using a simple and practical approach: starting with a simple and practical application. Even without any experience with this product, it can still be easily operated. Everything starts from the quick start chapter.

This example is used to demonstrate how to use SamSoar2022 programming tool for programming and testing.

The following chapters will provide more detailed descriptions and offer you more information.

1.2. 2. Prepare hardware

1.2.1. Example: Staircase lighting

An example of using FGs to implement an application through staircase lighting control. This building has one ground floor and three above ground floors, each with button controlled light switches. Quickly press one of these buttons, and all four lights inside the staircase will turn on and continue to illuminate for 5 minutes.

These buttons are respectively connected to the four input points X0, X1, X2, and X3 of the PLC. Four lights are controlled through a relay output point Y0 on the PLC.

1.2.2. Wiring diagram

wiring diagram

图1 wiring diagram

1.3. 3. install

DIN rail installation

  1. Keep the spacing between the fixed points of the guide rail at 75 mm.

  2. Open the DIN clip at the bottom of the module and clamp the back of the FGs onto the DIN rail.

  3. Place the FGs close to the DIN rail and close the DIN clamp. Check if the DIN clamp and DIN rail on the module are tightly fixed.

To avoid damage to the FGs, do not directly press the front of the FGs, but press the part of the mounting hole.

  1. Refer to Figure 1-1 for wiring:

Connect terminal L and terminal N of FGs to the live and neutral wires of the AC220V power supply, respectively.

Connect the terminal S/S of FGs directly to the terminal 24V of FGs.

Connect one end of the four button switches to terminals X0 to X3 of the FGs, and connect the other end uniformly to terminal 0V of the FGs.

Connect one end of the four lights to terminal Y0 of the FGs, and connect the other end to the neutral wire of the AC220V power supply. Connect the live wire of AC220V power supply to terminal COM1 of FGs.

  1. Connect the USB port of the computer to FGs.

Attention: For more detailed hardware installation and wiring information, please refer to the FGs hardware manual**

1.4. 4. Loading program

1.4.1. Launch software programming tool

Double click the shortcut on the desktop, or click SamSoar2022.exe in the SamSoar2022 program group on the Start menu to run the configuration software.

Enter the running interface of SamSoar2022 programming tool as shown in Figure 1.2.

software page

图2 software page

1.4.2. Create a new project

Before starting to write a new program, it is necessary to create a new or open an existing project that includes necessary definitions and a small number of configuration parameters.

If the project does not already exist, click the New button at the top.

new butoon

图3 new butoon

Pop up a window to set properties, click OK. This project sets the model.

New window

图4 New window

1.4.3. Open an existing project

Click the open button at the top.

open button

图5 open button

Select the open file and click OK。

open window

图6 open window

1.5. 5. Write a program

Taking the LAD program as an example.

For specific information, please refer toHow to input LAD program

The final procedure is as follows:

LAD program

图7 LAD program

1.5.1. Network 0: Start timer, set coil Y000.

Click to expand the command and its sub items in the left project management window.

Click on the first graphic element position on the left side of the editable position of network 0, select and double-click the normally open contact to add the command at the selected position, double-click the added graphic element, and a ladder diagram input dialog box will pop up. Enter X000 and confirm.

Select the "Insert Row" button in the standard toolbar to add a row. Click to select the second element position on the left side of the first row, and select the "Vertical Line" button in the ladder diagram toolbar to add a vertical line.

Click to select the position of the graphic element on the left side of the second row, select and double-click the normally open contact to add the command at the selected position, double-click the added graphic element, and a ladder diagram input dialog box will pop up. Enter X001 and confirm.

Add the third and fourth lines in sequence, and enter X002 and X003 respectively in the ladder diagram input dialog box and confirm.

Click to select the rightmost element position in the first row, select and double-click to turn on the delay timer TON and add the command at the selected position. Double click the added element to pop up the timer input dialog box.

The data for input parameter T is K0, and the data for input parameter SV is K3000, please confirm.

Click to select the rightmost element position in the second row, and select the "Vertical Line" button in the ladder diagram toolbar to add a vertical line.

Select and double-click on 'Set Output Coil', add the command at the selected position, double-click on the added graphic, and the output coil input dialog box will pop up.

The operand for input parameter BIT is Y000, and the data for input parameter N is K1. Confirm.

1.5.2. Network 1: Reset coil Y000.

Click to expand the command and its sub items in the left project management window.

Click to select the first graphic element position on the left side of Network 001 for editing. Select and double-click the normally open contact to add the command at the selected position. Double click the added graphic element to pop up the ladder diagram input dialog box. Enter T0 and confirm.

Click to select the rightmost graphic element position, select and double-click [Reset Output Coil], add the command at the selected position, double-click the added graphic element, and the output coil input dialog box will pop up.

The operand for input parameter BIT is Y000, and the data for input parameter N is K1. Confirm.

At this point, the editing of the ladder diagram project file is complete. Select the "Save Project" button in the standard toolbar to save the ladder diagram project file. After the project is stored, you can download the program to the PLC.

1.6. 6. Engineering Download

Click the download button。

download button

图8 download button

Pop up the download window。

download button

图9 download button

Download provides multiple communication methods.。

You can select the data to download from the "Download Data" combo box as needed.

You can personalize the download as needed in the "Options" combo box.

Click on 'Manual Settings' to manually set communication parameters.

Click 'Modify Configuration' to modify the setting parameters of the PLC for the current project.

Click on 'Communication Test' to perform a communication test. If the test is successful, it will prompt 'Communication Successful'.

Clicking on 'Auto Detection' will detect all feasible lines, test each combination of communication parameters for each line, and set the first communication scheme to pass on the interface* This feature is very convenient and strongly recommended for use*

After setting everything up properly, click "Download" to start downloading the program.

1.7. 7. Project upload

Click the upload button.。

upload button

图10 upload button

Pop up the upload window.

upload window

图11 upload window

The upload communication method corresponds one-to-one with the download.

You can select the data to upload in the "Upload Data" combo box as needed.

You can personalize the upload as needed in the "Options" combo box.

After setting everything up properly, click "Upload" to start uploading the program.