News:

SMF - Just Installed!

Main Menu

Addressing PLC Inputs

Started by Kangaroo, September 30, 2024, 11:36:23 AM

Previous topic - Next topic

Kangaroo

Hi, if I use a selector in MS to write a PLC internal variable, everything works fine, but if use the same selector to modify a PLC Physical input, it doesn't work properly. Physical outputs work correctly.
Of course, this is only an example, the problem arise also with pushbuttons and any other MS simulator variable addressing PLC physical inputs.
The only solution I can think is to use, in PLC software, an OR function among a Physical input and a variable addressed from MS, as in the picture attached.
I know that in this way I solve the problem, but I'd prefer not to do this modification to 300 variables...


EasyPLC_Master

Hi! I think you are making some kind of mistake...

If you configure properly  the driver, all I/O can be managed withput problems, Take note PLC Inputs are only read entities and PLC Outputs and only write entities.
For Machines Simulator point of view works in reverse, this is, PLC Inputs are write entities and PLC Outputs read entities.
Are you sure not are configuring the signals in the opposite way?
What driver are you using? Siemens, OPC DA/UA, Modbus?

Kangaroo

Hi, thank you for the reply. I'm using Factory Talk Logix Echo.
Of course I know that:
  - PLC Inputs are write in Machines Simulator and read from PLC,
  - PLC Outputs are write in PLC and read from Machines Simulator.
Now, with PLC outputs I don't have any problem, all PLC outputs are read correctly in Machines Simulator.
For PLC Inputs I have a problem:
  - If I write a PLC input linked to an internal PLC variable, everything is OK
  - If I try to write a Physical PLC input, doesn't work.
When I say Physical input, I mean, for example, a variable named "RunMotor" that is an alias of a Physical address on the Input card.

EasyPLC_Master

NO! You must to use only Controller Tags, please refer to our tutorial video where is explained:


Kangaroo

OK, Thanx.
So, if I want use the SAME software both in simulation and in production, the only way is the one I shown in my first message (see the image attached in the first message). So, for each variable, when  i'm in simulation the value on physical entry is 0 and the OR between physical input and MS input correspond to the MS input value, and viceversa, when I'm in production.
Is it right?

EasyPLC_Master

Yes, or you can use one configuration for simulation and other for production, only changing the Tags for the physical address ones.