justshoot2125
Member
Hello, I'm new to the contrologix platform with only two years under my belt with it. Some of the instructions I noticed are no longer there (from slc days) and some to be honest don't have a clue of there purpose. Anyways on to my delema.
We have a device that we pull information from in a 256 word block, it uses modbus/tcp. We then run it through a converter to ethernet ip for AB. and connect it to a contrologix platform or compactglogix. The issue we have is imbedded in each word of the block is actually two pieces of data or sets, one high and one low. We use a BTD instruction to break out the information first doing the high group source bit 8 ((((BTD(word[10],8,newword[10],0,8))))) then the low word with source bit 0, ((((BTD(word[10],0,newword[11],0,8))))). This would go on for word 11 and newword 12 and 13, so on and so on depending on how much data we might need or using. Usually its from word 10 to word 172, and give newwords of 324.
Instead of writing each btd instruction I would like to just pull that info. out of the word block of 256 words and write it to the newword block of 512 words. Is there a easy way to achieve this or has someone done something similiar to this that could give some guidence.
We have a device that we pull information from in a 256 word block, it uses modbus/tcp. We then run it through a converter to ethernet ip for AB. and connect it to a contrologix platform or compactglogix. The issue we have is imbedded in each word of the block is actually two pieces of data or sets, one high and one low. We use a BTD instruction to break out the information first doing the high group source bit 8 ((((BTD(word[10],8,newword[10],0,8))))) then the low word with source bit 0, ((((BTD(word[10],0,newword[11],0,8))))). This would go on for word 11 and newword 12 and 13, so on and so on depending on how much data we might need or using. Usually its from word 10 to word 172, and give newwords of 324.
Instead of writing each btd instruction I would like to just pull that info. out of the word block of 256 words and write it to the newword block of 512 words. Is there a easy way to achieve this or has someone done something similiar to this that could give some guidence.