16 PLC Editor2 help

Last modified by Mora Zhou on 2023/12/22 10:42

Quick start

This chapter briefly introduces the use of our PLC programming software (PLC editor2) to write a simple PLC control program and programming operations to help beginners get familiar with and master the operation of our programming software as soon as possible. The following are the development steps of PLC:

  • Step 1: Start our PLC editor2 and enter the programming window.
  • Step 2: Click "New" to pop up the "New Project" window, and set "PLC Series", "PLC Type" and "Program Language".
  • Step 3: Click "Program" in the "Project Management" area to start writing the ladder diagram program.
  • Step 4: Add instructions.
  • Step 5: Save the program project (when the program has a specified save path, the software will save the current program regularly).
  • Step 6: Compile the program.
  • Step 7: Establish a communication connection with PLC.
  • Step 8: Download the program to the PLC.
  • Step 9: Start the PLC (RUN state).

Start the software

After PLC editor 2 is correctly installed, click on PLC Editor2 in the Windows start menu to start the PLC programming software and enter the main programming screen, which is shown in the following figure:

image-20220623161849-29.jpeg

Create a project

After starting the programming environment, you first need to create a new project. Click "New" to pop up the "New Program" window, you can select or create a new project:

  • PLC series
  • PLC model
  • PLC language

To create a new project, please operate as shown in the figure below:

  1. Move the mouse to the upper left corner of the program, and click the "File" menu.
  2. After clicking the "File"  menu, a new dialog box will pop up.

image-20220623134722-3.jpeg

  1. Select "PLC Series", "PLC Model" and "Program Language" through the drop-down box.
  2. Click the "OK" button to create a new project.

image-20220623134805-4.jpeg

In this example, we select a 5V type PLC, using ladder diagram as the programming language, after completing the steps of creating a new project, as shown in the following figure:

image-20220623135152-5.jpeg

✎Note: For the operation of specific project management function, please refer to the relevant chapters.

Add instructions

  1. When a project is created, expand the directory tree of "Project Manager".

image-20220629110655-2.jpeg

  1. After expanding "Project Manager", click "Instructions" ->"Basic instructions", select the specific instruction,such as "LD".

image-20220623140414-8.jpeg

  1. Press and hold the mouse, select "LD" and drag it to the right "Ladder Diagram (Write)"" input box, place it in the specified position, and release the left mouse button. Then you can input the parameters and click "OK".

image-20220625113552-26.jpeg

image-20220625113604-27.jpeg

✎Note: 

  • In addition to the system default parameters, the input and output of some added commands are empty, and the user needs to input parameters or component addresses.
  • If you want to add multiple instructions, repeat the above operation until all the instructions are added.

Compile program

After the program is written, it needs to be compiled and saved, which can be achieved by pressing F4 on the keyboard or the Compile button in the program panel, as shown in the figure below.

image-20220623144306-12.jpeg

If compiled successfully, it is shown as below.

image-20220623144157-11.jpeg

If compilation fails, it is shown as below.

image-20220623153633-19.jpeg

All errors will be displayed in the list box. You could select the specified error information, double-click the specified information with the left mouse button, and the system will automatically locate the error or warning position, which is convenient for you to debug the program.

✎Note: The program could be downloaded to the PLC only when the compilation is successful or there are no errors.

Communication test

The communication test is to improve the connection stability of the PLC and PC, and avoid the loss of force majeure during the transmission process.

Preparation steps:

  1. Open and run PLC Editor.
  2. Click "Transfer Settings] of "Online" module above the program panel. As shown below:

image-20220623145502-14.jpeg

  1. The "Transfersettings" dialog box pops up, when the "Detailed settings" is not checked, select the specified port, it is as shown in the figure below.

image-20220623154113-20.jpeg

  • USB connection: This download interface is only supported when using the PLC's USB port to download programs or monitor devices. If a USB device is currently connected, the software system defaults to the "PLC USB interface" button.
  • Ethernet configuration": You could select the corresponding NIC and configure the IP address to connect the PLC with Ethernet function, or search the devices in the LAN by the device search function!
    • ✎Note: Currently Ethernet is only supported by 5V-N series and 6V series.

  • Serial port (COM) connection: Used when downloading programs or monitoring device using the PLC's round head (8-pin head).
  1. When the "Detailed Settings" option box is checked, the detailed settings window will pop up as below. You could set data according to their needs.

image-20220623154122-21.jpeg

✎Note: The range of communication time check is 0 to 9999, and the number of repetitions is 0 to 5. Please do not exceed the limited range.

  1. After completing the settings, you could click the "Communication Test" or "OK" to perform a connection test.
  2. If the test fails, the system will prompt as below.

image-20220623153332-17.jpeg

  1. The connection is successful as shown in the figure below:

image-20220623153337-18.jpeg

  1. After successful communication, you could click “Device Info“ to view the device information.

image-20220623154456-22.jpeg

Download program

Work to be done before downloading:

  1. Open the compiler;
  2. Create a new project and make the project compile successfully;
  3. Install the corresponding PLC driver on the PC and connect the PLC and PC;
  4. Complete the communication setting through the compiler.

Start downloading

  • After completing the preparations, move the mouse to the Online module, and click the "Write to PLC" button to open the download setting window, as shown in the figure below:

image-20220623155646-23.jpeg

  • The online operation window is shown in the figure below:

image-20220623160440-24.jpeg

  • Click "Param+Prog (P)" button, and the system will automatically select the preset option in the message box. After the configuration is completed, click "Execute" . As shown below:

image-20220623160446-25.jpeg

  • After clicking "Execute", the system will automatically pop up a prompt window. Clicking "Yes" means stop the PLC operation and start downloading the PLC program. Clicking "No" means that the PLC will not be stopped, and the program will not be downloaded to the PLC. As shown below:

image-20220623160453-26.jpeg

  • After clicking "Yes", the download and compile window will start to run. As shown below:

image-20220623160458-27.jpeg

  • When the progress bar in the download window completes the progress, the system will promt "Write to PLC(Complete)". As shown below:

image-20220623160503-28.jpeg

Overall introduction

After the software is started, enter the main interface, as shown in the figure below:

image-20220623161945-30.jpeg

Toolbar

Most of the functions of the software can be found here, which are divided into PLC, view and help.

image-20220625155137-1.jpeg

  1. There are functions such as ladder diagram symbol, comment statement editing mode, compilation, communication function and encryption tool in the PLC classification, which will be explained in detail in the following chapters.
  2. Functions such as each floating window and ladder diagram display scale can be enabled in the view classification.
  3. The help of the software can be viewed in the help category, and the software version number information can be viewed through the about button of the category.

Project management

It is used to create new programs, operate program pages or program blocks, and configure PLC parameters.

image-20220623162814-32.jpeg

Ladder editing

In short, it is the module for development. In this module, you could write programs, configure PLC and other development. At the same time, you could add, delete, modify and check PLC through this module.

image-20220625113828-28.jpeg

Floating windows

It is used to display or realize a specific function, which will be explained in detail in the following chapters.

image-20220629110748-3.jpeg

Status bar: used to display the status of the PLC or program page.

image-20220623163359-35.jpeg

PLC function menu

Clipboard

Clipboard is a basic function of PLC Editor2 and has a very important function. This chapter will explain the basic description of the clipboard.

The clipboard has five functions: "Cut", "Copy", "Paste", "Undo" and "Redo".

image-20220623170127-36.jpeg

  • Cut: After selecting the ladder diagram, you could use the "Ctrl+X" command or the right mouse button to cut the selected data to the memory and switch to other places for use.
  • Copy: After selecting the ladder diagram, you could use the "Ctrl+C" command or the right mouse button to copy the specified data.
  • Paste: After selecting the ladder diagram, you can use the "Ctrl+V" command or the right mouse button to paste the specified data.
  • Undo: Through "Ctrl+Z" or the right mouse button, the event operated by the user can be rolled back. Only when the software is running continuously, and the cancellation cache will be cleared if you exit.
  • Redo: Through the "Ctrl+Y" or the right mouse button, you could return to the previous action after canceling the event.

Ladder symbol

PLC Eidtor provides powerful and complete functions in the menu bar, which can greatly improve programming efficiency, as shown in the following figure:

image-20220623171113-37.jpeg

The following table is a detailed description of the ladder diagram.

