Forum Replies Created
-
AuthorPosts
-
manjey73Participantyes
manjey73ParticipantYou need to implement Modbus slave device on Arduino
manjey73ParticipantI 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
manjey73ParticipantAfter 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
manjey73ParticipantI created channels manually, because this mechanism is not implemented in the driver, if I can judge correctly.
manjey73Participant
manjey73ParticipantYou 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
manjey73Participanthttps://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

manjey73ParticipantCan you catch and fix a screenshot ? Just online translation I do not understand what you mean ?
manjey73Participantdouble Scaler (double input, double in_min, double in_max, double out_min, double out_max) { double out1 = 0; double out2 = 0; double output = 0; double diff = in_max - in_min; if (diff != 0) { if (input > in_max) out1 = in_max; else out1 = input; if (in_min > out1) out2 = in_min; else out2 = out1; output = (out_max - out_min) / diff * (out2 - in_min) + out_min; } return output; }This site automatically changes the minus sign on the dash. Try to rewrite the formula from the code or correct hands.
The entry of the formula seems correct
manjey73ParticipantWhen you start Communicator and Server, it does not open the program window, but it starts minimized and its icons are located in the system tray
manjey73ParticipantCommunicator runs in the system tray, we take account of it.
manjey73ParticipantYou 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
manjey73ParticipantOn Raspberry Pi2 was not tested work with GPIO, if you have Pi2 B+, then the numbering of GPIO must be the same. You can check it using the utility.
sudo gpio readallThis way you will get a table of outputs and outputs of your version of Raspberry. Then connect the driver to the Windows PC and start the settings. Disable the checkbox in the use GPIO column on unused inputs or outputs, determine the remaining destination input or output as well as power lift.
The driver uses the WiringPi library and does not access GPIO directly.
-
AuthorPosts





