Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
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
84245members
353345posts

Reading input register 3x

Modicon PAC Forum

A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.

Solved
OsamaSalih
Ensign
Ensign
0 Likes
13
5001

Reading input register 3x

Hi All

 

I am trying to read from input register 3x of Micom IEDs  and writing the returned values to input registers 3x of my Modicon Quantum CPU through NOE771 11 eghernet module

 

I tried IO scanning but that only supports reading from holding registers

 

MBP_MSTR on the other hand can read input registers but it does not allow writing to input registers of CPU state RAM 

 

Any ideas please

 

Osama


Accepted Solutions
TaeHoon
Crewman Crewman
Crewman
9
4986

Re: Reading input register 3x

After reading 3x register via MBP_MSTR(function code 15), you can write the data to 3x register with WRITE_INPUT_INT function.

 

BR

Taehoon LEE

See Answer In Context

Eric_Coudurier
Lt. Commander Lt. Commander
Lt. Commander
0
4981

Re: Reading input register 3x

The solution is perhaps to read the 3x register using the MBP_MSTR and use a WRITE_INPUT_INT to write the %IW.

See Answer In Context

13 Replies 13
Stevey
Crewman Crewman
Crewman
0 Likes
11
4993

Re: Reading input register 3x

Hi OsamaSalih

 

Unfortunately you cannot write to Input Registers (3x).  Originally these registers contained the values of Analogue Inputs and as a real input into the PLC they are not writeable (same as a digital input 1x register).

Could you not use a holding register (4x) to store your values instead.

 

Regards

Stevey

OsamaSalih
Ensign
Ensign
0 Likes
10
4990

Re: Reading input register 3x

Hi Stevey

 

You totally right,, only the IO scanner function can write to input registers of the PLC, but as  I said earlier it can not read from the 3x data of the slave, which is unbelievable 😕

I can use the 4x area in the Plc but I will have to modify my SCADA application as well, which I am trying to avoid

 

TaeHoon
Crewman Crewman
Crewman
9
4987

Re: Reading input register 3x

After reading 3x register via MBP_MSTR(function code 15), you can write the data to 3x register with WRITE_INPUT_INT function.

 

BR

Taehoon LEE
Eric_Coudurier
Lt. Commander Lt. Commander
Lt. Commander
0
4982

Re: Reading input register 3x

The solution is perhaps to read the 3x register using the MBP_MSTR and use a WRITE_INPUT_INT to write the %IW.

OsamaSalih
Ensign
Ensign
0 Likes
8
4967

Re: Reading input register 3x

Thank you @TaeHoon

 

I will try this soon,

 

the question is why Unity Pro makes is so hard to read slave input registers? you know that MBP_MSTR function code 15  is very complecated to program, each single poll will need effort to complete, and I need to program about 120 polls, Hope developers of Unity Pro  (Control Expert) make it simpler in the future

 

one more question, does CONCEPT latest version support MBP_MSTR function code 15? 

Eric_Coudurier
Lt. Commander Lt. Commander
Lt. Commander
4
4961

Re: Reading input register 3x

Why it is so hard ?
Because it is a rule of IEC 61131 which prohibits writing in inputs. This seems a good thing, since an entry should only be written through the physical channel linked to it. These functions were not present at the beginning and were added in Control Expert to facilitate the simulation.

When using a SCADA, it is not recommended to use a direct physical channel (% IW or 3x registers) as these depend on the hardware.

OsamaSalih
Ensign
Ensign
0 Likes
3
4956

Re: Reading input register 3x

Well,  It is so hard if compared with programming of READ_VAR  which I can not implement in my program 

OsamaSalih
Ensign
Ensign
0 Likes
2
4955

Re: Reading input register 3x

I am reading those registers from Micom  protection relays IEDs,  All modbus data are located in 3x data area

Eric_Coudurier
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
1
4950

Re: Reading input register 3x

I don't understand well your issue. READ_VAR is able to read 3x registers or their equivalent in IEC %IW.

You can read your register in the protection relays. the values will be available in the reception table that can be used by the SCADA. there is no need to forward the 3x registers coming from the protection relays to 3x register in the PLC. If I well understood the SCADA uses 3x registers to read the values, so in that case forward the reception data into a %IW register, using the Write_input_int: 

(*INT*) Simulated_Input:=WRITE_INPUT_INT (INP:=Value (*INT*));
TaeHoon
Crewman Crewman
Crewman
2
4946

Re: Reading input register 3x

Hello OsmaSalih,

 

you can read  continuous 125 input registers(3x) per one poll.

Quantum CPU for Concept was end of sales in 2015.

And Quantum CPU for Unity pro was end of sales in 2018.

So I don't think there will be further development.

 

Concept latest version is V2.6 SR7.

As I know, MBP_MSTR in Concept soft doesn't support function code 15.

 

One more, you can't use read_var function in Quantum.

 

You can migrate from Quantum to M580  with existing Quantum IO


I hope this information is helpful for you.

 

BR

Taehoon LEE
OsamaSalih
Ensign
Ensign
0 Likes
0
4940

Re: Reading input register 3x

Hi @Eric_Coudurier

READ_VAR is not supported for Quantum CPUs,

My only option is MBP_MSTR with function code 15

OsamaSalih
Ensign
Ensign
0 Likes
1
4937

Re: Reading input register 3x

Thank you @TaeHoon

 

that was very helpful 

aamjad52114
Crewman
Crewman
0 Likes
0
1395

Re: Reading input register 3x

Wondering if you were able to use MBP_MSTR block to pull 3000x values?

 

Tags (1)