Hi everyone,
Is it possible to send to the PLC in which line of the code the cursor is?
Thanks!
Hi everyone,
Is it possible to send to the PLC in which line of the code the cursor is?
Thanks!
$SHELL_WRK.$curr_line
Thanks a lot,
But I am new with fanuc and I would not know how to send this System Variable. I would need to be sending this INT continuously to the PLC. How could I do it? With a GO, with a register? I could only program it with the TP, but not with the Robotguide.
Thanks again.
$SHELL_WRK.$curr_line
Yes, you would probably either set the value of a GO equal to the value of the system variable, or to a Register and retrieve it as a message. I am not sure how that method works, but i know it IS possible to communicate from PLC to Register, and i assume the other way. There is some information in the Handling Tool or Ethernet IP manuals.
GO would be easier.
EXPLICIT MESSAGING with EthernetIP is the easiest way we have found to communicated Register values directly to and from a PLC.
Thanks to everybody.
Sending this system variable to a GO is enough. But now I have a new problem: when I tested this variable directly in its System Variables menu screen, it was working; however nowdays the variable is not getting the right value, it is not updating. When no program is runnig $Shell_wrk.$curr_line=1 and when the program is running the variable takes a constant value. In some robots it takes =8, in others =12, etc, but it is kepping the same value during the whole program.
I dont know if I have to set some configurations to get to update this kind of variable.
Thank you in advance!