Forum Replies Created
-
AuthorPosts
-
manjey73
ParticipantVal(106) – Channel value number 106
106 is just a channel number, you will always receive a bit from the number 106, and converted to double by the system beforehandIf you need only one bit from the incoming signal, and you are not interested in the number itself and other bits, then you can simply use the GetBit(Cnl, 0) formula in the input channel without resorting to calculation channels
manjey73
ParticipantThe command number is the number that is obtained as a result of configuring the Modbus template command, for example, you specified a register entry command and a number 1 or 2 was created for it, this is the number you specify in the control channel (output channel) The output channel number can be arbitrary and you refer to it in the input channel thus creating a link. Switch to version 6, it now has one channel, just specify its type Input, Input/Output, Output
manjey73
ParticipantIf the setBit formula has already been added to the database, it allows you to change the bit to both 0 and 1
SetBit(Val(101), 2, Cmd)
When transmitting 0, bit number 2 will be reset, when transmitting 1, bit number 2 will be set. The remaining bits of the channel will not be changed
manjey73
Participant@victorlam In this case, in the existing channel 101, you change the 2nd bit to 1 if it was zero, or it remains 1 if it was in 1 and you write 0
| – or
<< 2 – Shift the zero bit by 2 positionsThat is, this formula is only for setting the 2nd bit to 1
-
This reply was modified 3 years, 1 month ago by
manjey73.
manjey73
ParticipantThere are a lot of changes in the kernel. Especially when working with archives. The ability to use PostgreSQL as the main database instead of the internal one. Accessing variables by tag code. Removal of restrictions on 65 thousand channels. And apparently much more… If it is possible to upgrade to version 6 or start, then it is better to do so.
manjey73
ParticipantThe long computer code may be related to the number of network interfaces, if you use Virtualbox or similar programs and run virtual machines, the composition of network interfaces will change. This may be related to the problem of the key operation. Ask the developer to make you a key to the real network card of the computer in this case.
manjey73
Participant“Code” is needed
manjey73
ParticipantThe mode should be Modbus RTU, but the communication line setup should be TCP/IP with the port specified from the converter settings. At the same time, the device Address = 1 must be specified in the device settings
manjey73
Participant@manyan2028 127.0.0.1 this is the local IP of the machine, not the IP of the PLC
502 the port is a Modbus port and not a port for the Ethernet/IP protocol, by default the port should be 44818This is according to your screenshot from the mail. Read carefully how the Allen Bradley PLC is polled and exactly how you want to poll it, via Modbus, if it has such an opportunity, or still via Ethernet/IP
manjey73
ParticipantDoes your gateway work over Modbus TCP ? Has a port for access, for example 502 ? Perhaps you are requesting an address that is not in the gateway variables
manjey73
Participantuse Formula SetVal
Look in the documentation how to use it correctly
manjey73
ParticipantUse Autologin for version 5
manjey73
ParticipantI may be wrong, but in this case, the trigger should be set to the channel status and apply formulas that change the status.
manjey73
ParticipantAs far as I remember, if you have a trigger at 0 and when you restart the server you have 0 there, then the command will be skipped. You need to do 1 in the channel, and then 0, that is, changes must occur. This is done in order not to send commands when restarting the server.
manjey73
ParticipantAs far as I know, in the current version of Gate, it is possible to have the same channels on remote servers if the same type of installations. And on the central server, you just clone channels, after setting up the first remote server, then when setting up the second remote server, you simply change the bindings in the Gate settings to the new channels of the central server. Example. You set up the first remote server with channel numbers 1-800 with transmission to the central one also at 1-800, then you clone channels on the central server 1-800 at 1001 – 1800 and when you start the second remote server, you set up communication 1-800 (remote server) at 1001-1800 central. And so on for subsequent servers. I don’t know how it will be in the 6th version, there should be identifiers of a different type and it may be easier.
-
This reply was modified 3 years, 1 month ago by
-
AuthorPosts