ImageInstructionCommand function descriptionHot key
5V帮助文档_中性_html_17467c64c59b7dcc.jpgLD ANDInput series normally open F5
5V帮助文档_中性_html_78ee1c120297f15c.jpgORInput parallel normally openSHIFT+F5
5V帮助文档_中性_html_6d69b74c12b3d4ac.jpgLDI ANIInput series normally closeF6
5V帮助文档_中性_html_16ca0a4e28932a25.jpgORIInput parallel normally openSHIFT+F6
5V帮助文档_中性_html_91ad97fbb1766cde.jpgOUTLadder diagram output coilF7
5V帮助文档_中性_html_bb11bf59792412cb.jpgCJ/CALL and other application instructionsInpuyt application instructionsF8
5V帮助文档_中性_html_e11c169668fbc3d7.jpg Ladder diagram input horizontal lineF9
5V帮助文档_中性_html_25d3575219c37c40.jpg Ladder diagram input vertical lineF11
5V帮助文档_中性_html_e1fd81d831e4cc1e.jpg Delete horizontal line in ladder diagramCTRL+F9
5V帮助文档_中性_html_50a964bc9aa2388f.jpg Delete vertical line in ladder diagramCTRL+F11
5V帮助文档_中性_html_4c194d2b4c3e9166.jpgLDP ANPInput series rising edge pulseSHIFT+F7
5V帮助文档_中性_html_4e945174029d8824.jpgLDF ANFInput series falling edge pulseSHIFT+F8
5V帮助文档_中性_html_94c5f7c4566eeb6e.jpgORPInput parallel rising edge pulseCTRL+ALT+F7
5V帮助文档_中性_html_fe027a1353a855e2.jpgORFInput parallel falling edge pulseCTRL+ALT+F8
5V帮助文档_中性_html_8213f80a4dec5ecc.jpgINVInvert the result of the operationCTRL+ALT+F11
5V帮助文档_中性_html_bd63cbbc541dc1c9.png Line segment inputSHIFT+F9
5V帮助文档_中性_html_fb82ee5fc2b94c23.png Line segment deletionSHIFT+F11
5V帮助文档_中性_html_236aac83ad0c365e.pngMEPRising edge pulsing of operation resultsALT+F5
5V帮助文档_中性_html_fc7bf55c55a8fc75.pngMEFFalling edge pulsing of operation resultsCTRL+ALT+F5

Comment&statement

Editing comments or statement is mainly to comment the code in the project to better interpret the project.

As shown in the figure below, it enters the editing state.

image-20220623172114-38.jpeg

Edit comment

Function: Comment on the device.

Prerequisite: devices are required on the ladder diagram.

Step:

  1. Click the "Comment" button, when the button color becomes darker, it will enter the editing state.
  2. After successfully entering the edit comment state, move the mouse to the code segment specified by you, and double-click the target area with the left button, and the "Comment Edit” window will pop up.
  3. At this time, you could enter the specified comment in the column input box.
  4. After editing the comment, click “Execute" to save it.

✎Note: The comment can be edited up to 128 characters, and the alias can be edited up to 8 characters.

image-20220623172401-39.jpeg

Result:

image-20220623172710-40.jpeg

Edit statement

Function: Annotate the ladder diagram block.

Step:

  1. Click the "Statement" button, when the button color becomes darker, it will enter the editing state.
  2. After successfully entering the edit statement state, move the mouse to the code segment specified by you, and double-click the target area with the left button, and the "Statement Edit" window will pop up.
  3. At this time, you could enter the specified statement in the previous input box.
  4. After editing the statement, click "Execute" to save it.

✎Note: The statement line can edit up to 64 characters, and the statement can be downloaded to the PLC when downloading the ladder diagram.

image-20220623172907-41.jpeg

Result:

image-20220623172913-42.jpeg

Program compilation

This chapter mainly introduces the program compilation function.

The program compilation menu has three functions, including compile, switch, and compile all, as shown in the figure below:

image-20220624090820-2.jpeg

Compile

Function: Refers to the form of converting the ladder diagram (program) of the current program page into the instruction list (IL).

Steps: After compiling the ladder diagram, click compile or use the hot key F4.

Results:

  • Compiling correctly will prompt that the compilation is successful.

image-20220624091026-3.jpeg

  • Failure will prompt compilation failure. Locate the error and go to the information output window. You could modify the ladder diagram according to the prompts.

image-20220629110819-4.jpeg

image-20220629110833-5.jpeg

  • Double coil inspection, manifested in the form of warning.

image-20220624092222-6.png

Switch

Function: refers to switching the current program page between the ladder diagram interface and the instruction list (IL) interface.

Steps: Click the switch button on the program page interface.

Results:

  • In the compiled program page, click to switch to the instruction list interface.

image-20220624093016-7.jpeg

  • In the uncompiled program page, the prompt "The current ladder diagram is not compiled. Do you want to abandon the current ladder diagram?" Click "Yes" to abandon the editing ladder diagram and convert it to the instruction list, click "No" not to switch.

image-20220624094410-9.jpeg

Compile all

Function: Refers to converting the ladder diagram of all programs under the current project into the form of instruction list (IL).

Steps: Click the compile all button or use the shortcut key Ctrl+F4.

Expected: As long as there is a compilation error, it will prompt compilation failure, and only when all compilation succeeds will it prompt compilation success.

image-20220624095005-10.jpeg

Program mode

Monitor mode

Function: monitor the value of the devices on the ladder diagram, modify and debug the program.

Step:

  • Connect to the PLC and switch to monitoring mode.

image-20220624095815-11.jpeg

  • Right-click the menu, click "Debug" to modify the value of the device.

image-20220624095855-12.jpeg

  • Click the ON, OFF, or ON/OFF inversion to set the device.

image-20220624100037-13.jpeg

Monitor edit

PLC Editor2 provides the "Monitor edit" function. You could edit ladder program in the state of monitoring it.

Steps:

  • Connect to PLC and switch to "Monitor edit" mode.

image-20220624101413-14.jpeg

  • Modify ladder diagram

image-20220624101446-15.jpeg

  • Compile the ladder diagram

image-20220624101510-16.jpeg

  • After the compilation, download it to PLC.

image-20220624101609-17.jpeg

✎Note: The firmware version requires above v2.000 version.

Online

The online menu provides rich functions. It is mainly divided into 10 parts: Transfer settings, Read from PLC,Write to PLC, Checksum PLC, PLC Diagnosis, Remote operation, Device monitor, Module monitoring, Clear PLC memory, and PLC clock set.

image-20220624103113-18.jpeg

Transfer settings

Function: The main purpose is to improve the stability of the PLC and PC, and to avoid force majeure problems during transmission that could lead to losses.

Steps:

Open PLC Editor2, and click "Online" ->"Transfer Settings". As shown below:

image-20220624103242-19.jpeg

"Transfer setting" dialog box will pop up. When using USB connection, select the specified port, it is as shown in the figure below.

image-20220624103637-20.jpeg

When using Ethernet configuration, you could click "Devices research" to select the corresponding NIC and configure the IP address to connect the PLC with Ethernet function,

✎Note: Currently Ethernet configuration is only supported by 5V-N series and 6V series.

image-20220624105239-21.jpeg

Click "Devices research" to pop up a search page, as shown below.

image-20220624105429-22.jpeg

Description: Clicking "Device search", it will automatically search for all PLC devices supporting Ethernet in the network segment matching subnet mask, i.e., the host computor and PLC must be in the same subnet to be recognized.
The subnet mask matches the network segment:

  • If the IP of this machine is 192.168.56.237 and the subnet mask is 255.255.255.0, the PLC within the 192.168.56 network segment will be searched.
  • If the IP of this machine is 172.16.56.1 and the subnet mask is 255.255.0.0, the PLC in the 172.16 network segment will be searched.
  • If the IP of this machine is 10.244.56.9 and the subnet mask is 255.0.0.0, then the PLC in the 10 network segment will be searched.

✎Note: The NIC used for the IP search function is the NIC selected by the user of the NIC selection interface.

Use: Click "Device search" to search for devices in the LAN, and the searched devices are displayed on the interface. Selecting the corresponding line and clicking the "OK", the corresponding IP information will be displayed in the IP address input box of the Ethernet configuration. Please refer to the PLC programming manual for the specific PC network address configuration.

When using the serial port to connect, select the specified port and check the "Detailed setting", the detailed settings window will pop up as below.

image-20220625114042-29.jpeg

You could set the data according to their needs.

✎Note: The range of communication time check is 0 to 9999, and the number of repetitions is 0 to 5. Please do not exceed the limited range.

After completing the settings, you could click the "Communication Test" or "OK" to perform a connection test.

