ABB(中国)有限公司 武汉分公司
ABB
地址:中国湖北省武汉市武昌中南路7号3408室
电话:(027)87259222 传真:(027)87259233
手机:15927508200 直拨:(027)87259230
共 21 页 第 2 页
目录
1. 标准数据类型..............................................................................................................................3
1.1 BOOL..................................................................................................................................3
1.2 整型数据类型....................................................................................................................3
1.3 REAL / LREAL ..................................................................................................................3
1.4 STRING ..............................................................................................................................3
1.5 时间、日期类型................................................................................................................4
1.6 常数....................................................................................................................................4
1.6.1 BOOL – 常数 ..........................................................................................................4
1.6.2 TIME – 常数 ...........................................................................................................4
1.6.3 DATE – 常数...........................................................................................................4
1.6.4 TIME_OF_DAY 常数.............................................................................................4
1.6.5 DATE_AND_TIME – 常数 ....................................................................................5
1.6.6 数值常数.................................................................................................................5
1.6.7 REAL / LREAL – 常数...........................................................................................5
1.6.8 STRING – 常数 ......................................................................................................5
2. 变量类型转换功能......................................................................................................................6
2.1 BOOL_TO_变换.................................................................................................................6
2.2 TO_BOOL – 变换..............................................................................................................6
2.3 整型数类型之间的转换....................................................................................................6
2.4 REAL_TO - / LREAL_TO – 转换.....................................................................................7
2.5 TIME_TO - / TIME_OF_DAY – 转换...............................................................................7
2.6 DATE_TO - / DT_TO – 转换 ............................................................................................7
2.7 STRING_TO – 转换 ..........................................................................................................7
2.8 TRUNC (取整)....................................................................................................................8
3. 用户定义的数据类型..................................................................................................................8
3.1 数组....................................................................................................................................8
3.2 指针..................................................................................................................................10
3.3 牧举..................................................................................................................................10
3.4 结构..................................................................................................................................10
3.5 参考 (别名类型).............................................................................................................11
3.6 替代范围类型..................................................................................................................11
4. 编程方式....................................................................................................................................14
4.1 指令表 IL........................................................................................................................14
4.2 结构化文本 ST...............................................................................................................16
4.3 功能块图 FBD................................................................................................................17
4.4 梯形图 LD ......................................................................................................................18
5. CoDeSys 中全部运算符及功能名............................................................................................19