摘要
为解决自动化生产线项目中大量数据更加方便存储、读写和传送的问题,在PLC控制逻辑中采用高级编程语言的“指针和数组”编程方式,利用数组方式存储数据,并使用“指针”对数据进行读取后传送。对比并采用常用的PLC编程语言传送位置数据的方式。采用高级编程语言的“指针和数组”编程方式的PLC控制逻辑更加简洁,更易于修改和故障排查。采用高级编程语言的“指针和数组”编程方式更适用于大量、复杂的PLC数据传送逻辑的应用。
In order to solve the problem of more convenient storage,reading,writing and transmission of a large amount of data in the automatic production line project.In the PLC control logic,the"pointer and array"programming mode of the high-level programming language is adopted,the data is stored in the way of array,and the"pointer"is used to read and transmit the data.Compared with the commonly used PLC programming language to transmit location data,the PLC control logic of"pointer and array"programming mode of advanced programming language is more concise and easier to modify and troubleshoot.The"pointer and array"programming mode of high-level programming language is more suitable for the application of a large number of complex PLC data transmission logic.
出处
《科技创新与应用》
2023年第27期181-184,共4页
Technology Innovation and Application
关键词
数组
指针
高级编程语言
PLC编程
数据传送
array
pointer
High-level programming language
PLC programming
data transmission