- This topic has 4 replies, 2 voices, and was last updated 5 years ago by PLC_Bros.
- January 24, 2018 at 6:57 am #1243PLC_BrosParticipantKarma: 45Rank: Padawan
can you write me (as a guide) a Program such that a flow volume (say PMS or Gas) from a Totalizer where it’s quantity can be seen on SCADA for the following intervals; for every one (1) Hour, Daily, and Monthly flow quantity for stock inventory?
I will appreciate you input please.January 24, 2018 at 9:13 am #1244PLCGuruKeymaster
So if I understand you’re looking for the logic to move data at said intervals? I assume you have totalizer program and SCADA system already in place, you’re just looking to trigger an event at these various times? What type of PLC are you using, is it a SLC or Logix based?January 24, 2018 at 11:35 am #1245PLC_BrosParticipantKarma: 45Rank: Padawan
I do not have the program, I want to understand how to generate such a code for the said intervals please, reference with Controllogix RSLogix5000. Or you could write sample program of it and send across to me please. I really need to know it.
Thanks in advanceJanuary 24, 2018 at 11:58 am #1246PLCGuruKeymaster
Ok. To trigger the events at certain times of day I would recommend using the GSV instruction to get the WallClock time of the CPU.
If local time is desired from the processor (either ControlLogix or CompactLogix), the Attribute Name for the GSV/SSV should be set to LocalDateTime.
Any version 16 or newer RSLogix 5000 applications that have a GSV/SSV using the attribute of DateTime will see this time differential as the DateTime attribute now reflects UTC time.
In RSLogix 5000 V16 on above, use the GSV instruction with the following parameters;
- Class Name: WALLCLOCKTIME
- Instance Name: blank
- Attribute Name: LocalDateTime.
- For the Dest insert the first element of a DINT array to get all the data correctly.
Once you have the DINT array populated with the time, the logic to trigger what you ask (i.e., certain time of day, every hour, etc.) should be straight forward.January 26, 2018 at 6:40 am #1256PLC_BrosParticipantKarma: 45Rank: Padawan
The Guru, Could you please send me a sample program of this with a few rungs, It will help me better please.
- You must be logged in to reply to this topic.