Пример #1
0
        public void SetShortFloatCommand(int commonAddress, CauseOfTransmission cot, int informationObjectAddress,
                                         IeShortFloat shortFloat, IeQualifierOfSetPointCommand qualifier)
        {
            var aSdu = new ASdu(TypeId.C_SE_NC_1, false, cot, false, false, originatorAddress, commonAddress,
                                new[]
            {
                new InformationObject(informationObjectAddress,
                                      new[] { new InformationElement[] { shortFloat, qualifier } })
            });

            Send(aSdu);
        }
Пример #2
0
        public void SetNormalizedValueCommand(int commonAddress, CauseOfTransmission cot, int informationObjectAddress,
                                              IeNormalizedValue normalizedValue, IeQualifierOfSetPointCommand qualifier)
        {
            var aSdu = new ASdu(TypeId.C_SE_NA_1, false, cot, false, false, originatorAddress, commonAddress,
                                new[]
            {
                new InformationObject(informationObjectAddress,
                                      new[] { new InformationElement[] { normalizedValue, qualifier } })
            });

            Send(aSdu);
        }
Пример #3
0
        public void SetScaledValueCommandWithTimeTag(int commonAddress, CauseOfTransmission cot,
                                                     int informationObjectAddress, IeScaledValue scaledValue, IeQualifierOfSetPointCommand qualifier,
                                                     IeTime56 timeTag)
        {
            var aSdu = new ASdu(TypeId.C_SE_TB_1, false, cot, false, false, originatorAddress, commonAddress,
                                new[]
            {
                new InformationObject(informationObjectAddress,
                                      new[] { new InformationElement[] { scaledValue, qualifier, timeTag } })
            });

            Send(aSdu);
        }