Port PLC control method of the invention discloses a NC machine tool system, which comprises the following steps: (1) PLC to obtain the current information including the port address port information from the timer in Timer; (2) by PLC according to the received information from port PLC instructions on port for processing; (3) will be obtained port information to drive R0; obtain the current port information through the timer cycle scan, and then through the PLC port according to the control information processing and detection of effective control of port input and output port, the process is simple and convenient, stable and reliable performance, wide application range, more economical.
【技术实现步骤摘要】
本专利技术涉及数控机床系统领域,特别涉及一种数控机床系统端口控制技术 领域的数控机床系统中PLC控制端口的方法。
技术介绍
制造业是国民经济的基础产业,制造业的水平的高低是衡量一个国家工业 发达程度的重要标志,数控机床水平的高低,关系着国家制造业水平的高低。在现有技术中,我们会利用数控系统进行相应的切割或焊接等,在利用机 床进行高压水射流切割机作业时,或者其他切割雕刻时,有时候需要打开某些 端口的输出,例如水切割中的水阀,高压,砂阀等,同时也需要在某些时候关 闭一些端口的输出,同时也需要对某些输入进行检测,对检测的结果进行相应 的处理,如一些报警;由于同一种切割机,但不同的厂家所需要的端口的输入, 输出也不是相同的,如果遇到端口的输入或输出不同就需要重新开发,那就需 要花费大量的人力,财力,这种方法显然不经济。因此,迫切需要一种在原来的基础上,只需修改某些配置文件就能达到控 制端口的输出和对输入并对端口进行检测的方法。
技术实现思路
本专利技术的目的是提供了一种数控机床系统中PLC控制端口的方法,克服 了上述现有技术中的缺点,有效控制端口的输出和输入端口的检测,处理 ...
【技术保护点】
一种数控机床系统中PLC控制端口的方法,其特征在于,它包括如下步骤: (1)PLC从定时器Timer中获得当前包括端口地址信息在内的端口信息; (2)通过PLC根据获得的端口信息由PLC指令对端口进行处理; (3)将获得的端口信息返还给驱动R0。
【技术特征摘要】
【专利技术属性】
技术研发人员:汤同奎,宋秀龙,
申请(专利权)人:上海奈凯电子科技有限公司,上海维宏电子科技有限公司,
类型:发明
国别省市:31[中国|上海]
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。