If the test fails, the system will prompt as below.

image-20220624111448-24.jpeg

Successful connection is shown as below.

image-20220624111451-25.jpeg

After successful communication, you can click "Device Info" to view the device information.

image-20220624111617-26.jpeg

Read from PLC

Function: Upload the data in the series PLC to the software through the communication line.

image-20220624114311-27.jpeg

Interface introduction:

  • Para + program: Upload parameters and programs from the PLC to the software.
  • Select all: Upload parameters, programs, comments, devices memory area settings and electronic cam tables from the PLC to the software.
  • Cancel all select: Cancel all selections.
  • Execute: Start the upload operation.
  • Stop: Stop the upload operation.
  • Close: Exit the current window.
  • Execute (upload): Upload the data of the lower computer to the software.
  • Display/Hide: Display/hide the upload progress and other information, as shown in the figure below:

image-20220624114427-28.jpeg

Steps:

Check the data items that need to be uploaded.

  • If the selected data item is device memory, you could click "set" to set the title of the uploaded device memory and the range of the device to be uploaded.

image-20220624114632-29.jpeg

  • If the selected data item is electronic cam table, you could click "set" to set the title of the uploaded electronic cam table and the uploaded cam table.

image-20220624114647-30.jpeg

Click "Execute" to start uploading. At this time, the PLC needs to be in the stop state.

image-20220624114918-31.jpeg

Keep communication and wait for the upload to complete.

image-20220624114941-32.jpeg

Write to PLC

Function: Download the ladder diagram program or other configuration to the PLC.

image-20220624115206-33.jpeg

Interface introduction:

  • Para + program: Download parameters and programs to the PLC.
  • Select all: Download parameters, programs, comments, and devices memory area settings to the PLC.
  • Cancel all selections: Cancel all selections.
  • Execute: start the download operation.
  • Stop: stop the download operation.
  • Close: Exit the current window.
  • Calculated size: To calculate the number of steps of the ladder diagram, the size of the downloaded file and the size of the comment, it needs to be connected to the PLC.
  • Display/Hide: Display/hide the download progress and other information, as shown in the figure below.

image-20220624115419-34.jpeg

Step:

Check the data items that need to be downloaded.

  • If the selected data item is device memory, you could click "set" to set the title of the uploaded device memory and the range of the device to be downloaded.

image-20220624115440-35.jpeg

The PLC needs to be in the stop state when downloading.

image-20220624115451-36.jpeg

Keep communication and wait for the download to complete.

image-20220624115455-37.jpeg

Device monitor

Function: You can view and modify PLC register values and expansion module values online. Click this item to pop up the interface as shown in the figure below.

image-20220624134515-1.jpeg

Interface description:

  • Monitoring start: start the current monitoring, the value of the register can be viewed or modified.
  • End of monitoring: End the current monitoring, the value of the register cannot be viewed or modified.
  • Edit current value: After clicking, a dialog box named "Modify device value" will pop up, and you could modify it.
  • Close: Close the "Device Monitor” interface.

Step:

  • Click "device monitor" to open the interface.

image-20220624135018-2.jpeg

  • Click "monitoring start" button under the premise of communicating with the PLC.

image-20220624135057-3.jpeg

  • The devices can be monitored by modifying the monitoring form, display, numerial and bit order .

image-20220624135102-4.jpeg

  • Switch device, search device and switch to monitor buffer memory.

image-20220624135106-5.jpeg

Clear PLC memory

Function: Clear the data of the PLC

image-20220624135402-6.jpeg

Step:

  1. Before clearing the PLC memory, the PLC needs to be in the stop state.
  2. Check the data object. If the PLC memory is checked, it includes but is not limited to data devicess, bit devicess and special devicess.
  3. Click "Execution" and wait for the PLC to clear the data.

PLC clock set

Function: Set the PLC clock. You could customize the internal time of the PLC to achieve the purpose of accurate calculation.

Click “ PLC clock set" to open the clock setting interface.

image-20220624143649-1.jpeg

Explanation:

  • Connection: Display the information of the currently PLC, read the parameters of this PLC, and cannot be changed.
  • Time and calendar area: you can easily select time information and match freely.
  • Read PC time: The software will automatically read the current PC time without manual calibration.
  • Set time: After finishing the setting, click this button to save the current operation setting to the PLC.
  • Close: Do not save the current operating data, and exit to close this window.

Set time:

  1. Please ensure that the PLC and PC communicate normally. If it fails to communicate normally, please click "Transfer Settings" and put the PLC in the STOP state.
  2. Click "PLC clock set" to open the time setting window.
  3. Select the time required by the user in the time control panel or in the calendar panel.
  4. The time interval of the year is 2000 to 2099; The interval of the month is January to December;
     The time interval is from 0 o'clock to 23 o'clock; The partitions are from 0 minutes to 59 minutes; the second interval is from 0 seconds to 59 seconds.
  5. You can also click [Get PC Time] to quickly match the current time (provided that the PC time is accurate).
  6. After completing the configuration, please click "Set time" to save, otherwise it will not be saved. Successful setting is shown below.

image-20220624143711-2.jpeg

Remote operation

Function: Remote operation can quickly change the state of the PLC online and control the switch of the PLC.

image-20220624144217-3.jpeg

PLC diagnostics

Function: PLC diagnostics will monitor the errors generated by PLC in real time and reflect them in the table. You could view the summary of the error, the cause and the treatment method through this interface. If it is a problem with the ladder diagram, click Error Jump to jump to the location where the error occurred.

image-20220624144649-4.jpeg

PLC checksum

Function: You could select the items that need to be verified by the PLC, as shown in the figure below:

image-20220624145100-5.jpeg

Compare the difference between the program in the current PC software and the program in the PLC, as shown in the figure below:

image-20220624145157-6.jpeg

Double-click the list, and you could view the specific differences of the program, as shown in the following figure:

image-20220624145325-7.jpeg

Module monitor

Function: This function is used to monitor the BFM value of the module and modify the BFM data. According to the description information corresponding to the BFM, the user can understand the function of the BFM.

Interface description:

  • Customization: Create a new module plan, and use the default data as the initial value of the module BFM,. You could edit the plan content on this basis.
  • Save: Create a new module plan, and use the current module monitoring data as the initial value of the module's BFM, You could  edit the plan content on this basis.
  • Help: Open the instruction manual of the module where you could find the detailed instructions for the module.
  • Refresh: You can update the module information of the current PLC connection and refresh the module information list.
  • Working mode:
    • Offline: Display all module models that can be connected to the current PLC model. You could view the module BFM information when the module is not connected, or open the module instruction file through the "Help" button;
    • Online: Display the module information of the current PLC connection in the module information list, and monitor/modify the BFM value of the module.

Step:

  • Click "Module Monitor".

image-20220624151636-8.jpeg

  • Select the module you want to monitor to o view and modify the value.

5V帮助文档_中性_html_70be57a90d675c22.png

Tool

PLC encryption tool

In the PLC Editor2, you could set a password for the PLC to maintain security. The PLC encryption tool can be set to "upload password", "download password", and "clock password" respectively.

Explanation: The three types of passwords are independent (you must use separate decryption when performing operations), and the set passwords can be the same or different which ensure the safety and independence of PLC. As shown below:

image-20220624152122-9.jpeg

Precautions for setting a password:

  • The setting steps of "upload password", "download password", and "clock password" are exactly the same (only the type needs to be customized by the user).
  • The length of the password can only be 8 characters, no more or less than.
  • When setting a new password, the first time password and the second confirmation password must be the same.
  • When performing password operations, please ensure that the PLC and PC are in a normal connection state, and the PLC must be in the NOT RUN state (close the switch of the PLC panel).
  • When the password is entered incorrectly for 5 times, the password is locked, and the password can be entered again only when the PLC is restarted after power off.

Steps to set password:

  • Connect the PLC and PC normally, and run the compiler at the same time;
  • Turn off the RUN of the PLC;
  • Click "PLC Encryption Tool" in the "Tool" panel;
  • After opening a new window, if the "old password" input box cannot be entered, it means that the PLC is not currently encrypted;
  • Select the type of password that needs to be set, and click "Set". (The following PLC takes uploading password as an example)

image-20220624153523-10.jpeg

  • Please follow the instructions to fill in the correct password.
  • If the password length is not enough, there will be a prompt as follows:

image-20220624153725-11.jpeg

  • If the secondary password is inconsistent, there will be a prompt as shown below:

image-20220624153816-12.jpeg

  • If the password is successfully set, there will be a prompt as shown below:

