...
This operator always return a tuple with a BitVector. (TODO: describe MEP-Functions: toLong, [], and subset, BitSet is interpreted from left to right)
Code Block | ||
---|---|---|
| ||
#PARSER PQL #RUNQUERY modbussource := RETRIEVE({ transport = 'modbustcp', source = 'modbussource', datahandler = 'tuple', protocol = 'none', schema = [['value', 'BitVector']], options = [ ['slave','localhost'], ['port','502'], ['ref','0'], ['count','4'], ['scheduler.delay','1000'] ] } ) #PARSER PQL #RUNQUERY out1 = MAP({ expressions = [ 'toLong(value)', 'toLong(subset(value,0,1))', 'value [0]', 'value [1]', 'value [2]', 'value [3]', 'value [4]', 'value [5]', 'value [6]', 'value [7]' ] }, modbussource ) |