![]() This can give you problems as it will be like if the buttons are constantly pressed. On Raspberry Pi boards, the first two inputs (%IX0.0 and %IX0.1) are inverted in hardware.In that case you can connect PB1 and PB2 directly to %IX0.0 and %IX0.1. If you’re using an industrial board, or a board with internal pull-down resistors, it is very likely that you won’t need R1 nor R2 in your circuit. ![]() PB1 and PB2 are push buttons (if the image is not clear enough) R1 and R2 are pull-down resistors.For example, for Arduino boards that’s usually +5V, for Raspberry Pi it’s +3.3V, and for industrial boards it’s +24V. +V is the positive voltage level for your device.A device with OpenPLC runtime installedīefore you ask, if you’re running OpenPLC in one of those industrial boards (UniPi, PiXtend, etc) you might want to upgrade the LED to an Industrial 24V Lamp instead.Now that you’ve learned the basics around OpenPLC, it’s time to get your hands dirty and code something on the OpenPLC Editor.This project is a simple on/off switch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |