Hello
I want to send the error code of the event message occured to PLC, Im talking about ERRORID, is it possible? what variables should i use? because ERRNOtype ERRNUM couldnt help, im looking for event errors.
Thank you.
Hello
I want to send the error code of the event message occured to PLC, Im talking about ERRORID, is it possible? what variables should i use? because ERRNOtype ERRNUM couldnt help, im looking for event errors.
Thank you.
PROC rGrip_Clamp()
VAR bool bTimeover;
! Gripper Clamp Operation
Begin:
WaitTime 0.5;
Set Do01_Grip_Clamp;
Reset Do02_Grip_Unclamp;
WaitUntil Di01_Grip_Clamp = 1 AND Di02_Grip_Open = 0\MaxTime:=5\TimeFlag:=bTimeover;
IF bTimeover = TRUE THEN
TPErase;
ErrWrite " PROC rGrip_Clamp ","Clamp Operation has Failed !"\RL2:=" Check Di01 and Di02 Sensor";
SetGo Go01_Error_Code, 1;
PulseDO\PLenght 2.0, Co44_Rob_Error;
Stop;
GOTO Begin;
Else
Gripload ldWork;
WaitTime 1.0;
Return;
EndIF
Return;
EndPROC
This sub-routine for Gripper Clamp operation.
Do signal assign DSQC652 I/O Card (Sol-valve and PX Sensor)
Co Signal assign DSQC378 CC-Link Card
that group output signal mix 1,2,4,8,18 bit.
ie... 1 is clamp error, 2 is unclamp error..
Co44 signal and bit(group) status mix and PLC programmer will be display error on GOT window. for each error kinds of number.