Forum Replies Created
-
AuthorPosts
-
manjey73
ParticipantBriefly here https://rapidscada.org/device-drivers-development/ for english
Also use the source code of the project and the source code of the drivers from the users. MQTT Driver, Raspberry PI 3 Driver and others. Links can be found under http://demo.rapidscada.net/plugins/Store/Store.aspx
manjey73
ParticipantBetter yet, if you get the udev rules then you will be able to name your USB-RS485 e.g. /dev/mydev/COM1 and not to pay attention that reboots it may be ttyUSB1 instead of ttyUSB0
manjey73
Participantyes
manjey73
ParticipantYou need to implement Modbus slave device on Arduino
manjey73
ParticipantI 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
manjey73
ParticipantAfter 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
manjey73
ParticipantI created channels manually, because this mechanism is not implemented in the driver, if I can judge correctly.
manjey73
Participantmanjey73
ParticipantYou 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
manjey73
Participanthttps://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
manjey73
ParticipantCan you catch and fix a screenshot ? Just online translation I do not understand what you mean ?
manjey73
Participantdouble 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
manjey73
ParticipantWhen 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
manjey73
ParticipantCommunicator runs in the system tray, we take account of it.
-
AuthorPosts