Any questions about Rapid SCADA and Raspberry Pi

Forum Home Forums Rapid SCADA on Linux Controllers and Raspberry Pi Any questions about Rapid SCADA and Raspberry Pi

Viewing 15 posts - 61 through 75 (of 89 total)
  • Author
    Posts
  • #3394
    Mikhail
    Moderator

    jonbonjovi, manjey73 is the author of that driver.

    they communicate via Modbus/TCP but I am still new to the protocol

    It is simple. I recommend the official specs here http://www.modbus.org/specs.php to understand how it works.

    #3445
    jonbonjovi
    Participant

    I have put the KpRpi3.dll in the ScadaComm/KP directory and restarted the service, but Rapid Scada is not recognizing that I have installed the plug in. Is there something I am missing? The Readme for the Raspberry Pi GPIO controller does not explain the installation as far as I can read.

    #3449
    manjey73
    Participant

    You need to set the connection driver in the xml file by specifying the bit mask settings.

    example ScadaCommSvcConfig.xml

    <!--Линия 6-->
        <CommLine active="true" bind="true" number="6" name="RPi">
          <CommChannel type="" />
          <LineParams>
            <Param name="ReqTriesCnt" value="1" descr="Количество попыток перезапроса КП при ошибке" />
            <Param name="CycleDelay" value="0" descr="Задержка после цикла опроса, мс" />
            <Param name="CmdEnabled" value="true" descr="Команды ТУ разрешены" />
            <Param name="ReqAfterCmd" value="false" descr="Опрос КП после команды ТУ" />
            <Param name="DetailedLog" value="true" descr="Записывать в журнал подробную информацию" />
          </LineParams>
          <CustomParams />
          <ReqSequence>
            <KP active="true" bind="true" number="52" name="GPIO Raspberry" dll="KpRpi3.dll" address="1" callNum="" timeout="1000" delay="200" time="00:00:00" period="00:00:00" cmdLine="268435439;268435455;268435455;268435455;1;" />
          </ReqSequence>
        </CommLine>

    It is also necessary to specify the communication line in the databases of the Scada server using a Windows PC and then transferred to the Raspberry Pi. You can also customize and Communicator

    #3569
    jonbonjovi
    Participant

    Ok, so I am creating a Raspberry Pi device in the administrator program. How do I create a device type that uses the kprpi3.dll? I am trying to configure the output channels so I can have a button toggle the outputs on a couple pins. In the communicator, I have a communication line set up with kprpi3.dll so I can configure request sequences with it, but now I need to figure out the outputs.

    #3570
    manjey73
    Participant

    https://github.com/Manjey73/OpnenKPs/blob/master/KpRpi3/Readme.md

    Have you read the description in English from the link above ?

    Executed the command sudo gpio readall ? The given command will display the table of numbering of the contacts in BCM format and GPIO format. When you configure channels on Windows, the channels are numbered in BCM format. The output of this command you can understand which pin number corresponds to bcm numbering.

    https://i.stack.imgur.com/h4rgc.png – It is necessary to focus on the BCM numbering

    Settings GPIO

    #3571
    manjey73
    Participant

    You must set the checkboxes to change direction to OUT. On the idea of under such a a combination of will are engaged physical contacts 3 and 5

    #3572
    jonbonjovi
    Participant

    Gotcha, I understand that on the communicator. Now when it comes to configuring the output lines in the administrator? I would like to tie a command to a button that sends a value of 1 to a certain GPIO pin. Do I need to set up a device type that has the kprpi3.dll or can I use the modbus device type instead?

    #3573
    manjey73
    Participant

    screen 1
    screen 1

    screen2
    screen 2

    screen 3

    No, it is not Modbus, you have to make similar settings in the administrator of Scada for GPIO.

    • This reply was modified 6 years, 5 months ago by manjey73.
    • This reply was modified 6 years, 5 months ago by manjey73.
    #3576
    jonbonjovi
    Participant

    Thank you. From that point do you just use Create Channels under the services tab? It says the channels are missing, however it has the right DLL for my device (kprpi3).

    At this point I am trying to understand how the output channels can send meaningful commands that operate the GPIO.

    #3579
    manjey73
    Participant

    I created channels manually, because this mechanism is not implemented in the driver, if I can judge correctly.

    #3581
    jonbonjovi
    Participant

    Do you happen to have an example of what the output channels look like for you? I have created one for “Start” that ideally would be used to toggle one of the GPIO outputs.

    Are these tied to the “requests” defined in the communicator application?

    #3593
    manjey73
    Participant
    #3594
    manjey73
    Participant

    After you have configured the Communicator and transferred the data to the Raspberry Pi and rebooted scadacomm, you will see the kpXXX file in the folder ScadaComm\log.txt, which you have attached to GPIO channels.In it you will see the table included with the numbering of gpio signals. Use this numbering in the input and control channels

    #3604
    jonbonjovi
    Participant

    That helps me a lot, thank you.

    Further clarification: What kind of command value are you using there? Is that a 1 for on and 0 for off?

    #3607
    manjey73
    Participant

    https://ru.aliexpress.com/item/Free-Shipping-2PCS-LOT-5V-8-Channel-Relay-Module-Board-for-Arduino-PIC-AVR-MCU-DSP/2042682698.html?spm=a2g0s.9042311.0.0.S49pHe

    I used a relay Board that is controlled by a minus. Therefore, for convenience, I’ve done inversion of control commands and control. If you use this fee-free formulas then 0 will turn relay 1 off relay

Viewing 15 posts - 61 through 75 (of 89 total)
  • You must be logged in to reply to this topic.