image-20220624153830-13.jpeg

Clear password

If the PLC does not have a password, ignore this description. If the PLC has a password, please enter the existing password if you need to clear the password. Please refer to the precautions for input errors more than 5 times.

image-20220624154242-16.jpeg

Steps to clear the password:

  • Connect the PLC and PC normally, and run the compiler at the same time;
  • Turn off the RUN of the PLC;
  • Click "PLC Encryption Tool" in the "Tool" panel;
  • Select the PLC password to be cleared in "Type", and click "Clear".
  • After opening a new window, please enter the specified password in the "Please enter password" area, and then click "Execute".
  • If you input the wrong upload password, there will be a prompt as shown below:

image-20220624154309-17.jpeg

  • If the password is correct, there will be a prompt as shown below:

image-20220624154314-18.jpeg

PLC code

To further protect the program, PLC code and program code are introduced so that the project can be dedicated to the designated PLC. The user can set a program code for the project and a PLC code for the PLC. The PLC can match the program code and its PLC code each time it performs the download, check, and compile operation in the "Monitoring and editing" mode to ensure that the project with the program code set can only be used for specific PLC.

The setting interface of program code and PLC code is as follows:

1.jpg

Precautions for code setting:

  • Setting, modifying and clearing the program code and PLC code can be done according to the checkboxes of the corresponding codes. If the setting item is not checked, the following figure will prompt:

2.jpg

  • The program code and PLC code can be set separately or at the same time. Only when the program code and PLC code are consistent or both are empty can the two codes be checked at the same time. If two codes are checked at the same time when they are inconsistent, the following figure will prompt:

3.jpg

  • If the current connected PLC does not support the PLC code function, the following figure will prompt when checking the PLC code:

5.png

  • Code format: 8-bit characters, 0~9, a~z, A~Z.
  • When setting a new code, the new code and confirmation code must be consistent.
  • If the program code and PLC code are inconsistent, check the two codes at the same time for 5 times, or after inputting the wrong code for 5 times, the PLC code will be locked, and the following figure will pop up. Only when the power is cut off and the PLC is restarted can the code be inputted again.

4.jpg

✎Note : PLC code cannot be cleared when clearing the PLC memory, please remember the PLC code.

Steps to set code:

  • Connect PLC and PC correctly and run compiler at the same time;
  • Click "PLC encryption tool" in the "Tool" panel;
  • Switch to PLC code page and check the code to be set;
  • After checking the code to be set, if the "Old code" input box shows that it cannot be inputted, it indicates that the code has not been set;
  • Please fill in the correct code according to the instructions;
  • If the code is empty, the following figure will prompt:

6.jpg

  1. If the code length is not enough, the following figure will prompt:

7.jpg

  • If the new and old codes are inconsistent, the following figure will prompt:

8.jpg

  • If illegal characters are inputted, the following figure will prompt:

9.jpg

  • If the code is set successfully, the following figure will prompt:

    10.jpg

    Clear code:

  • If the checked code does not exist, the button to clear the password cannot be clicked. If exists, the button is enabled;
  • Click "Clear Password", and input the current code in the pop-up password verification box (as shown below);

11.jpg

  • If the correct code is input, the following figure will prompt:

12.jpg

  • If the wrong code is input, the following figure will prompt. Please refer to the precautions (6) if input errors exceed 5 times:

13.jpg

Application of code function:

When downloading, PLC verification and compiling in "Monitoring and editing" mode, the program code and PLC code are verified. It continues to execute the operation when the codes are consistent or are both empty, otherwise there will be the following figure prompt:

14.jpg

When executing the upload operation, if there is a PLC code, the PLC code verification box (as shown in the following figure) will pop up. The upload operation will continue after inputting the correct PLC code. After the upload is successful, the program code of the project will be automatically set to be consistent with the PLC code;

15.jpg

Project encryption tool

In the PLC Editor2, you could set a password for the project file to maintain security. As shown below:

image-20220624154810-19.jpeg

Precautions for setting a password:

  • The length of the password can only be 8 characters, no more or less than.
  • When setting a new password, the first time password and the second confirmation password must be the same.
  • When the password is entered incorrectly for 5 times, the password is locked, and the password can be entered again only when the project file is reopened.

Steps to set password:

  • Click "Project encryption tool" in the "Tool" panel;
  • After opening a new window, if the "old password" input box cannot be entered, it means that the PLC is not currently encrypted;
  • Select the password that needs to be entered, and click "Set".

image-20220624155700-20.jpeg

  • Please follow the instructions to fill in the correct password.
  • If the password is not long enough, there will be a prompt as shown below:

image-20220624155810-21.jpeg

  • If the secondary password is inconsistent, there will be a prompt as shown below:

image-20220624155815-22.jpeg

  • If the password is successfully set, there will be a prompt as shown below:

image-20220624155841-23.jpeg

Clear password

If the project does not have a password, ignore this description. If the project has a password, please enter the existing password if you need to clear the password. Please refer to the precautions for input errors more than 5 times.

image-20220624155909-24.jpeg

Steps to clear the password:

  • Click "PLC Encryption Tool" in the "Tool" panel, and click "Clear".
  • After opening a new window, please enter the specified password in the "Please enter password" area, and then click "Execute".
  • If you input the wrong upload password, there will be a prompt as shown below:

image-20220624155915-25.jpeg

  • If the password is correct, there will be a prompt as shown below:

image-20220624155920-26.jpeg

USB download

Function: Generate a bin file. You could use the file to download programs and other configurations through the HMI screen.

Step:

  • Click on the U disk to download and open the interface.

image-20220624161054-27.jpeg

  • Check the items that need to be downloaded, set the communication port parameters, and select the location of the U disk.

image-20220624161153-28.jpeg

  • Click "Excute" to generate the bin file.
  • Insert the U disk into the HMI screen to download.

Automatic backup

Function: Back up project files. You could view and retrieve historical versions through this function.

Step:

  • Open the saved file, click compile, compile all, close the project, switch historical version or switch program type after editing. You could see the historical version number increase by clicking on the automatic backup window.

image-20220624162512-29.jpeg

  • Click the remark information to add remarks to the historical version, and click "OK" save it.
  • Check the version number, and click "switch to this version", it will close the current version and load the historical version, as shown in the figure below:

image-20220624162515-30.jpeg

Generate download file

Function: Generate a file for download only, and the file cannot be viewed and uploaded.

Step:

  1. Compile all the program pages, click to generate the download file.
  2. Select the path and file name.
  3. Open the generated .swcp2 file and click download.

image-20220624163706-1.jpeg

Reset window layout

Function: Restore all floating windows in the program to the default position.

Steps: Click the reset window layout button in the view.

Before reset:

image-20220624163720-2.jpeg

After reset:

image-20220624163725-3.jpeg

Program editing area

In the program editing area, the user can freely switch between the ladder diagram and the instruction list. The ladder diagram interface provides editing operations. The instruction list interface is only allowed to be viewed and cannot be modified.

Ladder work area

Insert a new row

  • Select the position where you want to insert the row +1.
  • Click on the keyboard "Shift] + Insert" to insert a new row, or move the mouse to any position of the specified insertion row, right-click, select "Edit"->"Insert row above (shift+insert)".

image-20220625091617-1.jpeg

Insert the statement

Select the position where you want to insert the row.

  • Method 1: Use the keyboard shortcut: Shift+Ctrl+Insert.

image-20220625092707-2.jpeg

  • Method 2: Keyboard shortcut "Ctrl+F7".

image-20220625092847-3.jpeg

  • Method 3: Right-click, select "Edit"->"Insert Statement".

image-20220625092929-4.jpeg

Delete row

image-20220625093015-5.jpeg

Move the mouse to the row to be deleted; press and hold the left mouse button to select and move the row to be deleted (multiple rows are possible), the selected area will change color, and then click "Delete" on the keyboard.

image-20220625093149-6.jpeg

You could also select the row to be deleted, right-click to select "edit"->"delete row".

image-20220625093415-7.jpeg

Delete the statement

Same as row deletion.

Insert column

  • Select the position where you want to insert the column.
  • Click the keyboard "Ctrl+ Insert" to insert, or move the mouse to any position of the specified insertion row, and right-click, to select "Edit" -> "Insert column to the left".

image-20220625094524-8.jpeg

image-20220625094809-10.jpeg

Delete column

  1. Select the position of the column to be deleted.
  2. Press "Ctrl+Delete" on the keyboard to delete the column, or move the mouse to any position of the specified inserted row, right-click, and directly select "Delete", or select "Edit"->"Delete row".

