Wago 750-842, Corrected message, sorry!

nodoubt

Member
Join Date
Feb 2003
Location
Italy
Posts
14
Hi there,
Sorry for the previous post, but I hit send button before I completed my message. :)

I experienced a weird trouble programming a Wago 750-842 ethernet
programmable coupler.
I am mostly using Structured Text language and it happened something
like this:
I had FB, suppose something like this:
FUNCTION_BLOCK TDummy
VAR_INPUT
VarIN: BOOL;
END_VAR
VAR_IN_OUT
VarExchange: BOOL;
END_VAR
VAR_OUTPUT
VarOUT: BOOL:=FALSE;
END_VAR
VAR
LocalVar: WORD;
END_VAR

From the calling program I wrote a code like this:
VAR
Dummy: TDummy;
a,b:BOOL;
i:BYTE;
ArrBool:ARRAY [1..10] OF BOOL;
END_VAR

FOR i:=1 TO 10 DO

Dummy(VarIN:=a;VarExchange:=ArrBool);
b:= b OR Dummy.VarOUT;
END_FOR

My problem came from a very weird behaviour. Debugging the code, I found that
inside the FB I hadn't the real value I passed in VarExchange.
I finally found a solution, and it was all about passing a temporary BOOL
single variable into VarExhange, like this

FOR i:=1 TO 10 DO
TempBoolVar:=ArrBool;
Dummy(VarIN:=a;VarExchange:=TempBoolVar);
ArrBool:=TempBoolVar;
b:= b OR Dummy.VarOUT;
END_FOR

Just this way my ArrBool array got modified the proper way, w/o data alteration.
Anybody experienced such a trouble?

Any explanation?

Ciao
Luca
 

Similar Topics

Hi all, I'm using WAGO 750-842 PLC with Ethernet port. I've connected its Ethernet port to my Window 7 laptop using a crossover cable. I'm...
Replies
18
Views
12,083
Hello out there does anyone know how to upload a plc program from a wago 750-842 plc? I have tried both wago's I?O pro and CoDeSys software...
Replies
1
Views
2,844
I am playing with a wago ethernet controller 750-842, and finally got it connected to my computer network. My question is...Can I program it with...
Replies
9
Views
24,110
I have 2 Wago Processors(750-842) and i am trying to Communicate between them through the Ethernet. I am using the function block Ethernet modbus...
Replies
4
Views
5,459
Hi all, We've "playing with some Wago PFC for some time and here is a question which could not be answered by there tech support. The...
Replies
1
Views
2,584
Back
Top Bottom