sdg.marinusvz
2014-04-09 14:01
In general PNPSCADA adapts to whatever you gave the SmarToo to do through setting it up for a specific scenario, for instance, measuring analogs and logging it, or logging pulses and feeding that to pulse meters, or reading Elster IrDA meters directly, or switching contactors on and off via digital outputs. Additionally, you can talk over the modem to a meter or device you connected to it via the serial port.
The IrDA meter that is connected to the SmarToo maps onto the SmarToo datalogger RTU device in PNPSCADA itself (there can be only one). That is why it is a meter. If you're not doing this, physically, be sure to disable the checkboxes in the datalogger's Advanced Meter Settings.
If you are reading Pulse Meters via the SmarToo, add the Pulse meters and connect them to the correct pulse output from the SmarToo datalogger RTU entity in PNPSCADA.
If you are switching any digital outputs on the SmarToo, add Contactor entities on the relevant ditigal output exported interfaces from the SmarToo datalogger RTU entity in PNPSCADA.
If you are reading e.g. Analog values like temperature, it maps into the Instrumentation Profile on the SmarToo datalogger RTU entity itself. There should be only one record like that.
All datalogging commands (!98); must be on a minute per hour, or some such regimented timer. Not the general timers, since they are not 'on-the-hour', and therefore not exact enough for metering purposes, e.g. not on end-of-month.
Every data logged command is distinct, and must have the date and time (
sdg.marinusvz
2014-04-09 14:07
So, basically, in this case, the SmarToo was outfitted with 3 expansion modules, each of which is measuring 8 pulse inputs.
The basic problem was that the logging string was too big to all fit into one command string. So we ended up with using macros:
We ended up with a setup as follows:
Set up event one to run every 30 minutes, based on midnight:
!78 1 30
Set up event one to run 3 macros, namely macro 8, 9 and 10:
!79 1 !46 8 !46 9 !46 10
Set up the three macros to log the 8 pulse values from expansion 1, 2 and 3:
!45 8 !98 "L1,
sdg.marinusvz
2014-04-09 14:11
So, to come back to the original point, there are some basic requirements that must be adhered to when programming the SmarToo for PNPSCADA, and most of them are simply logical if you think about it. For instance,