Before deleting:

image-20220625094823-11.jpeg

After deleting:

image-20220625094828-12.jpeg

Copy and paste

The copy and paste function could save time and reduce the time on repeated operations.

Steps

  • Move the mouse to the ladder editing area.
  • Select the specified cell or drag the mouse to select an area.

5V帮助文档_中性_html_d5aa6c70c096349a.png

  • Use the "Copy" button of "Clipboard" in the "PLC Menu", or use the right mouse button to "Copy", or use the keyboard "Ctrl+C".

image-20220625095651-14.jpeg

  • After completing the third operation, copy the specified area to the clipboard.
  • Move the mouse to the designated position to be pasted, click the "Paste" button on the "Clipboard", or use the "Paste" move the mouse to the designated position to be pasted, click the "Paste" button on the "Clipboard", or use the "Paste" function of the right mouse button, or use the keyboard "Ctrl+V" to copy the specified data Copy to the specified location.

image-20220625095656-15.jpeg

Delete and modify ladder diagram devices

Steps:

  1. The ladder diagram can be modified only in the "Edit mode" state.

image-20220625100200-16.jpeg

  1. Use the mouse to select the components that needs to be modified, and double-click the left button or press the "Enter" key on the keyboard.
  2. After performing step 2, the output instruction dialog box will pop up.
  3. Enter the instruction corresponding to the selected component into the dialog box.
  4. Click "Execute" to save the modification.

✎Note: 

  1. The modified instruction must be able to pass the correct instruction verification before it can be saved.
  2. The contact element that occupies a cell (normally open, normally closed, rising edge, falling edge, reverse, stepping) cannot modify each other with the comparison contact.
  3. All contact components cannot be modified mutually with coils or application instructions.

Delete ladder diagram components

Steps:

  1. The ladder diagram can be deleted only in the "Edit mode" state.
  2. Use the mouse to select the component grid that needs to be deleted, left-click, and the selected part will be locked with a blue frame, and then you could press "Delete" on the keyboard to delete it.
  3. Batch delete: Move the mouse to the specified delete area, hold down the left mouse button and drag the mouse, and select cells in batches (cells will turn blue). After completing the selection, you could press "Delete" on the keyboard to delete it.
  4. Delete horizontal and vertical lines: In this special ladder diagram, you could perform step 2 or 3 to select the target first, and then click the "CF9" icon or "CF11" in the "Ladder symbol" function of the menu bar to execute the corresponding deletion.

Enter ladder diagram instructions

There are 5 ways to input ladder diagram instructions:

  1. Direct input 
  2. Input through instruction set
  3. Double-click cell
  4. Instruction help
  5. Ladder symbol/Shortcut

Direct input method

  • Move the mouse and left-click the specified cell.
  • Directly use the keyboard to input the specified instruction, the system will automatically pop up the ladder diagram input box.

image-20220625102401-17.jpeg

  • Enter the complete instructions and parameters in the dialog box.
  • Click "Execute" or the "Enter" button on the keyboard.
  • The system verifies the correctness of the input, and generates the graphic element represented by the instruction after the verification is correct.
  • If the instruction is wrong, the instruction help interface will pop up.

image-20220625102414-18.jpeg

Input through instruction set

  1. Move the mouse to the [Project Management] interface on the left side of the window.
  2. Expand "Instruction Set" and open the instruction tree you need
  3. Select the instruction you need, and left-click and hold, drag it to the "ladder diagram writing area", and place it in the specified area.
  4. After completing step above, a "ladder input " will pop up, then input the correct operand.
  5. Click "Execute" or "Enter" on the keyboard.

image-20220625103448-19.jpeg

Double-click the cell

  1. Move the mouse to the specified area and double-click the left button.
  2. "Ladder input" pops up, enter the correct command in the input box.
  3. Click "Execute" or the keyboard "Enter".
  4. If the instruction is wrong, the instruction help interface will pop up.

image-20220625104404-20.jpeg

Instruction help

  1. Move the mouse to the designated area and double-click the left button to pop up “Ladder input”.
  2. Click “Help” to pop up “Instruction Help”。
  3. After selecting the instruction that needs to be entered, click the "Detail" button to pop up the "Instruction Wizard".
  4. The instruction guide interface selects the correct operand according to different instructions.
  5. After selecting the specified instruction, click "Execute" to save the data and complete the instruction input.

image-20220625105747-21.jpeg

image-20220625105752-22.jpeg

Ladder symbol/shortcut

The ladder diagram symbol is located in the PLC menu, as shown in the figure below:

image-20220625105848-23.jpeg

After selecting the cell, click "Ladder Symbol" in the menu, and enter the operand in the pop-up ladder diagram input box to complete the instruction input. If it is an application instruction, after clicking 5V帮助文档_中性_html_1c8d975fb5bd8c.png on the panel, you must input the complete application instruction and its operands in the ladder diagram input box to complete the input instruction. You can also use the shortcut corresponding to the command (see the shortcut key list) to input, and the operation method is the same as the "ladder symbol".

After the instruction input is completed, click the "Execute" button in the ladder diagram input box and it will be displayed in the ladder diagram editing area.

✎Note: 

  1. Some instructions can only be input in the instruction list (IL) editor, but not in the ladder diagram, such as MPS, MPP, etc. When these instructions are directly input in the ladder diagram, no components will be generated.
  2. Since coils and application instructions represent the end of one line of the ladder diagram program, no other components can be input after these components.
  3. Since the vertical line occupies the space of two lines, when inputting the vertical line, if the corresponding position in the next line is just the middle part of other components, the vertical line cannot be input.
  4. The maximum number of input columns in the ladder diagram is 13 columns.

Instruction list work area

Instruction list editor

In the PLC Editor, the program not only provides a ladder diagram editor, but also provides an instruction list interface. The instruction list interface is not editable and only allowed to be viewed. As shown below:

5V帮助文档_中性_html_550c5cb7f37a8b23.png

  • Step number: The step number indicates the position of the instruction in the program, which can be used to quickly locate the program and improve the readability of the program.
  • Ladder diagram-instruction list switching: If there is an error in the program logic, it cannot be switched.

Shortcut menu

In the program editing area, click the right mouse button to pop up frequently used function buttons, which can greatly improve the developer's development efficiency.

image-20220625111835-24.jpeg

Undo: Undo the current operation and roll back the previous step.

Redo: Roll back the undo operation.

Cut: Cut the selected content in the ladder diagram and put it on the clipboard.

Copy: Copy the selected content in the ladder diagram and put it on the clipboard.

Paste: Paste the data in the clipboard at the selected position in the ladder diagram. When there is no data in the clipboard, paste is not available.

Delete: Delete the selected content in ladder diagram.

Compile: Compile the current program page.

Editing options:

  • Insert row: Insert an blank row in the current selected row in the ladder diagram.
  • Insert statement: Insert a blank staement row in the current selected row in the ladder diagram.
  • Delete row: Delete the currently selected row in the ladder diagram.
  • Insert column to the left: In the ladder diagram, a blank node is added to the selected instruction, and other instructions move one space to the right.
  • Delete column: In the ladder diagram, delete the currently selected instruction, and other instructions move one space to the left.

Search:

  • Device search: open the search/replace window, the default is the device search page, if the selected instruction in the ladder diagram contains a device, the "search device" defaults to the selected instruction's device, and it will be empty if there is none.
  • Instruction search: Open the search/replace window, the default is the command search page, if the command is selected in the ladder diagram, the "search command" defaults to the selected command, and it is empty if there is no command.
  • String search: Open the search/replace window, the default is the string search page, if a string is selected in the ladder diagram, the "search string" defaults to the selected string, and it is empty if there is no string.

View:

  • Comment display: In the ladder diagram, the comment of the device is displayed.
  • Alias display: In the ladder diagram, display the alias of the device.

Debugging:

  • Modify the current value: In the monitor mode (write mode is not available), open the device write dialog box. Modify the value of the device of the currently selected instruction.

Project management

Program

MIAN is the default program page name for a new project. There can be multiple program pages in a project. Double-click the program page to open the ladder diagram editing area in the user area, and you could edit the program.

image-20220625134223-1.jpeg

New program page: select scan/event/subroutine/interrupt, right click"scan"->"new", you could open the new program window, as shown in the figure below: 

5V帮助文档_中性_html_a8e9017d31a283f4.png

image-20220625134350-3.jpeg

