Hi there,
I'm working inside a non-optimized global DB : my DB83 has components of the type "Array[0..15] of Bool"
I'm trying to copy the values of 6 MW from one place to another.
Value of MW302-MW307 copied to MW2302-MW2307 inside global DB83.
So I used MOVE_BLK_VARIANT with the following parameters :
- src: %DB83
- count: 6
- src_index: 302
- dest_index: 2302
The error code I get (16#8382) seems to be linked to the value of parameter SRC_INDEX being negative although I've put 302 as SRC_INDEX.
Am I missing something here please ?
Thanks for your inputs
MOVE_BLK_VARIANT error 16#8382
-
- Site Admin
- Posts: 1387
- Joined: Sat Aug 13, 2005 6:15 am
Re: MOVE_BLK_VARIANT error 16#8382
How depend db83 to mw302 or mw2302?
if you are try to work with tia, please try use f1 button
in common case you are need put into src and dest parameters the full path of address like p#db83.dbx0.0 bool 16 or mw302
in src/dest _index parameters if no array write 0, if array -number of elements will be copied
if you are try to work with tia, please try use f1 button
in common case you are need put into src and dest parameters the full path of address like p#db83.dbx0.0 bool 16 or mw302
in src/dest _index parameters if no array write 0, if array -number of elements will be copied
-
- Posts: 11
- Joined: Mon Oct 26, 2020 10:15 am
Re: MOVE_BLK_VARIANT error 16#8382
Thanks sania.
Actually, after looking in the MOVE_BLK_VARIANT, it turns out this function does not support "Arrays of Bool"
So I ended up using a combination of PEEK, POKE and POKE_BLK to reach my goal
Actually, after looking in the MOVE_BLK_VARIANT, it turns out this function does not support "Arrays of Bool"
So I ended up using a combination of PEEK, POKE and POKE_BLK to reach my goal