March 21, 2019, 12:01:40 AM
Robotforum | Industrial Robots Community

 Fanuc makro in VKRC4

Author Topic:  Fanuc makro in VKRC4  (Read 1155 times)

0 Members and 1 Guest are viewing this topic.

June 27, 2018, 07:57:53 AM
Read 1155 times
Offline

T-Bjorn


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

Today at 12:01:40 AM
Reply #1

Advertisement

Guest

June 27, 2018, 09:26:54 AM
Reply #1
Online

fluke


 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 ;


Hello this is only example and is not correct logic. You can write as you wish. KUKA have a lot of logic command just like IF, While, Until, Switch Case etc. but some logic commands is not seen on HMI. You must be read "Expert Programming Manual"

$OUT[314]=TRUE
WAIT FOR ($IN[315] OR $IN[320] OR $IN[313])
IF ($IN[315] AND $IN[320]) THEN
$OUT[318]=TRUE
ENDIF





July 06, 2018, 10:01:31 PM
Reply #2
Offline

massula

Global Moderator
Well, if You can write the code in regular KRL and put it inside VW_USER, You can follow the example done by fluke.

But If You need this same logic written in VKRL, things could be trickier.

But I think it is possible, using a logic like this one:

Code: [Select]
1: A314 = EIN
2: WARTE BIS (E315 & E320) + !E313 + E321 + !E323
3: F951 = E315 & E320
4: GOTO Label 1 = !F951
5: A318 = EIN
6: WARTE BIS E319 + E321 + !E313 + !E323
7: Label 1
8: A314 = AUS
« Last Edit: July 06, 2018, 10:14:45 PM by massula »


Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

xx
Is possible write a process parameter from a folge/up/makro?

Started by massula on SEF & VW Robot Forum

2 Replies
3067 Views
Last post December 22, 2016, 08:05:54 PM
by massula
xx
WoV and vkrc4

Started by ElAntonioCheNumeroUno on KUKA Robot Forum

4 Replies
3380 Views
Last post February 15, 2015, 02:16:07 AM
by massula
xx
Trace VKRC4

Started by massula on KUKA Robot Forum

1 Replies
1866 Views
Last post August 14, 2015, 04:07:27 PM
by SkyeFire
xx
XML communication with VKRC4.

Started by markopo on KUKA Robot Forum

1 Replies
1312 Views
Last post March 06, 2015, 02:55:59 PM
by irobot