![]() ![]() I have used it many times for reporting, shift changes, whistles and a myriad of reasons. Using the controller’s time is just one of them, but a very useful one. Keep in mind there are many attributes to obtain by request to a controller via the GSV (Get System Value) instruction and there is an entire library of information on how to get almost any needed value that you would like to obtain. During that time, you can use the Timer.TT bit to turn on the output for the solenoid in the same rung or you can add an additional rung as shown below to accomplish this. If the controller’s time (in Minutes) is equal to “0”, then start a timer for 5 seconds. To Activate an Output for a Solenoid on the Hour, Every Hour for five secondsĬreate a new ladder rung with an EQU instruction and use the CurrentTime to see if the “Minute” of the controller time is equal to “0”. ![]() Right-Click on “CurrentTime” and Select Monitor to view the tag in the controller tag database Image by Brandon CooperĭINT = Hour (0-23) This value is GMT, no matter the controller time zone settingĭINT = Microseconds (0-999,999) Never had to use it, but I guess it is a possibility This short guide will take you through setting up this request and then using it to accomplish a task.Ĭreate a line of ladder and in the instruction palette under “Input/Output”, choose a “GSV” Instruction and set up the following:ĭest: CurrentTime (This is a tag you will create, DINT type with an array of 7) Image by Brandon Cooper The value of the controller’s clock is not readily available in the controller tag database, but rather you must make a request in the ladder program to access it.Īlong with many other attributes available from the controller, you can use a GSV (Get System Value) Instruction to access this attribute. Possibly you have a cleaning device that only needs to operate once an hour or once a day or maybe you want to operate a whistle at noon every day, the easiest way to accomplish this task would be to use the Controller’s time (which lives in the memory of the controller). If the need arises to use specific time in your ladder logic program, this guide will give you a reference to go by.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |