scottmurphy
Member
- Join Date
- Oct 2004
- Posts
- 363
Hello,
I was ticking along at improving some data reading from a SLC to CLX earlier today, and could not get it to work as I wanted 1st time...
Originally I had 2 separate MSG instructions reading from 2 different areas in the SLC, but after trawling through the RS5K examples, decided to use the one 'messaging to multiple controllers' example.
There are also 2 1769-L32's on site, so I started with these first, and had no problems, when I tried to do the same to the SLC, I had to think a bit more.
The problem was, in the original MSG instruction, I simply entered the data table address that I wanted to read from "B10:5" for example.
With the multiple controllers example, you now enter the data table address, or .RemoteElement as it is known, in a different format. So B3:10 became $1$85$05$00, & F12:0 became $p$8A$00$00
What I would like to know, is how does one work out what the .RemoteElement format of a given memory area is, or is there an easier way, possibly in a manual somewhere that I dont have?
I sort of cheated, and looked up the .RemoteElement from the original MSG instruction.
I was ticking along at improving some data reading from a SLC to CLX earlier today, and could not get it to work as I wanted 1st time...
Originally I had 2 separate MSG instructions reading from 2 different areas in the SLC, but after trawling through the RS5K examples, decided to use the one 'messaging to multiple controllers' example.
There are also 2 1769-L32's on site, so I started with these first, and had no problems, when I tried to do the same to the SLC, I had to think a bit more.
The problem was, in the original MSG instruction, I simply entered the data table address that I wanted to read from "B10:5" for example.
With the multiple controllers example, you now enter the data table address, or .RemoteElement as it is known, in a different format. So B3:10 became $1$85$05$00, & F12:0 became $p$8A$00$00
What I would like to know, is how does one work out what the .RemoteElement format of a given memory area is, or is there an easier way, possibly in a manual somewhere that I dont have?
I sort of cheated, and looked up the .RemoteElement from the original MSG instruction.