News:

  • September 23, 2026, 09:35:17 AM

Login with username, password and session length

Author Topic: The parameter is incorrect.  (Read 19547 times)

RBPLC

  • Hero Member
  • *****
  • Posts: 586
The parameter is incorrect.
« on: February 21, 2022, 07:56:51 PM »
I am getting the attached message when I delete rungs.

Edit:
And when I paste and when I Accept.
« Last Edit: February 21, 2022, 07:59:32 PM by RBPLC »

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: The parameter is incorrect.
« Reply #1 on: February 21, 2022, 08:03:29 PM »
That is a Microsoft library error - not good.

Make sure you have backups (autosave only saves the last 4 saved copies).  Not sure what is going on.

Definitely close Designer then re-open the project.

If you can duplicate it, if we had a copy of your project that would help us to possibly figure out the issue with the steps it took to duplicate it.

Email it to support at hosteng.com

RBPLC

  • Hero Member
  • *****
  • Posts: 586
Re: The parameter is incorrect.
« Reply #2 on: February 21, 2022, 08:31:37 PM »
In the same project I am also running into the following after upgrading the controller to OS 2.9.1 and Booter 1.1.0:

This project is in progress and hasn't been deployed yet. After upgrading the controller, I can open the project and when attempting to connect I get the attached error about unable to decode the MOVE instruction. The project and controller are not the same. The project opened from disk appears to be correct. The controller has the basic hardware configuration but no Programs, Tasks etc. I continue to open the DISK project. At that point I can write the project to the PLC and save. Everything appears to be working correctly. I close the project, re-open it and the same thing happens over again. Inconsistencies between project and PLC with PLC showing no Programs, Task etc.

Edit:
Same thing occurs if I don't close the project but simply disconnect from the PLC and try to reconnect. I get the same unable to decode MOVE instruction message. 
« Last Edit: February 21, 2022, 08:35:32 PM by RBPLC »

RBPLC

  • Hero Member
  • *****
  • Posts: 586
Re: The parameter is incorrect.
« Reply #3 on: February 21, 2022, 08:41:06 PM »
That is a Microsoft library error - not good.

Make sure you have backups (autosave only saves the last 4 saved copies).  Not sure what is going on.

Definitely close Designer then re-open the project.

If you can duplicate it, if we had a copy of your project that would help us to possibly figure out the issue with the steps it took to duplicate it.

Email it to support at hosteng.com

I've emailed the project file.

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: The parameter is incorrect.
« Reply #4 on: February 22, 2022, 09:52:19 AM »
We got your project. I edited, Accepted, deleted rungs, added rungs, copy/pasted, etc., all without duplicating any of your symptoms. So, I gave it to franji1, and he's going to take a closer look at it using debug code. Thanks for your help.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

RBPLC

  • Hero Member
  • *****
  • Posts: 586
Re: The parameter is incorrect.
« Reply #5 on: February 22, 2022, 12:07:08 PM »
Did you see the unable to decode move message?

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: The parameter is incorrect.
« Reply #6 on: February 22, 2022, 03:13:25 PM »
I hate when my parameter is incorrect.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: The parameter is incorrect.
« Reply #7 on: February 22, 2022, 03:15:59 PM »
Did you see the unable to decode move message?
I just found "something" in the decode (PLC Opcode -> Designer Instruction/Parameters).  Will let you know...

Brian123

  • Jr. Member
  • **
  • Posts: 10
Re: The parameter is incorrect.
« Reply #8 on: February 22, 2022, 04:02:58 PM »
I just hit this same error a few seconds ago.  I was attempting to go online with a BRX processor, using a project file on my computer (launched by picking the project file in the file browser.)

I canceled the program load and exited 2.9.  2.8 opened the file and connected without issues.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: The parameter is incorrect.
« Reply #9 on: February 22, 2022, 05:06:18 PM »
We have it down to a very simple program. Easily duped. Probably a decode bug introduced when that code was touched for sub structs. Should be an easy fix.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: The parameter is incorrect.
« Reply #10 on: February 22, 2022, 05:52:17 PM »
Any struct array reference to a field that is the :W1, :B1, :B2, or :B3 of a DWORD will decode incorrectly. So SDT[V0].Year (which is :W1) will fail. Yuk. Yuk, yuk, yuk. Don't know how this snuck through, but we'll get a new build out ASAP.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

RBPLC

  • Hero Member
  • *****
  • Posts: 586
Re: The parameter is incorrect.
« Reply #11 on: March 02, 2022, 09:59:20 AM »
How's this going? Initially I was very concerned as I thought this tanked my controller but after seeing it's currently more of an annoyance, I don't have to fix it right now. I upgraded another controller to 2.9 and saw the similar unable to decode the MOVE popup. 

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: The parameter is incorrect.
« Reply #12 on: March 02, 2022, 10:03:01 AM »
We have a Designer 2.9.2 Release Candidate being banged on.  Production should be very soon.

Be careful because the instruction parameters WILL CHANGE, sometimes as an error, sometimes not (i.e. if there IS a corresponding W0 or B0 field, it WON'T report the error, but just show up as a "difference between disk and PLC".  Make sure you utilize the DISK copy (it still has the correct W1/B1/B2 offset field)

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: The parameter is incorrect.
« Reply #13 on: March 02, 2022, 10:06:57 AM »
How's this going? Initially I was very concerned as I thought this tanked my controller but after seeing it's currently more of an annoyance, I don't have to fix it right now. I upgraded another controller to 2.9 and saw the similar unable to decode the MOVE popup.

It's fixed. We'll be releasing 2.9.2 very soon.

The specific problem is it's incorrectly decoding array references to structures with BYTE or WORD members not at the start of a DWORD. In cast terms, struct members that are :W1, :B1, :B2, or :B3. So for example, SDT[V0].Year fails to decode when the program is read up. This was a small hole in the decode function that got refactored when adding nested structures.

We've found a few of things like that, but all we know about are fixed.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

RBPLC

  • Hero Member
  • *****
  • Posts: 586
Re: The parameter is incorrect.
« Reply #14 on: March 10, 2022, 09:19:26 AM »
Thanks for getting this fixed. Logged on to the problem PLC this morning after the update with no error messages. Also thanks for putting the Add button back in under the Modbus Scanner tool.