Micrologix Simulator

2 views
Skip to first unread message

Kevin

unread,
Aug 3, 2024, 1:42:55 PM8/3/24
to tikodekee

Currently I'm working on writing data to a test machine that simulates reads from an Allen Bradley PLC in python. This machine is supposed to replicate another that we have live that simply reads the PLC tags, and I don't have any spare PLC's just lying around. Is there any program or code out there I could use to simulate a PLC for reading and writing?

This is for reading and writing tags to a simulated PLC for our test machine. I have tried using cpppo's sample code for a server, however the tag names in the live PLC has "[]" in the name (so for example, "tag[1] tag[2] etc..), and cpppo fragments these whenever I try to instantiate them in the terminal.

I expect there to be some simulator that exists that should solve this problem, however I have been searching for more than a week now with no hope/leads besides cpppo, any kind of insight or suggestions would be appreciated.

I am very green at this and learning online as I have purchased a brand new Micrologix 1400 1766L32BXBA. I am pulling my hair out as I cannot even power an LED or for that matter get any 24 volt reading from the outputs via program. I have even forced them on so shouldnt I be able to see something? I am connected via Ethernet ,Rslinx in concert with using Micro starter software (not lite) and the unit does not show any faults and is in the run mode. I can see the bits forced on the software and on the unit's LCD screen in I/O status. Is there a way to trouble shoot if the unit is bad or I am overlooking something incredibly simple. I do not have any floating inputs or outputs with the common from the power supply and the unit is properly grounded all nice and tidy on a din rail. Like I said I am very new at this so I am sorry if this is a bad question.

The power supply in a Logix device (whether ControlLogix, CompactLogix, SLC, or MicroLogix controllers) supplies power only to the cards in the chassis backplane, or the I/O modules (if added on expandable units) on a Compact- or MicroLogix bus. Power for the field devices must be wired from a separate, external power supply. Remember that digital outputs in any Logix controller are just optically isolated "relays" to conduct power from an external power supply to a field device. When an physical output is on (true in the logic or force table) you should get an LED indicator on the associated Logix module output status indicator. If you're getting that LED saying you should have an output, that means connectivity is established between the field power supply and the filed device, same as if closing a normally open contact on a relay. So, make sure you have an external field power supply properly wired to your MicroLogix controller and the field device(s).

If you have a field device power supply properly wired, it's power is on, and you're getting the LED status indicator on the PLC's output, you need to check your I/O module and field device to make sure they're matched for sinking and sourcing. Not going to get into that here, but check the manual in this attached link, chapter 3:

If the field power supply is wired correctly, the LED status indicator on the PLC's output is on, your field device and PLC are matched for sink/source, and you're still not getting the output, the output itself may be bad. In ControlLogix chassis we can disable an I/O card but I'm not sure if that's true in the Micro-1400. Again, check the manual.

Thanks for replying. The micrologix 1400 can be expandable but it has a 24 volt power supply to power relays in the field and I am just powering a field device simulator toggles, led pushbuttons for Input and Output which I know it can do. Its part of an online class I am doing. My problem is the leds in the push buttons wont even light up and looking further the lugs them selves do not have a voltage present. I tried forcing them all on and take readings but to no avail. I think I am going to return it for an exchange.

Relay outputs are easy to understand, the relay contact is acting just like a switch. And even newbies should not find it hard to understand that every switch needs one side connected to the power and the other connected to the load... And both switch and relay contact will happily handle either AC or DC (within limits, always check specs). And because simple switch (and relay contacts) are not polarized, you can also place the switch (or relay output) in the negative leg of a DC circuit if you want.

To reduce number of termination points, it is very common that inputs and outputs are internally grouped (bussed, ganged) so that single terminal can be used as "common". But this limits options when working with circuits that are galvanically isolated. So to make things more flexible, not all outputs are grouped all together. They may be split into smaller groups so that one can mix and match different loads (AC or DC, positive or negative). In case of L32BXBA, there are four individual outputs (OUT0, OUT1, OUT 8 and OUT 9). Another two relay outputs are OUT10 and OUT11. They are grouped together (they use same supply via terminal DC5/VAC).

