老外编的程序,里面一个用户定义变量,能解释一下SYG_B6[*] SYG_R6[*] 的意思吗?
或者具体在那里面能查到 手册? PLC程序,还是没其他办法只有问设备厂家。
DEFINE START_THERM_COMP_ST4 AS SYG_B6[0]
DEFINE THERM_COMP_XX1_ENDE AS SYG_B6[1]
DEFINE THERM_COMP_XX2_ENDE AS SYG_B6[2]
DEFINE THERM_COMP_XX_OK AS SYG_B6[3]
DEFINE THERM_COMP_XX1 AS SYG_R6[0]
DEFINE THERM_COMP_XX2 AS SYG_R6[1]
DEFINE THERM_COMP_SW_CAM_2 AS $A_OUT[1]
DEFINE THERM_COMP_FEHLER_XX1 AS $A_OUT[2]
DEFINE THERM_COMP_FEHLER_XX2 AS $A_OUT[3]
DEFINE WAITM_OK_K1 AS ($A_DLB[0] B_AND 'B00000001')/1
DEFINE WAITM_OK_K2 AS ($A_DLB[0] B_AND 'B00000010')/2
DEFINE WAITM_OK_K3 AS ($A_DLB[0] B_AND 'B00000100')/4
DEFINE WAITM_OK_K4 AS ($A_DLB[0] B_AND 'B00001000')/8
DEFINE WAITM_OK_K5 AS ($A_DLB[0] B_AND 'B00010000')/16
DEFINE WAITM_OK_K6 AS ($A_DLB[0] B_AND 'B00100000')/32
M30
望不吝赐教,TKS
最佳答案
这个是通过nc参数化创建的全局用户变量,数据类型为BOOL量,通过通用参数md18662创建,md18662下标5就是对应 SYG_B6[0]的参数定义数量,设置之后会在GUD7变量中生成。
具体内容可以参考840d sl参数手册,希望对你有帮助.
提问者对于答案的评价:
求各位大佬解释一下是什么意思
DEFINE JOG AS $A_DBB[20]B_AND ''B00000001''
DEFINE MDA AS $A_DBB[20]B_AND ''B00000010''
DEFINE AUTOMATIK AS $A_DBB[20]B_AND ''B00000100''
DEFINE ROBOTER_AKTIV AS $A_DBB[20]B_AND ''B00001000''
DEFINE HNTE AS $A_DBB[20]B_AND ''B00100000''
DEFINE ZWEIHAND AS $A_DBB[20]B_AND ''B01000000''
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc297313.html