Use the following steps to check your ladder program:
|
1) Confirm that the ladder program is displayed in the diagram workspace. |
|
2) Select the View Local Symbols View button on the toolbar to switch to the symbol table. Select the Show Address References button from the toolbar to activate the Address References tool. |
|
3) Check each symbol's usage in the program by selecting it and displaying the Address Reference tool or by moving the cursor in the diagram. |
You can also view the Ladder view in Mnemonic view. You can enter a block program by displaying a rung in Mnemonic view or in the Ladder editor.
Select the Mnemonic View button in the toolbar to activate the Mnemonic view. To enter mnemonic instructions directly in the Ladder Editor, select View as Statements for the relevant rung. |
(3) Compiler
Both online and offline programs are constantly checked during their creation and editing. Program errors appear as red lines in the ladder diagram. If an error occurs in a rung, a red line appears to the right of the ladder diagram rung. This situation occurs, for example, when an element has been placed in the diagram window, but no symbol and address have been assigned.
Follow these steps to compile the program:
To list all errors in the program, press the right mouse button and select the Compile Program button in the toolbar. The output (such as compilation progress or error details) will be displayed under the Compile tab in the Output window. |
3. Download the program to PLC
Follow these steps to download a program to the PLC:
1) Select the Save Project button in the toolbar to save the current project. If the project has not been saved before, the Save CX-Programmer File dialog box will be displayed. Enter the file name in the File Name field and select the Save button to complete the save operation. | |
2) Select the online work button in the toolbar to connect to the PLC. A confirmation dialog box will appear, select the confirmation button. Since editing is generally not allowed when online, the program will turn gray. | |
|
3) 3) Select the program object in the project workspace. |
4) 4) Select the Program Mode button in the toolbar and set the PLC's operating mode to Programming. If this step is not done, CX-Programmer will automatically set the PLC to this mode. | |
5) 5) Select the Download button on the toolbar and the Download Options dialog box will be displayed. | |
|
6) 6) Set the program bar and click the Confirm button. |
4. Transferring programs from PLC
Follow the steps below to upload the PLC program.
|
1) Select the PLC object in the project workspace. |
2) Select the Upload button in the toolbar. The first program in the project tree will be compiled. If the PLC is offline, a confirmation dialog box will be displayed. Select the Confirm button to connect to the PLC. The Upload dialog box will be displayed. | |
|
3) Set the program bar and select the Confirm button. |
5. Comparison between engineering program and PLC program
Follow the steps below to compare the engineering program and the PLC program.
|
1) Select the PLC object in the project workspace. |
2) Select the Compare with PLC button in the toolbar and the Compare Options dialog box will be displayed. | |
|
3) In the Settings Program column, select the Confirm button. The Compare dialog box will be displayed. |
6. Monitor the program while it is executing
Once the program is downloaded, its operation can be monitored in the Chart Workspace (in the form of a simulated display). Follow the steps below to monitor the program.
|
1) Select the PLC object in the project workspace |
2) Select the Toggle PLC Monitoring button in the Project toolbar.
3) While the program is executing, you can monitor the data and control flow in the ladder diagram, for example, the selection of connections and the increment of values. |
7. Online Editing
Although the downloaded program has been grayed out to prevent direct editing, it is still possible to select the online editing feature to modify the ladder program. When using the online editing feature, it is usually necessary to run the PLC in "Monitor" mode. Online editing is not possible in "Run" mode. Use the following steps to perform online editing.
|
1) Drag the mouse to select the step to be edited. |
2) Select the Compare with PLC button in the toolbar to confirm that the contents of the editing area are the same as those in the PLC. | |
3) Select the Online Edit Rung button in the toolbar. The background of the rung will change, indicating that it is now an editable area. Rungs outside this area cannot be changed, but the elements in these rungs can be copied to the editable rungs. | |
|
4) Edit the ladder. |
5) When you are satisfied with the result, select the Transfer Online Edit Changes button in the toolbar and the edited content will be checked and transferred to the PLC. | |
6) Once the changes have been transferred to the PLC, the edit area becomes read-only again. Select the Cancel Online Editing button in the toolbar to cancel any online edits made before confirming the changes.
|
Previous article:Realize data interaction technology between EtherCAT devices and PROFINET controllers
Next article:The three major binocular stereo vision algorithm principles and their code implementation
Recommended ReadingLatest update time:2024-11-16 13:30
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- HTS221 MakeCode extension (driver)
- Can sensorless drive completely replace sensory drive?
- Motor drive development communication 3: Software component description
- MP3302DJ chip drives 640*480 LCD screen heating problem
- Is the baud rate for communication between microcontrollers set in advance? Or calculated? Also, why does the crystal oscillator have 11.0592...
- GigaDevice GD32L233 Review Summary
- CircuitPython 7.0.0 alpha3 released
- DALSA P3-80-08K40 Line Scan Camera Teardown
- CircuitPython 6.0.0 Alpha 1 released
- [Hua Diao Experience] 19 Hezhou ESP32_C3 lights up WS2812B hard screen