Service Request 7

rodrigfluis

Member
Join Date
Sep 2019
Location
Illinois
Posts
4
Hello, All,


I am very new to the PLC programming world. The company I work for uses GE Versamax Micro Plus Controllers and Proficy Machine Edition. My current project requires that I develop a program that will turn a heater on at 4:00 AM and turn it off at 2:00 PM.


It seems that Service Request 7 may be what I need; however, I am struggling with understanding how time and date information are accessed and used with the Service Request 7 Function. Would anyone be willing to shed some light on this topic?


I appreciate any input!
 
Welcome to forum.


You need first to only hours and PM / AM bit.

Then you can compare if hour is 4 or 2 set /reset if compare is true.


Look from manual page. 558 https://www.astor.com.pl › wsparcie › dokumentacja-techniczna › pobierz
There is SVCREQ 7 block.


Hours are MSB or LSB byte defending of format and are code to 0..23 format.
(LSB is easier to read, if you use integers, you can divide with 100 BDC format)
For MSB byte you need more math or Shifting commands for variable
 
Last edited:
The upper left node of the function block is the enabling logic. When it evaluates true the function is executed.

At the "FNC" node, enter the number 7.

At the "PRM" node enter the staring address of a block of six %R registers.

Before executing the function you must enter a value of zero into the first of those six %R registers. That sets up the function to read the PLC's time. You can also use SVC_REQ function code 7 to change the time, but that's not what you asked for. In the second of the six registers you enter a code to define how you want the time and date data to be formatted. Simplest is to use a value of 1, which calls for the data to be formatted as BCD with a two-digit year.

After executing the function the lower eight bits of the third %R register will contain the two-digit year in BCD format. The upper eight bits of the same word will contain the month.
The lower eight bits of the fourth %R register will contain the day of the month. The upper eight bits of the same word will contain the hour (0-23).

The lower eight bits of the fifth %R register will contain the minute. The upper eight bits of the same word will contain the second.

The lower eight bits of the sixth %R register will contain the day of the week (Sunday = 0). The upper eight bits of the same word will be blank.
 
The upper left node of the function block is the enabling logic. When it evaluates true the function is executed.

At the "FNC" node, enter the number 7.

At the "PRM" node enter the staring address of a block of six %R registers.

Before executing the function you must enter a value of zero into the first of those six %R registers. That sets up the function to read the PLC's time. You can also use SVC_REQ function code 7 to change the time, but that's not what you asked for. In the second of the six registers you enter a code to define how you want the time and date data to be formatted. Simplest is to use a value of 1, which calls for the data to be formatted as BCD with a two-digit year.

After executing the function the lower eight bits of the third %R register will contain the two-digit year in BCD format. The upper eight bits of the same word will contain the month.
The lower eight bits of the fourth %R register will contain the day of the month. The upper eight bits of the same word will contain the hour (0-23).

The lower eight bits of the fifth %R register will contain the minute. The upper eight bits of the same word will contain the second.

The lower eight bits of the sixth %R register will contain the day of the week (Sunday = 0). The upper eight bits of the same word will be blank.




This is exactly what I was looking for! Extremely thorough, and a lot more novice friendly than GE's User Manual.


Thank you all for the help!
 
Here is One example of what it looks like. Couple times a year have to sync the clock but other than that it works well for what it is needed..
 

Similar Topics

Hello everyone! I am trying to properly program a service request 14 (clear PLC and I/O fault tables) on a GE Fanuc 374 CPU. I am using Proficy...
Replies
4
Views
2,002
Good day and Merry Christmas Eve. The title's error has been dogging me for roughly a month and today I finally figured out what the issue was...
Replies
0
Views
2,274
Hi guys, I currently setting up a new engineering company, preparing some standard format for billing/reports. Does anyone kind enough to show me...
Replies
0
Views
25,734
One of our 90-30 364CPUs was locked up with Service Request busy on our last maintenance day. I had an opportunity to try some things, none of...
Replies
2
Views
4,714
What has been your experience with year over year price increases on your Tech-connect service contracts? Is it up to the distributor? 30% seems...
Replies
5
Views
280
Back
Top Bottom