A DB in array format

orense

Member
Join Date
Apr 2006
Location
Norway
Posts
196
Hello,

I have a Siemens plc, where I have a DB which is a big array in Byte format.
This DB is written to from an external device, and I would like to petch some of those values and place them in another DB. For instance, if byte 32, 33, 34 and 35 is written to, then I would like to move those into a an output field on a touch panel. The value coming in is a hex value, but I would like to have a output on the panel in ascii.

It is a bit circumstantial, so first I would like to manipulate the values in the array in order to have control of the different bytes in the array before I convert them to ascii.

Can anybody help me with this? The first thing that hits me is that I have to use pointers, but I'm not sure...

Ideas anybody?

Thanks!
 
If the addresses you want to access are always the same then you don't need to use a pointer to read out the values to an interim memory area.
OPN DB <Source DB>
L DBB 33
T MB 1
L DBB 32
T MB 0
etc.
 

Similar Topics

Hi, I'm having an issue in crimson 3.0 when I create a programme using a case statement referencing a fault word that each bit needs to change the...
Replies
4
Views
194
I am trying to copy an array of real numbers into a UDT with a real data type element. I have attached a snip below showing my COP instruction...
Replies
4
Views
203
I have an array of 55 REAL values. Is there a way to multiply based on the array location ? I have 55 transfer belts that are equally spaced...
Replies
3
Views
153
Hello everyone, I'm working on a project that involves controlling an array of nozzles within a CNC environment, where the nozzles travel along a...
Replies
5
Views
178
Hi. I'm using a Modbus ProSoft where I basically map data to a big INT array. Example, where GX_I_63HPU is a REAL, MNETC.DATA.WriteData[200] an...
Replies
21
Views
428
Back
Top Bottom