Ron Beaufort
Lifetime Supporting Member
one more note ... you said:
let me try to clear up that bit of confusion ... when the processor executes a BTR, it literally TRANSFERS a BLOCK consisting of several words of data from a device into the processor’s memory ... so in almost every case, the only thing that you need to do after the Block Transfers are correctly set up, is to make use of the data ... I’ve given you one rung as an example (for an air-conditioner test) in the program I attached above ...
in simplest terms, once you have ONE of your thermocouples working correctly, then all of the other seven should also work correctly ... all you should have to do is connect them to the module and the data will start to show up in the next seven consecutive memory locations ... specifically, you do NOT need a fresh set of Block Transfers for each individual thermocouple input ... you just need one set of Block Transfers for each “intelligent” I/O module ... one Block Transfer Write will execute (usually just once per power up) to “configure” the module with the proper scaling ranges, etc. ... from then on, one Block Transfer Read will be executed repeatedly to bring in the data (data from ALL of the channels) from the module and deposit it into the processor’s memory ...
I hope that this helps ...
I am not clear completely as how to use these (BTW and BTR commands) for more than one anlog input.
let me try to clear up that bit of confusion ... when the processor executes a BTR, it literally TRANSFERS a BLOCK consisting of several words of data from a device into the processor’s memory ... so in almost every case, the only thing that you need to do after the Block Transfers are correctly set up, is to make use of the data ... I’ve given you one rung as an example (for an air-conditioner test) in the program I attached above ...
in simplest terms, once you have ONE of your thermocouples working correctly, then all of the other seven should also work correctly ... all you should have to do is connect them to the module and the data will start to show up in the next seven consecutive memory locations ... specifically, you do NOT need a fresh set of Block Transfers for each individual thermocouple input ... you just need one set of Block Transfers for each “intelligent” I/O module ... one Block Transfer Write will execute (usually just once per power up) to “configure” the module with the proper scaling ranges, etc. ... from then on, one Block Transfer Read will be executed repeatedly to bring in the data (data from ALL of the channels) from the module and deposit it into the processor’s memory ...
I hope that this helps ...