Hi guys. Help me write logic in BG Logic to run the program using PNS.
Please, I really need it.
Robot: Fanuc LR-10iA10 series 9.40
Hi guys. Help me write logic in BG Logic to run the program using PNS.
Please, I really need it.
Robot: Fanuc LR-10iA10 series 9.40
Please try to describe in more detail what you want to program.
BG Logic : Program runs cyclic and "always".
you can jump over parts of the program with
IF and FLG[X]
PNSxxxx : Program that is started by/from PLC
don't use PNS in a BG-logic.
You use the BG Logic as Auxilary Task. You will have inside all you need check always or copy/transfer I/O with PLC.
The PNS is Launched by PLC sequencielly as MAIN program but you can loop inside with LBL (as explained before) or not.
Good afternoon.
The fact is that I need to write 2 words in Bg Logic: as I understand it, in one the command is in the other the program code.
For example, GI1 has from 1 to 8 bits;
GI2 is from 9 to 16 bits.
Here are my sketches If GI1 ≠R1
IF GI1=
.
.
R1=GI1
ENDIF
IF (0x02) THEN
F[PNS]=OFF
But I can't sort it all out and write a program.
Help me friends!
By PNS, I mean that it includes the FLAG
The command is written in GI1;
The program code is in GI2.
Please, explain what you are trying to accomplish.
PNS is a method used for starting a robot program with signals from an external device (usually a PLC). To have this work, certain settings in your robot needs to be done (check manuals). Also, the program names must be named with the prefix "PNSxxxx", for example "PNS0001_Main" where the 4-digit number (0001-9999) correlates with the associated PNS-group input.
BG Logic is a program that is constantly running in the background as soon as the robot power on. It is not affected by alarms or E-stops.
Address 1
The general task is to send commands through the OPC server through these commands (0x01..)
Start 0x01
Stop 0x02
All stop 0x03
Reset 0x04
Address 2
And for the same type of work, the program code.
Please, explain what you are trying to accomplish.
PNS is a method used for starting a robot program with signals from an external device (usually a PLC). To have this work, certain settings in your robot needs to be done (check manuals). Also, the program names must be named with the prefix "PNSxxxx", for example "PNS0001_Main" where the 4-digit number (0001-9999) correlates with the associated PNS-group input.
BG Logic is a program that is constantly running in the background as soon as the robot power on. It is not affected by alarms or E-stops.
The robot is directly connected to a PC
I've made all the settings.
The simulation of enabling DI via Flag is successful.
I can't write a program in BG Logic to control the robot via Owen OPC Server
I see it this way:
Start (0x01) - Prod-start
Stop (0x02) - SFSPD=OFF
All stop (0x03) - IMSTP=OFF
Reset (0x04) - Fault reset
If you are able to read/write Flags trough your setup, then you would only need to map the UOP signals to Flags.
To do this, use RACK 34, SLOT 1 in the config for the UOP signals.
No need for BG Logic.
If you are able to read/write Flags trough your setup, then you would only need to map the UOP signals to Flags.
To do this, use RACK 34, SLOT 1 in the config for the UOP signals.
No need for BG Logic.
My task is to write 2 words in BG Logic, as I understand it, in one the command, in the other the program code...
Please write at least an approximate code of the program, enabling and disabling the necessary signals, in the order that I wrote above
FANUC Robots doesn't use the data type WORD in TP programs (which is the only kind of program that's able to run as BG Logic).
You can for sure write the binary equivalent by using 16 boolean variables (Flag, Digital I/O, numerical Registers), but why?
FANUC Robots doesn't use the data type WORD in TP programs (which is the only kind of program that's able to run as BG Logic).
You can for sure write the binary equivalent by using 16 boolean variables (Flag, Digital I/O, numerical Registers), but why?
I see you already understand what I mean ...)
That's the task set by the head, you need to do it and without your help I feel that I can't.
Ok,
So the syntax would be either of the following:
Basically you're using "mixed logic" instructions to assign the value ON or OFF to the F-flag. This value can be constant (ON or OFF) or it can be the logical output of an expression (F[1] AND F[2]).
I think I'm starting to understand. I'll try to translate this into my own Flags...