[r527]: / branches / h-hermsen / mqttsparkplugb / SparkplugB / Function Blocks / FB_SparkplugBSimple / FB_SparkplugBSimple / SeqNums / GetBDSeqNum / svnobj  Maximize  Restore  History

Download this file

7 lines (6 with data), 1.8 kB

1
2
3
4
5
6
(*
// The first number should be 0
GetBDSeqNum := _NextBdSeq;
_NextBdSeq := (_NextBdSeq + 1) MOD 256;
                msgFmtStr := 'SparkplugBSimple GetBDSeqNum: %s',    
                strArg := TO_STRING(GetBDSeqNum) );