Hello, i have a issue with logic in VKRC
I need to use IF and THEN , but as you know, in VKRC they are not available , how to bypass it ? ( I need to do simple Macros and in our company we want to have it standardized between most of the robot types) ?
Syntax from Fanuc macro that i need to implement in VKRC 4 :
1: DO[314:Wait for TSLock]=ON ;
2: WAIT (DI[315:TScan Lock]=ON AND DI[320:Lock 6D Valid]=ON OR DI[313:Live Bit]=OFF OR DI[321:Lock TimeOut]=ON OR DI[323:AS Run]=OFF) ;
3: IF (DI[315:TScan Lock]=ON AND DI[320:Lock 6D Valid]=ON) THEN ;
4: DO[318:Trigger Start]=ON ;
5: WAIT (DI[319:Trigger Started]=ON OR DI[321:Lock TimeOut]=ON OR DI[313:Live Bit]=OFF OR DI[323:AS Run]=OFF) ;
6: ENDIF ;
7: DO[314:Wait for TSLock]=OFF ;
---
Thanks for answer