MOVE_BLK_VARIANT error 16#8382

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
socrames
Posts: 11
Joined: Mon Oct 26, 2020 10:15 am

MOVE_BLK_VARIANT error 16#8382

Post by socrames » Tue Feb 09, 2021 9:24 am

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

Image

sania
Site Admin
Posts: 1371
Joined: Sat Aug 13, 2005 6:15 am

Re: MOVE_BLK_VARIANT error 16#8382

Post by sania » Wed Feb 10, 2021 7:40 am

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

socrames
Posts: 11
Joined: Mon Oct 26, 2020 10:15 am

Re: MOVE_BLK_VARIANT error 16#8382

Post by socrames » Wed Feb 10, 2021 8:47 am

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