They are polarized so one cannot do all of things that we just described with relay outputs. Also (in general) transistor outputs are rated for less current when compared to relay outputs. But they can be FAST, their signal is CLEAN (no bounce, suitable for pulse trains for example), they can last virtually forever (no arcing and degradation due contact oxidation) and they are much smaller (easier to get a lot of them in tiny package).

in Case of L32BXBA all six transistor outputs are grouped together (they use same supply VDC2 is positive and COM2 is negative). Reason for two terminals for power is that (unlike relay outputs), transistor are 3 terminal devices so input and output are not galvanically isolated. Therefore outputs have driver logic that is powered from same circuit that the outputs are controlling. This means they need negative terminal as well. And since positive is already present anyway (in this case VDC2), there is a terminal to bring the negative supply too (COM2). Without connecting both, those six outputs are NOT going to work.

Finally, I am really not fan of the silly and completely abstract illustrations that this manual uses. So I tried to indicate internal circuitry (relay contacts and transistor outputs). This should help with understanding polarity and easily differentiate the output types. If you are using all outputs to drive DC loads, you may wire them like this:

Well that solved my problem that never existed. It was my wiring as I did not apply power to the dc output groups. I feel like a doofus but at the same time pretty dang happy. Thanx to everyone here. I saw this diagram and the first thing that popped into my mind was "of course" what was I thinking, I was not. I jumpered all of the 24vdc on the dc outputs I am using and wah lah. Again, thanx alot gentlemen!

I have a problem with some weirdo customer request
Aparently we need to interface 2 micrologix 1400, 2 omron CP1L and 2 Robots Fanuc LR Mate 200iD with controller R-30iB Mate
All this using a red Lion HMI G307K200

First they told use that they already have a similar setup using Ethernet communication, but they wont allow us to see the programs, this is something I hardly belive because of using omron and micrologix in the same network I dont know if is possible.

This is not identical to the former orange and black volume one. Projects have been added and some moved to volume two of this set.... developed specifically with the MicroLogix 1400 processor, the flagship of the MicroLogix family, but is compatible with all Micrologix controllers and can be adapted easily to SLC500 PLCs. 247 pages of full color step by step lab projects. Manual only...video lectures on YouTube (most of them free) and by paid subscription on Vimeo, cables and hardware are separate purchases.

More than 100 pages of evolving programming strategies provide a good background in the most common programming techniques. Virtual processes are used to demonstrate many different styles of programming.

Although you can execute some of these projects with other Micrologix controllers, the optimum use of this manual will be the result of using a Micrologix 1400. The 1766-L32BXB or BXBA is the recommended controller.

It is recommended that you build your hardware learning station using our Digital Field Device Simulator. An image of the units that we use in live classroom delivery is shown. Kits can be purchased on this site; pre-built units are special order only. Request a quote.

This digital field device simulator has six enhanced 4 state inputs and six LED outputs behind the pushbuttons. The processor is a 1766-L32BXB with the PTO/PWM outputs landed on orange terminals for external usage. One of the high speed counters is connected to the white terminals for use with devices such as encoders. Two additional inputs and outputs are extended to the blue and green, respectively, terminals for external input and output field devices.

In this project I wish to write a PLC control program to control the 16-Floor Simulator system using a DELTA PLC and a VEIVIEW HMI device that is already designed a while ago. To know more about the 16-Floor Simulator system, click HERE.

You are given the hardware as depicted in Figure 2 in which a second MicroLogix 1500 PLC is hardwired to the Simulator as shown. You are asked to develop a code to control the 16-Floor elevator simulator system PLC as
following:

Sending the same command to read coil status from my controller, also returns FF 01 01 00, but instead of showing them all as low, only 0 and 1 returns the correct status, 2 and 3 are always showing as high.

I have had someone else looking at the traffic, they too say the response from my device is correct, and they mentioned something about 16bit modbus. Can the modbus implementation in polyscope detect and switch between 8bit and 16bit?

c80f0f1006
Reply all
Reply to author
Forward
0 new messages