Program page operations: Right-click the program page with the mouse to perform corresponding operations.

image-20220625134542-5.jpeg

Delete: Delete the program page.

Rename: Rename the program page.

Program encryption: Encrypt and decrypt the program page.

  • Encryption: select the program page to be encrypted and set the encryption password, After the encryption is executed, the program page is in the "encrypted" state, and the content of the program page is not displayed.

5-4.jpg

5-5.jpg

5-6.jpg

  • Cancel encryption: After entering the correct password, cancel the encryption of the program page.

image-20220625140048-6.jpeg

image-20220625140150-7.jpeg

  • Modify password: After entering the original program page password, set a new program page password.

image-20220625140231-9.jpeg

image-20220625140328-10.jpeg

  • Display encrypted content: Display the encrypted program page content. This function is only used to temporarily display the content of the program page without canceling the encryption status of the program page, which is convenient for editing the encrypted program page.

5-11.jpg

image-20220625140706-11.jpeg

Set: Right-click it, and you could view the author, date of creation, and remarks on the program page.

image-20220625141015-13.jpeg

  • Configuration: The time and interrupt program page can click the configuration button to set the trigger condition.

image-20220625142325-15.jpeg

Move up: Move the program page up, used to adjust the execution order of the program page.

                                              5-15.jpg               5-16.jpg

Move down: Move the program page down to adjust the execution order of the program page.

                                              5-17.jpg               5-18.jpg

Device comment

Device comment module: A .wcp2 file has one and only one module named "COMMENT" in "device comment".

Double-click "COMMENT" and shown as below.

image-20220625143125-16.jpeg

Interface label description:

  • Enter device name: Input the correct device name and press "Enter" to confirm, the comment list will locate the input device and select it.
  • The comment list is divided into 3 columns: device name, device comment, and device alias. Click the comment list, and select the device row, and double-click the device comment or alias to pop up an edit box for editing. The device comment value allows 128 characters, and the device alias only allows input of 8 characters.
  • Device interval selection: Click to select the device interval and change the device displayed in the comment list. The blue device section indicates that the section is selected. The devices interval is as shown in the figure below:

image-20220625143652-17.jpeg

Interface button description:

  • Display commented devices: The comment list displays all devices with comments or aliases.
  • Import EXCEL: select the *.xls file to be imported, and import all the correct device comments and aliases in the *.xls file into the software (supports *.csv file import).
  • Export EXCEL: Export and save all the devices information of edit devices comments or aliases as *.xls files to local disk.

Parameter

You could set the latch range of the PLC devices and the COM port communications according to your needs. Click the "×" symbol in the upper right corner to close the dialog box and change without saving.

Double-click the "PLC Parameters" node and the interface is shown as below.

image-20220625144326-19.jpeg

Interface button description:

  • Check: Check the configuration of the current settings, respectively check the "device latch", "COM1 " and "COM2". If the check fails, click the "OK" button to report an error.
  • Reset: Click this button to restore the default settings.
  • OK: Complete the correct PLC parameter change and set it.
  • Cancel: Cancel the PLC parameter setting and keep the parameter setting before the change.

Device latch

The address range of various types of registers including PLC is set in the devices. You could set parameters in the white squares in the picture table, but not the gray ones (cannot be modified). By modifying the data at the beginning and end of the latch, the latch range of the register can be modified, and the modified data range must be within the latch range.

image-20220625145833-20.jpeg

COM1 settings

image-20220625145902-21.jpeg

  • Whether to set: Whether to enable the COM1 port configuration.
  • Baud rate: Select the data transmission rate.
  • Data bit: Select the data length.
  • Stop bit: Select the number of stop bits.
  • Parity: Select the number of parity.
  • Station No.: Set the station number, ranging from 1 to 47.

COM2 settings

image-20220625150016-22.jpeg

Whether to set: whether to enable the COM1 port configuration.

  • Communication settings
    • Baud rate: Select the data transmission rate.
    • Data bit: Select the data length.
    • Stop bit: Select the number of stop bits.
    • Parity: Select the check digit.
    • Timeout: Set the timeout time, ranging from 0 to 32767.
    • Sending interval: Set the sending interval, ranging from 0 to 32767.
    • Protocol: Select the communication protocol.
  • Protocol related
    • Station No.: Set the station number. According to different protocols, the station number setting range is different.
    • Whether to enable the start character: used to customize the protocol.
    • Starter: set the end character for custom protocol.
    • Whether to enable terminator: used to customize the protocol.
    • Terminator: Set the terminator to customize the agreement.
    • Timeout between characters: used to customize the protocol.

Ethernet settings

image-20220625150721-23.jpeg

✎Note: Currently Ethernet configuration is only supported by 5V-N series and 6V series.

  • Communication settings
    • Whether to set: Whether to enable communication configuration of Ethernet setttings.
    • Whether to enable PLC automatic configuration IP (DHCP) function: automatic configuration IP (DHCP) function. (only supported by 6V series currently)
    • IP address: Configure the IP address of PLC
    • Subnet mask: Configure the subnet mask of PLC
    • Default gateway: Configure the default gateway of PLC
  • Protocol related
    • Whether to set: Whether to enable the protocol configuration of Ethernet settings.
    • Maximum number of connections supported by modbusTCP server: Number of simultaneous connections available for other modbusTCP clients. (only supported by 5V-N series currently)

Basic information settings

image-20220625152250-24.jpeg

