当前位置:网站首页>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 .
边栏推荐
- National vocational college skills competition (secondary vocational group) network security competition questions - Analysis
- LM小型可编程控制器软件(基于CoDeSys)笔记二十一:错误3703
- 每日刷题记录 (十二)
- Notes on the paper "cross view transformers for real time map view semantic segmentation"
- Unity 接入天气系统
- appliedzkp的zkevm(12)State Proof
- 2022G2电站锅炉司炉特种作业证考试题库及答案
- 【MATLAB】MATLAB 仿真模拟调制系统 — AM 已调信号的功率谱与相干解调
- [paper summary] zero shot semantic segmentation
- TCP状态转换图
猜你喜欢
Secondary vocational group network security - memory Forensics
2022年A特种设备相关管理(电梯)考试题模拟考试平台操作
2022 Guangdong provincial competition - code information acquisition and analysis flag
2022年T电梯修理操作证考试题库及模拟考试
ETCD数据库源码分析——初始化总览
ping端口神器psping
全国职业院校技能大赛(中职组)网络安全竞赛试题—解析
Flutter ‘/usr/lib/libswiftCore. dylib‘ (no such file)
Programming example of stm32f1 and stm32subeide -74hc595 drives 4-bit 7-segment nixie tube
[QT] timer
随机推荐
Notepad++--显示相关的配置
Annex III: scoring standard of the defender docx
[matlab] communication signal modulation general function - low pass filter
中職組網絡安全—內存取證
Get the ID of the record just inserted from laravel
Rollup各组件作用
【MATLAB】通信信号调制通用函数 — 傅里叶变换
QT qtableview data column width adaptation
Electronic components mall and data manual download website summary
Annex 4: scoring criteria of the attacker docx
Several smart watch related chips Bluetooth chip low power consumption
2022年R2移动式压力容器充装复训题库及答案
RSA加密应用常见缺陷的原理与实践
如何使用postman实现简单的接口关联【增删改查】
laravel 中获取刚刚插入的记录的id
定制一个自己项目里需要的分页器
LabVIEW错误对话框的出现
Character types of C language
[matlab] general function of communication signal modulation bandpass filter
【QT】定时器