GE Fanuc PACSystem

lendyck

Member
Join Date
Feb 2006
Location
Cambridge, Ontario
Posts
59
A question to those unfortunate souls that have had to work with GE Fanuc PLCs...

I'm using an RX3i. How can I get the time from the PLC? I found the data type TIME_OF_DAY in the Toolchest, but unfortunately, it doesn't take the liberty to fill in the reference addresses for me when I drag it to my variables, so all I have are 0's!

Many thanks.

Len
 
Gee, what a smart strategy to get help. Insult the people most likely to help you.

You will need to execute a SVC_REQ instruction with a function code of 7. That will read the system clock/calendar and return date and time data in the registers of your choice.
 
If you found TIME_OF_DAY how did you miss this? It is in the onliine help.
A TIME_OF_DAY variable is a predefined structure representing an instant in time, from hours down to the millisecond. Some script commands use TIME_OF_DAY variables to perform special functions. Also, several special display formats are available when displaying a time variable.
Variable elements
The following is a list of elements in Time variables. The data type of the element is enclosed in brackets following the variable element name. You refer to a variable's elements with the dot (.) operator, as in MyTIME_OF_DAY.HR
.HR ( DINT)
The hour, using a 24-hour clock. Values from 0 (midnight) through 11 indicate a.m. hours. Values from 12 (noon) through 23 indicate p.m. hours. For example, if the time is 2 p.m., then .HR would be 14.
.MIN ( DINT)
The minute, ranging from 0 through 59.
.SEC ( DINT)
The second, ranging from 0 through 59.
.MS ( DINT)
The millisecond, ranging from 0 through 999.
Once you get the Service Request working, check this out.
 
Okay, I now know all about the data type TIME_OF_DAY, but that tidbit of info doesn't say a thing about a service request. Creating an instance of TIME_OF_DAY doesn't exactly do anything unless you populate the variables with something useful...like, the time of day!!

So yes, I missed it, and I even spent at least a half hour looking for it.
 
Russ,

Lendyck has a valid point. You and I already know how to read the PLC's internal clock/calendar using the SVC_REQ instruction. I challenge you to figure out how to read it using Machine Edition help but without using the keyword "SVC_REQ". Try any of the words a new user would be likely to use like "Time", "Clock", "Hour" etc.

With VersaPro help you start typing the word "Time" and you easily find your way to the SVC_REQ function. To me it's inexcusable that Machine Edition help is less helpful than that of its predecessors.
 
Steve,

Thank you. In the end though, I feel dumb anyway, because I noticed in the project someone had already created a custom routine to read/set the date and time!! Doh!

My first comment about "unfortunate souls" was never meant to offend anyone. To those that like GE Fanuc PLCs, that's great! I personally get tired of waiting 5 minutes for each online edit to download (I guess this wouldn't be such a problem if I didn't make so many mistakes), and I am very disappointed that Fanuc claims they are IEC 1131-1 compliant...when they most certainly are not. Their structured text leaves a lot to be desired! Saying all this, I've seen worse!!
 
I agree that one of the hardest things for me to learn was the proper search strings to get what I want out of the help system, in fact I still have problems with this and make it known to GE Fanuc at every opportunity. It is not bad though once you kind figure out how those software programmers "think". Actually it frightens me to think that I may be thinking like them!?!?
The context sesitive help that pops up with the "F1" key is the most useful tool right behind the "Companion" window. If a new user takes the time to learn how to use these two tools along with the "Toolchest" they can learn the software in record time. Of course they also must constantly remember that it "IS NOT AB"!
 
Steve Bailey said:
...Try any of the words...

I often come here to have exactly such hint. In this world, not everybody is good in English.

Almost makes me regret the Serie Six!
 

Similar Topics

I have a CNC cutting equipment, all the components are Fanuc from the CNC CPU A02B-0307-B822, a PLC AIF01A and a panel i, on the panel i (operator...
Replies
1
Views
106
I want to buy this program if anyone has it. Absolutely no one has it officially for sale. My cpu is IC610CPU104B My mail...
Replies
2
Views
109
I've got a Micrologix 1100 with ethernet and I'm trying to configure communications to a Fanuc R30iB controller. I'm pretty sure you have to set...
Replies
0
Views
100
We recently purchased a IC693CPU352 module and it appears the internal time clock is static. I can set the time and date but once set it does not...
Replies
5
Views
168
I have one GE Fanuc IC200PNS002-AC Versamax Network Interface Module and the fault red light is blinking and i have checked in manual it is...
Replies
9
Views
212
Back
Top Bottom