Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
80822members
346893posts

NE_INT on array value

pgscada
Crewman
Crewman
0 Likes
8
1640

NE_INT on array value

I am trying to set an error flag based on the GEST parameter of READ_VAR.

The array PT1_RX1_ST is the input GEST on a READ_VAR block.

The index 1 of the array points the report (0 = no error)

The index 3 of the array points to the length of the response (expecting length = 4)

 

Untitled.png

 

If I unplug the cable to the remote device, we see the first NE_INT fails (7 != 0, but the output is false)

The second NE_INT block seems to work properly. How can I fix this ?? (I'm new to Schneider PLC)

I'm using M340, the remote device is a M221

Thanks!

Untitled.png

 

 

 

 

 

 

 

I also tried to give the GEST a direct memory address %MW200 and read values %MW201 and %MW203.

%MW201 is always 0, %MW203 seems to update properly

Untitled.pngUntitled.png

Tags (1)
8 Replies 8
DavidBaker
Crewman Crewman
Crewman
0 Likes
6
1556

Re: NE_INT on array value

Did you ever resolve this?

Tags (1)
pgscada
Crewman
Crewman
0 Likes
5
1554

Re: NE_INT on array value

@DavidBaker @Nope not resolved, so far no help on the forums....

Tags (1)
DavidBaker
Crewman Crewman
Crewman
0 Likes
4
1550

Re: NE_INT on array value

Odd.  The logic works on my PLC.  What version of Unity?

Tags (1)
pgscada
Crewman
Crewman
0 Likes
3
1546

Re: NE_INT on array value

@DavidBaker Ecostruxure Control Expert V14.1 - 191122A

 

Would you mind sharing your working program?

Tags (1)
DavidBaker
Crewman Crewman
Crewman
0 Likes
2
1538

Re: NE_INT on array value

Mine is for M580.  I'll take a quick look at yours.  Export and attach.  

Tags (1)
pgscada
Crewman
Crewman
0 Likes
1
1534

Re: NE_INT on array value

@DavidBaker Thanks any help is appreciated.

See program "Gestion_PTR" : https://we.tl/t-Q4u0jdD42O  

Tags (1)
FrancisBreysach
Crewman Crewman
Crewman
0 Likes
0
1517

Re: NE_INT on array value

Hello

 

If the problem is always present,

As a workaround,

you could try to invert the logic of the test: 

EQ_INT and then invert the input (on the OR_BOOL) with a Not (little circle).

Tags (1)
DavidBaker
Crewman Crewman
Crewman
0 Likes
0
1512

Re: NE_INT on array value

You are running your Read_Var continuously (directly from the Power Rail).  The Value of 7 is actually toggling between 7 and 0 so fast that you can't see it.  So it only looks like the logic is not working properly.  I proved this by adding a contact in front of your Read_Var., then disabled the rung after remove the ethernet cable.

 

You will want to use logic to control execution of the Read_Var.  I use a Pulse Input to execute the Read_Var. 

 

Read_Var_Contact.PNG

 

 

Tags (1)