当前位置:网站首页>LM small programmable controller software (based on CoDeSys) note XXI: error 3703
LM small programmable controller software (based on CoDeSys) note XXI: error 3703
2022-07-04 05:14:00 【Gutie_ bartholomew】

When writing a program , Inadvertently entered two new variables in the global variable , And they didn't change the default name , Their names are name, So this error will be reported .
This paragraph in English is :several declarations with the same identifier "name"
Several declarations have the same identifier “name”
It means that the names of two variables are the same .

It's easy to change , Just delete one of the variables .
What is a global variable
It is well known throughout the whole project “ The standard ” Variable , Constants or remaining variables can be declared as global variables , It can also be used by other network users to exchange data Network variables .
Be careful : In a project, you can define a local variable with the same name as the global variable . under these circumstances , stay POU Use local variables in the scope of .
Two global variables with the same name are not allowed . for example , If you are in the PLC A variable is defined in the configuration “var1”, At the same time, this variable also exists in the global variable list , Then you will get compilation errors .
Create a list of global variables
To create a list of global variables , Open ' resources ' , Select the entry ' Global variables ', Or choose an existing list . next , Select the command ' engineering ' ' object ' ' add to ' To open the global variable list dialog .
If an existing global variable list is marked in the object manager , Then you can also use instructions ' engineering ' ' object ' ' To configure ' Open its dialog .
Link to the file :
file name : If there is an output file (*.exp) Or a DCF file , These files contain the desired variables , Then you can establish a link to this file . In order to do this , To insert the path of the file in the file name field . Click the Browse button to get the standard dialog box ' Text file selection '. When reading them ,DCF File is converted to ICE Format .
If you want to read the variable list from an external file before each project is compiled , Then activate the pre compile input option . If you want to write the variable list to an external file before each project is compiled , Then activate the pre compile output option .
If you click OK To close ' Global variable list ' Dialog box , Then you create this new object . The list of global variables is marked in the object manager To mark . You can use it. ' engineering ' ' object ' ' The props ' Command to reopen ' Global variable list ' Configuration dialog .
边栏推荐
- Customize a pager needed in your project
- Error response from daemon: You cannot remove a running container 8d6f0d2850250627cd6c2acb2497002fc3
- LM小型可编程控制器软件(基于CoDeSys)笔记二十二:错误4268/4052
- flink1.13 sql基础语法(一)DDL、DML
- 定制一个自己项目里需要的分页器
- Notes on the paper "cross view transformers for real time map view semantic segmentation"
- [matlab] matlab simulation - low pass Gaussian white noise
- [matlab] communication signal modulation general function interpolation function
- [matlab] matlab simulation modulation system FM system
- [matlab] matlab simulation modulation system - VSB system
猜你喜欢

Just do it with your hands 7 - * project construction details 2 - hook configuration

Detailed comparison of Hynix emmc5.0 and 5.1 series

2022广东省赛——编码信息获取 解析flag

Zhongke panyun-2022 Guangdong Trojan horse information acquisition and analysis

TCP state transition diagram
![[QT] timer](/img/df/5db6af851ef19f33fd7e7a7ed46586.png)
[QT] timer

PostgreSQL has officially surpassed mysql. Is this guy too strong!

中科磐云—模块A 基础设施设置与安全加固 评分标准

关于solidworks standard无法获得许可 8544问题的总结
![[技术发展-25]:广播电视网、互联网、电信网、电网四网融合技术](/img/87/e0469e280365ed0261e2b551ebd888.png)
[技术发展-25]:广播电视网、互联网、电信网、电网四网融合技术
随机推荐
With the advent of the IP era, how can E-sports hotels take advantage of the "east wind" of games?
RSA加密应用常见缺陷的原理与实践
Fault analysis | mongodb 5.0 reports an error, and the legal instruction solves it
Just do it with your hands 7 - * project construction details 2 - hook configuration
简单g++和gdb调试
Annex I: power of attorney for 202x XXX attack and defense drill
中科磐云—D模块解析以及评分标准
[interested reading] advantageous filtering modeling on long term user behavior sequences for click through rate pre
Customize a pager needed in your project
基于单片机的太阳能杀虫系统
Yyds dry goods inventory TCP & UDP
TCP状态转换图
Exercise bubble sort
Flutter ‘/usr/lib/libswiftCore. dylib‘ (no such file)
June 2022 summary
Error response from daemon: You cannot remove a running container 8d6f0d2850250627cd6c2acb2497002fc3
Zhongke panyun-2022 Guangdong Trojan horse information acquisition and analysis
2022广东省赛——编码信息获取 解析flag
Li Kou's 300th weekly match
中職組網絡安全—內存取證