It is used to configure some basic information.

  • Whether to set: Whether to enable the basic information settings.
  • PLC name: Used to set the name of PLC. The maximum number of characters allowed to be entered is 32; the range of illegal characters not allowed to be entered: /%$@&=~`^<>? :{}[],;! *. \'"|

✎Note:

  • The first one is a space, and a space is also an illegal character. 
  • Currently, only PLCs with Ethernet function (5V-N series and 6V series) are supported.

Device memory

It is used to set the data of PLC data block when PLC is downloaded, and the data of the read PLC data block is displayed when PLC is uploaded.

New devices memory: Right-click and select the "device memory" → "New" to create a new device memory file (any character in the file name, up to 64 characters in length, and only one can be downloaded at a time). The interface is as follows:

image-20220625170448-1.jpeg

Interface label description:

  • Please enter: Enter the device to be searched, and press "Enter" to locate the device to be searched.
  • Device list: Divided into 10 intervals: C, D, HSC, LC, M, R, S, T, V, Z.

image-20220625171055-2.jpeg

  • Device value display area: Currently editing operations are prohibited.

image-20220625171109-3.jpeg

  • Cell format: 7 data formats: binary, decimal, hexadecimal, octal, real number, character string, ASCII code. One format and one color:
    • Binary: red
    • Octal : pink
    • Decimal: blue
    • Hexadecimal: brown
    • Real number: orange
    • Character string: cyan
    • ASCII code: green

image-20220627105818-1.jpeg

  • The data can be expressed in size: 16 bits and 32 bits.
  • The data size that each format can represent when the length is 16 bits:
    • Binary: 0000000000000000 to 1111111111111111;
    • Octal: 0 to 1777777;
    • Decimal: -32768 to 32767;
    • Hexadecimal: 0 to FFFF;
    • String: the size of 2 characters in length;
    • ASCII: 2 ASCII code values.
  • The data size that each format can represent when the length is 32 bits:
    • Binary: 00000000 00000000 00000000 00000000 to 11111111 11111111 11111111 11111111;
    • Octal: 0 to 37777777777;
    • Decimal: -2147483648 to 2147483647;
    • Hexadecimal: 0 to FFFF FFFF FFFF FFFF;
    • String: the size of the length of 4 strings;
    • ASCII: 4 ASCII code values;
    • Real number: ±1.175495E-38 to ±3.402823E+38.

Electronic cam

In the project management window, right-click “electronic cam table” to create a new electronic cam table (ECAM table).

                                                                       5-31.jpg    5-32.jpg

Open the ECAM interface and set the data.

image-20220627110623-2.jpeg

Click the parameter setting to set the parameters, such as the starting device, which indicates the starting position of the download time.

image-20220627110657-3.jpeg

The ECAM table information written by other programs can be imported into the ECAM table through import and export.

You could download the ECAM to the PLC.

Instructions

Available instructions are as follows: all instructions; basic instructions; step ladder instruction; program flow; transfer and compare; Arithmetic; cycle and shift; data processing; high-speed processing; common instruction; peripheral device IO; peripheral device SER; floating; contact compare; high-speed pulse output; clock calculation; floating contact comparison; data table; data block; communication instruction; electrionic CAM; other instructions; string control; Ethernet.

image-20220627112121-4.jpeg

PLCLINK table

New table: After create a new table, you could view "PLCLINK" in project manager window. Right-click it to create a PLCLINK table.

image-20220627113003-5.jpeg

Starting address settings: You can select D or R device as the area for storing PLCLINK table contents, and edit the starting device address, which will occupy 22+5*n devices starting from this device. This occupancy information reflects the tabular operation in the list of device used.
New command: Click "New command" to generate a PLCLINK command.

image-20220627115343-6.jpeg

Delete: Select the PLCLINK command to be deleted to delete the command.
Modify station NO.: You select the station number in the drop-list. The station numbers of station No.1 and station number No.2 cannot be the same. Range: 1 to 31.

image-20220627115946-7.jpeg

Modify device name: Select device name in the drop-list, note that the soft component type of station No.1 and station No.2 need to be the same.
Modify device address: Edit the start address edit box and enter the value within the range of the device.
Modify the number of device: Edit the number of device edit box, and enter the number of device.The number of double-word device ranges from 1 to 64. Device ranges from 1 to 128, and bit device ranges from 1 to 1024.
Modify instruction enable status: Click "Station No. Enable" to edit the parameters of the two stations of this instruction. The master station is always enabled and cannot be modified.

  • For example:
    • Click "New Command" to create a PLCLINK command.
    • Station NO.1 is selected as 2, station number NO.2 is selected as 3.
    • Click 'Station NO. Enable". If station number NO.1 is checked to enable, but station NO.2 is not checked to enable, the command enable is invalid. Only when both station numbers are checked to enable, the command enable is valid.

image-20220627134639-8.jpeg

PLCLINK operation

  • Check: Check whether the data of PLCLINK is legal.
  • Save: Enabled under the condition that the program is consistent in monitoring mode, and it will compare once automatically when entering.
  • Check Slave: Send command to PLC to check slave information.
  • Monitor Read: Get PLCLINK table information from PLC.
  • Monitor Write: Write PLCLINK table to PLC

Ethernet

Interface: Click "Project manager" -> "Extended function", and right-click "Ethernet" to open the "New-Ethernet configuration" window.

image-20220627141744-9.jpeg

The introduction of parameters:

  • Whether to enable: Whether to enable the Ethernet configuration
  • Socket ID: The number of socket supports a total of 6 ranging from K0 to K5. The socket ID is used to specify the link. Each ID is used for one link and cannot be defined repeatedly.
  • Communication protocol: TCP protocol and UDP protocol are supported.
  • Operating mode: For TCP, you could select client and server. For UDP, this does not work.
  • Local port:
    • For TCP client mode, the local port will be automatically allocated by PLC without setting.
    • For TCP server mode, the local port could be set within the range of 1 to 65,535. Port 502 is used by internal modbusTCP and cannot be set.
    • For UDP mode, the local port could be set within the range of 1 to 65,535. Port 1092 is used by scanning protocol and cannot be set.
  • Target ID: Valid in TCP client mode or UDP mode, specifying the peer device IP to be linked.
  • Target port: Valid in TCP client mode or UDP mode, specifying the peer device port number to be linked.
  • Receive timeout: After PLC sending data, if the response of the peer device exceeds this timeout, the network is considered abnormal and the error flag bit is set.
  • TCP keep-alive mechanism: When TCP protocol is used for communication, If the communication line is idle in most cases and only a small amount of data is sent and received, but the link needs to be kept open, or disconnected in time in case of a drop, crash or forced termination of the process at the communication end, you can use the keep-alive mechanism for communication.

Description: Ethernet socket configuration, with Ethernet SOC series instructions, can achieve ModbusTCP client, TCP free protocol, UDP free protocol.

image-20220627153819-1.jpeg

Use: Configuring the corresponding properties to achieve the corresponding functions, and download to the PLC through the download interface and the program to. For specific use rules and configuration methods, please refer to the PLC programming manual.

BD board configuration

Function entry: In "Project Management" interface, expand "Extended Function", and double-click "BD Board Configuration".

image-20220915161952-1.jpeg

Introduction of function interface

The main interface is divided into two parts. One is the current configuration information list, and the other is device list for users to choose configuration.

image-20220915161952-2.jpeg

  • Device list: It includes "PLC Host" and "BD Board". You can add device to the configuration list on the left by double-clicking the contents under the two nodes.

image-20220915161952-3.jpeg

"PLC Host" contains all the points existing in the actual device of PLC model set in the current project. Try to ensure that host points in the configuration list are consistent with the points actually connected to PLC, otherwise it may occur that the host computer is configured with two BD boards, but the actually connected PLC has only one BD board slot, resulting in the situation that the configuration of BD2 will not take effect.

image-20220915161952-4.jpeg

image-20220915161952-5.jpeg

"BD Board" contains all BD board models that can be supported by 5V series PLC at present.

  • Configuration list: Display the information of PLC host and BD board currently configured.

image-20220915161952-6.jpeg

  • Slot number: 0 is the host by default, 1 is BD1, and 2 is BD2.
  • Configure device name: Displays the device name.
  • Device description: Displays a brief description of the device.
  • Device occupancy: Displays the device occupancy of the configuration device.
  • Actual installation type: In monitoring mode, display the BD board model actually connected by PLC.
  • Device version number: In monitoring mode, display the BD board version number actually connected by PLC.

Introduction to configuration operations

image-20220915161952-7.jpeg

  • Add BD board Configuration: Add by double-clicking BD board in the device list on the right.
  • Modify BD board configuration: Open the BD board configuration window by right-clicking on the menu or double-clicking on the BD Board in the configuration list.
  • Move up/down: The positions of the BD boards configuration on slot 1 and slot 2 can be swapped.
  • Delete BD board configuration: Delete BD board configuration.

Introduction of BD board configuration interface

Module configuration: Used to configure the general configuration of BD board, applicable to all channels.

image-20220915161952-8.jpeg

BD board channel configuration: The enable status and parameter settings of each channel of BD board can be configured.

image-20220915161952-9.jpeg

I/O mapping: The channel value of the BD board is displayed by the device through mapping.

image-20220915161952-10.jpeg

Device information: Display device information of BD board.

image-20220915161952-11.jpeg

Reset: Initialize the configuration data of BD board, and the parameters are the same as when the BD board is added.

image-20220915161952-12.jpeg

Other functions

Device information: You can view the BD board model and corresponding version number currently connected by PLC.

image-20220915161952-13.jpeg

PLC calibration: Check the configuration of BD board and PLC.

image-20220915161952-14.jpeg

BD board monitoring

image-20220915161952-15.jpeg

U disk download: BD board configuration function supports U disk download, and the data will be packaged together with the program node.

image-20220915161952-16.jpeg

✎Note:

  • The minimum software version number of the slave computer that supports the BD board configuration function: V2.051.

image-20220915161952-17.jpeg

  • The BD board model and slot position of PLC currently connected to the host computer should be consistent with the configuration list of BD board of the host computer.
  • Ensure that host points in the configuration list is consistent with the number of points actually connected to PLC, otherwise it may occur that the host computer is configured with two BD boards, but the actually connected PLC has only one BD board slot.

Output window

Information output

Information output window: Provide users with the results after the software performs operations including the execution result information of the three operations of compiling, communication, and switch.

image-20220628142118-1.jpeg

If there is an error in the program, the error will be listed in the "Information output" module at the bottom of the ladder diagram. Select the specified error item, and double-click to locate the error position of the ladder diagram.

Search&Replace

Search and replace function: Similar to the search and replace function of OFFICE, it can locate the data block specified by the user in a large amount of data, or perform batch addition, deletion, modification, and check, which can greatly improve efficiency.

How to use: Open the main program, after creating a new project, click “Ctrl+F” on the keyboard to pop up the search and replace interface, as shown in the following figure:

image-20220628142601-2.jpeg

Buttons are divided into 4 categories: devices, instruction, string, and result, as shown in the figure above; clicking any one will switch to the corresponding operation interface.

Modify device value

Modify device value: modify the PLC internal register and coil value; modify the expansion device register value. As shown below:

image-20220628143453-3.jpeg

image-20220628143458-4.jpeg

PLC internal devices:

  • Devices:
    • "Devices" are registers and coils (such as C0, M1, etc.) whose values need to be modified within the range of PLC.
    • "Data type" includes Word (single word) , Bit (binary 0 or 1), double Word, float (single precision floating point number).
    • "Value" is the specific value to be modified (corresponding to the number in the range of "Data Type"), such as -120.
    • The data format can be decimal (single word: -32768 to 32767; double word:  -2147483648 to 2147483647) or hexadecimal (single word: 0 to FFFF; double word:  0 to FFFFFFFF).
    • Click "Set" to write the set value within the correct range to the selected device.
  • Execution result: Record the successfully modified "device", "data type" and "set value" in the form of a list.
  • Record list:
    • Click any one in the list, and click "Delete" to delete it.
    • Click "Clear List" to clear the record list.
    • Select any one in the record list and click "Response to Input Field" to reflect the items in "device" .

PLC external expansion module:

  • "Module start" is the extension module number (such as module 0).
  • "Address" is the internal writable address of the expansion module, and the address type can be decimal or hexadecimal.
  • "Data type" includes Word (single word), Double Word, Float (single precision floating point number) .
  • "Value" is the specific value to be modified (corresponding to the number in the "data type" range), such as -120. The type can be decimal or hexadecimal.
  • The data can be decimal (single word: -32768 to 32767; double word: -2147483648 to 2147483647) or hexadecimal (single word: 0 to FFFF; double word: 0 to FFFFFFFF).
  • Click "Set" to write the set value within the correct range to the selected device.

✎Note: 

  1. Modification of the device value must be executed in the case of communication with the PLC.
  2. The device must be within the available range of the corresponding PLC model.
  3. The input value must be within the allowable range.
    • Decimal: single word (-32768 to 32767), double word (-2147483648 to 2147483647)
    • Hexadecimal: single word (0 to FFFF); double word (0to FFFFFFFF)
    • Floating: ±1.175495E-38 to 3.402823E+38

Print ladder diagram

The print function is divided into: print, print preview, and print settings.

Preconditions for printing

  1. Open the project file (not the project file generated by the "Generate Download File" function).
  2. The program has all been compiled.
  3. The program is in edit mode.

Only when the above three conditions are met, the print button can be clicked.

image-20220628145819-5.jpeg

Printing preview

Before printing, you could preview the print on the screen. Click the "File" → "Print" → "Print Preview" to open the print preview window as shown in the figure below:

image-20220628145842-6.jpeg

Print preview interface

image-20220628145927-7.jpeg

Print

When you need to print, please click the print button, and a standard print dialog box will pop up. You could set the print options here. After setting, you could click "OK" to output the current program to the printer.

image-20220628150306-8.jpeg

Printer settings

Set print information. As shown below:

image-20220628150319-9.jpeg

Status bar

Indication: language, uppercase and lowercase status, digital keyboard lock status, rewrite/insert status, communication port, project model, current program steps/total program steps and other status information.

image-20220628150551-10.jpeg

  • Language: The language type displayed by the software. Highlighted means enabled.
  • Case state: English input state.
  • Numeric keypad lock: Whether the numeric keypad is available.
  • Rewrite/insert state: ladder diagram editing mode.
  • Communication port: communication COM port. Click it to pop up the communication setting window.
  • Project type: Display the PLC model of the current project.
  • Current program steps/total program steps: Program editing page, program steps of the currently selected instruction/total program steps.

Device usage list

The device usage list mainly displays the specified type of device. You could check the usage, and the corresponding comment and alias of the device.

image-20220628152232-11.jpeg

Instructions for using the list of devices:

  • Device selection drop-down box: select the drop-down box option, search for and display the usage of the corresponding type of Device (starting from serial number 0).

image-20220628152301-12.jpeg

  • Start devices drop-down box: You could enter the full name or serial number of the start devices, press the Enter key or press the "search" button to search and display the usage of this type of devices (starting from the initial serial number). Record the search record in the drop-down box. After selecting the record, you could perform the search again.

image-20220628152611-13.jpeg

  • Search button: Perform a search operation. When the starting device is empty, it will prompt to input a device.

image-20220628152633-14.jpeg

  • Search range: Specify the search range of the device.
    • Current program page: Search only for the currently active program page.
    • Current program type: Only for all program pages of the same type in the currently activated program page.
    • Whole project: for all program pages of the current project. (The program page types are divided into: scan, event, subroutine, interrupt)

image-20220628152800-15.jpeg

  • Expand and close the sub-items of the device usage list.

image-20220628153639-16.jpeg

  • The sub-items of the devices usage list includes instruction, step number, type and other information of the devices in the program. Double-click the content of the sub-item to locate the corresponding position in the program.

image-20220628153730-17.jpeg

  • Device comment and alias column: (the background color is white) displays the comment or alias of the device.

image-20220628153741-18.jpeg

Display options:

  • All devices: After selecting, search all devices of this type.

image-20220628154043-19.jpeg

  • Used devices: After selecting, search for the used devices of this type according to the contact and coil options.
    • Neither the contact nor the coil is selected, and all the devicess of this type that have been used in the program are displayed.
    • Select the contact (coil) to display the type of devices as the contact (coil) in the program.
    • Select both contacts and coils, and display the type of devices that are used as contacts and coils in the program.

image-20220628154051-20.jpeg

  • Unused devices: After selecting, display all the devicess of this type that are not used in the program.

image-20220628154101-21.jpeg

Shortcut keys list

Universal shortcut keys

The universal shortcut keys are as follows:

Hot keyCorresponding menu (function name)Summary
Ctrl + NNew ProjectNew Project
Ctrl + OOpen the projectOpen an existing project
Ctrl + SSave the projectSave the project
Ctrl + XCutCut selected data and range
Ctrl + CCopyCopy selected data and range
Ctrl + VPasteCut/paste the copied data at the cursor position
Ctrl + ZRevokeRevoke the previous operation
Ctrl + YRestoreResume the operation canceled by "Undo"
Ctrl + FSearch deviceSearch device
Ctrl + F1Display/hide menu toolbarDisplay/hide menu toolbar
F3Start MonitoringCurrently, start to monitor the window that is the target of the operation
Ctrl + F3Monitoring stopCurrently, stop monitoring the window that is the target of operation
F4CompileCompile (switch) the program page currently being edited
Ctrl+F4Compile allCompile (switch) all program pages in the current project
Alt+F4Exit the softwareExit the software

Shortcut keys for ladder editor

The shortcut keys that can be used in the ladder diagram editor are as follows:

Shortcut keyCorresponding menu (function name)Summary
F5Normally open contactWrite normally open contact to the cursor position
Shift + F5Normally open contact ORWrite normally open contact OR to the cursor position
F6Normally closed contactWrite normally closed contact to the cursor position
Shift + F6Normally closed contact ORWrite normally closed contact OR to the cursor position
F7CoilWrite coil to the cursor position
F8Application instructionsWrite application instructions to the cursor position
F9Horizontal line inputWrite horizontal line to cursor position
F11Vertical line inputWrite the vertical line to the cursor position
Ctrl + F9Delete horizontal lineDelete the horizontal line at the cursor position
Ctrl + F11Delete vertical lineDelete the vertical line at the cursor position
Shift + F7Rising edge pulseWrite the rising edge pulse to the cursor position
Shift + F8Falling edge pulseWrite the falling edge pulse to the cursor position
Ctrl + Alt + F7Parallel rising edge pulseWrite the parallel rising edge pulse to the cursor position
Ctrl + Alt + F8Parallel falling edge pulseWrite the parallel falling edge pulse to the cursor position
Ctrl + Alt + F11Invert the result of the operationWrite the result of the calculation to the cursor position
Ctrl + Shift + InsertInsert statement between linesInsert the declaration line at the cursor position
Shift + InsertInsert program rowInsert the  row at the cursor position
Shift + DeleteDelete rowDelete the row at the cursor position
Ctrl + InsertInsert columnInsert the column at cursor position
Ctrl + DeleteDelete columnDelete the column at the cursor position
Ctrl + →Enter/delete horizontal line in the right directionEnter/delete horizontal line from the cursor position to the right
Ctrl + ←Horizontal line input/delete in the left directionEnter/delete horizontal line from the cursor position to the left
Ctrl + ↓Enter/delete the vertical line in the downward directionEnter/delete the vertical line from the cursor position down
Ctrl + ↑Upward vertical line input/deleteEnter/delete the vertical line up from the cursor position
Ctrl + /Normally open/normally closed contact switchingSwitch between normally open contact and normally closed contact
Ctrl + GJumpDisplay jump to the instruction position corresponding to the specified number of steps
Ctrl + F5Comment displayDisplay device comments and label comments
Ctrl + F7Statement displayDisplay statement
F1Open instruction helpDisplay instruction help