Forum Replies Created
-
AuthorPosts
-
manjey73
Participantfedex
Possible. The developer has experimental builds for libplctag_2.3.4_linux_arm6hf_EXPERIMENTAL.zip and libplctag_2.3.4_linux_arm7l_EXPERIMENTAL.zip
If any of the builds are suitable for Raspberry, I can try to rebuild the driver for them. But I unfortunately have nothing to test on. I have already returned the PLC and I do not have access to it. If you can arrange remote access to the PLC, I can try to check this possibility.manjey73
ParticipantBus 001 Device 006: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial PortI didn’t pay attention, you have a cheap USB-RS485 converter, I have the same ones.
But I have only 3 pieces installed. And at the time of reboot, they can change their numbers, for example, from /dev/ttyUSB0 to /dev/ttyUSB1, which is unacceptable for the system to work.
So I apply the Udev rules so that they are named as I want, regardless of what number the device received.dmesg | grep usb
[ 2.031971] usb 1-1.2: new full-speed USB device number 4 using dwc_otg [ 2.164990] usb 1-1.2: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 3.00 [ 2.165006] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.165015] usb 1-1.2: Product: USB-Serial Controller [ 2.165025] usb 1-1.2: Manufacturer: Prolific Technology Inc. [ 2.262025] usb 1-1.3: new full-speed USB device number 5 using dwc_otg [ 2.395529] usb 1-1.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54 [ 2.395550] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 2.395559] usb 1-1.3: Product: USB2.0-Serial [ 2.491981] usb 1-1.5: new full-speed USB device number 6 using dwc_otg [ 2.625521] usb 1-1.5: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54 [ 2.625539] usb 1-1.5: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 2.625549] usb 1-1.5: Product: USB2.0-Ser! [ 2.944434] usbcore: registered new interface driver usbserial_generic [ 2.944504] usbserial: USB Serial support registered for generic [ 2.953464] usbcore: registered new interface driver ch341 [ 2.953554] usbserial: USB Serial support registered for ch341-uart [ 2.965080] usb 1-1.3: ch341-uart converter now attached to ttyUSB0 [ 2.975967] usb 1-1.5: ch341-uart converter now attached to ttyUSB1 [ 3.042552] usbcore: registered new interface driver pl2303 [ 3.042659] usbserial: USB Serial support registered for pl2303 [ 3.058874] usb 1-1.2: pl2303 converter now attached to ttyUSB2 [ 3.955816] usbcore: registered new interface driver brcmfmac [13594.241044] pl2303 ttyUSB2: usb_serial_generic_read_bulk_callback - urb stopped: -32
see the output of the command
usb 1-1.3: ch341-uart converter now attached to ttyUSB0
usb 1-1.5: ch341-uart converter now attached to ttyUSB1
usb 1-1.2: pl2303 converter now attached to ttyUSB2Here 1.3 is the number of the USB port on the Raspberry and /dev/ttyUSB0 what is the port number received by the device
manjey73
ParticipantRun the
dmesg | grep usb
command and look at the output, there you will find the port number to which the USB-RS485 is connected, and in your case, most likely the serial number of the device. Cheap devices don’t have a serial number and can only be linked to the USB port number on the RaspberryUDEV rules must be applied when you connect two or more USB-RS485 devices. In your case, it will most likely be /dev/ttyUSB0
manjey73
ParticipantIn general, by default, all ports have the form /dev/ttyUSBx, where instead of x, the number is from 0 and on. But if you have two or more devices, sometimes the numbers change. So that the number does not change and the Udev rule is made and the device has the same name, but it is bound to a specific port via symlink.
manjey73
ParticipantUse an online translator. The rules can bind the USB-RS485 converter to a specific port name, depending on which USB port you connect the device to. Then the port name will look like /dev/mydev/Com1 or Com3 and so on
manjey73
ParticipantBut this does not solve the problem of saving the pulse to the channel database when writing once per minute.
manjey73
ParticipantWill the TP timer be enough for you, similar to how it is implemented in a PLC?
Calling the formula Tp (Val(414), 10000) number of the monitored channel 414, time in milliseconds.
When 1 appears in channel 414, the timer output will turn on, after 10 seconds it will turn off for this example. The timer starts working on the signal edge, no need to hold 1 in the controlled channel.The Ticks formula is used in all the timers I’ve done. The formulas must be added to the Formula Reference.
-
This reply was modified 4 years, 8 months ago by
manjey73.
manjey73
ParticipantUse a VPN in your browser, which should help you get access to image hosting services
manjey73
ParticipantIt feels like you have IIS not installed correctly or the components in the additional Windows packages are not enabled correctly
manjey73
ParticipantYou can also run Scada Administrator in the Linux GUI. I ran it, but there are features, disabled drop-down lists due to problems with WCF as I understand it. In any case, you need to connect to the Linux server remotely, for example via RDP, but if there is a remote connection, then it is not so important how this happens. Toli in the graphical table of Linux itself, or with a Windows PC using Scsada Administrator
manjey73
ParticipantInCmdTransferOptions Options that determine receiving telecontrol commands from a remote server
OutCmdTransferOptions Options that determine transferring telecontrol commands to a remote serverIs this it ?
manjey73
ParticipantDoes the client have all the PCs on Linux on the local network ? You can connect via TeamViewer to any PC on the network and download the project from it, as well as control its work. Why does the Scada server also need a graphical shell, if we are talking about Linux, although you can run TeamViewer in it or just use SSH. The scripts are located in the Communicator and Server folders, as well as in the scadaagent folder if there is a need to overload any of the components. Don’t forget to give them execution rights.
manjey73
ParticipantYou can link one way or another if you have at least one public IP. There is no other way. Even the MQTT server requires a public IP to be able to forward data from one subscriber to another.
manjey73
ParticipantFor some reason, the English site does not have this section or it is located in another place.
https://rapidscada.ru/integration-with-rapid-scada/
Use an online translator. Perhaps this will help you solve the problem of writing data from exel to Scada databases.
-
This reply was modified 4 years, 8 months ago by
manjey73.
manjey73
ParticipantRead this topic and check how Apache is configured on a remote server, if in https mode you will have to do it by analogy for xsp4 or nginx
-
This reply was modified 4 years, 8 months ago by
-
AuthorPosts