Schneider M340 Data Move Problem

anilciplak

Member
Join Date
Jun 2015
Location
turkey
Posts
2
Hi guys,

I have a problem with data moving in unity pro
My inputs are goes from %I0.1.0 to %I0.1.15 and i want to move all IW0.1 to %MW0. i am having problem with data types anybody can explain me if can we use in unity pro IB0.1 or IW0.1 . As i see we can only use IOs as %I0.1.0 as rack 0, slot 1, bit 0
Thanks
 
Hi guys,

I have a problem with data moving in unity pro
My inputs are goes from %I0.1.0 to %I0.1.15 and i want to move all IW0.1 to %MW0. i am having problem with data types anybody can explain me if can we use in unity pro IB0.1 or IW0.1 . As i see we can only use IOs as %I0.1.0 as rack 0, slot 1, bit 0
Thanks

Just use the BIT_TO_WORD function to move all BOOL inputs to %MW0
 
Last edited:
{test : [MAST]} : (l: 8, c: 17) E1092 data types do not match ('BIT_TO_WORD.OUT:WORD'<->'%MW0:INT')
I got this error message. Also anyway to do in ladder
 
Looks like you have %MW0 declared as an INT, change it to WORD in your variables.

You can use the FB in ladder, but in raw ladder just make you %I0.1.0 = %MW.0, %I0.1.1 = %MW0.1 etc

NOTE: I am not 100% on your %I syntax as i am not in front of Unity at the moment but you should be able to figure it out pretty easily
 
Looks like you have %MW0 declared as an INT, change it to WORD in your variables.

This.

sounds like you are putting %mw0 on the output of the function block, which by default will be an integer value with no way of changing it. you need to first create a tag under elementary variables and then give the tag the address %mw0 and data type as Word, then stick the tag on output of bit to word function block rather than the direct address.
 
You need Array ebool 0...15
you need array ebool, and place %i into array (arrary_name:=%i0.1.0:16)
you need move array to int (move_arebool_int(array_name,int_name))
 

Similar Topics

Hello all, I am wanting to update the system clock via NTP in the M580/M340. I'm aware that we are able to connect to a NTP in the controller...
Replies
4
Views
115
so i have an isssue where if the serial port of an M340 plc disconnect from the screen it would retain the values of the variables being sent...
Replies
1
Views
910
Hello, I'm having a hard time understanding how to get a Modicon M340 to pull a Modbus address from an ABB Totalflow via Ethernet. I set up a port...
Replies
5
Views
1,151
Hello, this is a message for specialists in Schneider, I am trying to establish communication in modbus tcp between a schneider M340 (P3420302)...
Replies
2
Views
1,605
I need to establish communication between Schneider M340 and S7-1500 PLC. I am using gateway converter for MODBUS TCP TO PROFINET protocol...
Replies
12
Views
2,970
Back
Top Bottom