Jump to content

kratmel

MVP 2023
  • Posts

    1,146
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by kratmel

  1. support@unitronics.com This link present on forum Home page
  2. Yes PLC needed No. Please find and read topic on forum with the same quastion.
  3. You must configure machine - write needed parameters to part of project DT columns (maybe different data type column needed. Save DT to PLC write data to DT. Then configure 'Restore default' button on some settings display and create rung with restore contact -|P| - and needed DT read function. Data from DT must overwrite losted data in PLC.
  4. You have probably not seen how many times a dead battery leads to the failure of modern equipment. This cannot be avoided because a forgetful person has to take care of it. The best day - "dead battery day" is the first day of the week after a long weekend... The most important thing for the consumer is the ability to restore the application through the SD card as mentioned above. When performing an important project, I always make an autocorrector subroutine for parameters that are critical, they are constants in the code or are pulled from the data table stored in flash. If the battery goes down, as indicated by Joe above, when the machine is turned on and an automatic warning window appears and "Confirm" button must be used. If the parameters have skyrocketed (at least one of them went beyond the allowed limits and the battery died SB8=1), then their automatic correction also generates a window that says that the battery has already died and the standard parameters are used. There is a warning about this in the user manual that I provide for the machine operator. P.S. However, one user exceeded all my expectations. After the battery failed, he did not replace it, but only entered the parameters manually (in info mode) with operands printed on paper every time the machine was turned on at the beginning of the week. This was his solution to the problem - because he was afraid to disassemble the PLC case to replace the battery.
  5. maybe this link is helpful https://stackoverflow.com/questions/11129212/tcp-can-two-different-sockets-share-a-port P. S. I like this comment from link https://www.quora.com/Can-multiple-sockets-use-the-same-port Socket has a port on either side. The server port is the one the client addressed its initial packet to, but that packet was sent from a temporary port on the client. That combination of IP and port is a clear return address for the server to separate the traffic for multiple sockets It's just the same way you can have text conversations with your mum, your wife, your daughter and your mistress and make sure you don't say the wrong thing to the wrong person.
  6. Moved... to appropriate forum section Standard problems: -- MB47 and MB50 are not activated according to the program; -- the piece of code you wrote lies in a routine that is never called anywhere; --there is another place in the program where variables MI97 and MI116 are overwritten with another value or initialized. If possible put your code here otherwise it's hard to tell where the problem lies. P.S. What plc are you using and how do you test your code?
  7. Unfortunately, I don't have such a module on my desk, so if possible, post a photo of its board from both sides. My recommendations: 1) check whether the valve coil is not shorted. It is worth doing this by comparing the resistance with neighboring similar ones in a cold state. If the coil had a short circuit - the transistor in the module is 100% destroyed. 2) If the check according to point 1 is successful. Check the operation of the coil by applying voltage directly to it. It is good if you can compare (measure) the current of the suspected coil with the current of the working one. 3) If the check according to points 1 and 2 is successful. Reassemble the circuit as it was and try to see if the signal is coming to the desired output using the PLC Information Mode. 4) If the signal comes and you see the change of state of the desired output in the Information Mode, and the valve does not work, check the power supply at the input V1 provides the power supply for Outputs #9, 10, 11, 12, 13, 14, 15, and 16. 5) if the steps listed above have been carried out and there is no success - repair the unit or replace it with a new one. Regarding the repair - if there are photos - I will try to provide recommendations. The main thing in your situation is to perform points 1 and 2. This will protect the new or repaired module from repeated destruction. Consider Ausman's question. Diodes are important for solid-state outputs to coils.
  8. Similar to your task, I set up a PLC to detect problems with the turret encoder. It should be noted that your code is slightly offset from the standard Gray code. Therefore, standard conversion methods need "improvement".
  9. I played with a data table (4 columns of bits) in which I wrote down possible codes for the position of the turret. With one command (Data Table Find (Extended), I searched for the line number in which the required combination was found. The task was to automatically find the position number as a decimal number. In my case it was the row numbe r of the data table.
  10. Please read about possible Ethernet connection for Vision PLC in Visilogic Help. Example project is helpful also.
  11. Please send this quastion to support@unitronics.com
  12. Hi, Is it possible that your network switch has POE option and POE powered from PLC power supply? I found bad cable that disable network with POE option.
  13. This is the creation of Italian engineers who tried to "overclock" the frequency converter in the machine by increasing the base motor frequency (87Hz) and switching the standard 3x380V motor to the 3x220V mode. They almost succeeded... But over time, the bearings in the motor went bad and the 300s time of a possible overload (250%) of the frequency converter installed by the Italian manufacturer did its job. The most interesting thing is the fact that no one believed that the frequency converter IGBTs was faulty. All standard tests said that the module shown in the photo is in working condithion. Only complete disassembly revealed this unsurpassed "beauty".
  14. The art of burning a transistor. The frequency converter does not understand art at all - but this time it exceeded expectations.
  15. One of my latest applications was to create a two-axis stepper motor machine with freely programmable position, sequence and speed parameters for each movement. In addition, in some phases of movement, it was necessary to implement the procedure of turning on and off additional devices participating in the process, according to the current coordinate. The main task was to provide the user with the ability to select a sequence of movements and save the selected sequence as a separate program in the list of programs. V350, as a two-axis stepper motor controller, received tasks through unican from V1210, on which the sequence programming system was implemented. In this way, it was possible to implement the increase in the number of programmable positions similar to your desire. At the same time, it does not require me as the author of the program to change parameters and sequences of movements. Actually, this is one of the directions for improving your program. P.S. Two PLCs are used only because V1210 does not support PTO control of two stepper motors, and it is difficult to implement a user interface for convenient program change on a small screen size.
  16. If the example given by you works and fulfills the task, then in this case it is not worth changing it. Solving a similar problem for uniaxial movement, I used the State Machine. After starting, the PLC solves the task of finding the zero coordinate. The State Machine is made in such a way that it constantly compares whether the given coordinate is equal to the desired one with a predetermined +- precision. In the first state where we get to after setting the zero position, three conditions are used: 1) the specified coordinate lies within the required +- accuracy - we are not going anywhere Motion state = stop 2) the specified coordinate is greater than required - we move in the direction of decrease Movement state = back. 3) the specified coordinate is smaller than required - we move in the direction of increasing the coordinate. Using this principle, I can set the coordinate in an arbitrary order with another state machine or by going through the rows of the Data Table. I don't need to repeatedly check if the counter is in the right coordinate. This is done automatically by the state machine. The output of the constructed algorithm is discrete signals for the frequency converter to move - forward - stop or backward. To speed up the process, I constantly check whether the distance to be traveled is long. If so, then I turn on the high-speed movements with an additional discrete output. Unfortunately, this algorithm is implemented in Visilogic, but I think you can come up with a similar one for Unilogic
  17. Please check outputs wire and all device connected to outputs for short cirquit. It looks like some output on and it overloaded. At this time all modules power voltage is go to low value and it looks like turn on and off rapidly. You can test (activate) all output separately and find one that is shorted or overloaded.
  18. Please specify what your configuration is. Is this a new configuration with new modules that failed to start? Are these used modules? Is it power supply in working condition and all needed power wires connected? If the configuration is new, then you should read this document regarding the changes required in the PLC firmware in order for the new modules to work (Uni-IO: Firmware Update). https://downloads.unitronicsplc.com/Sites/plc/Unilogic/UniLogic 1.33.373 June 2023.pdf If this does not help, please contact support@unitronics.com
  19. After seeing the first rung of your code, I came to the conclusion that perhaps your configuration is in a routine. If this is the case, read the help recommendation for this. Maybe that's why your Modbus goes to sleep.
  20. From help... Having analyzed the research outlined in this post https://stackoverflow.com/questions/2651907/is-there-a-limit-for-the-number-of-files-in-a-directory-on-an-sd-card I concluded that the limitation in the number of files in the folder occurs due to the maximum length of the file name reserved in the PLC. That is, since the PLC is not a PC, it is probably impossible to implement a full mode of interaction with the SD card. Therefore, in advance, the developers limited the number of files so as not to exceed the capabilities of the file system when writing the appropriate file names.
  21. Please clarify whether we are talking about the Visilogic itself or the program loaded in the PLC. I had a problem displaying various image properties and complex elements for the V1040. Reached out to support with this. It was advised to use the increased value of the variable SI246. It helped. In the case of transparency, I had a problem only with program loaded to PLC V350 in which the interrupt routine is used. I didn't understand the connection between the interrupt and the graphics transparency, but I had to redesign the screen so that the problem on the main window does not annoy the user. P.S. Most recently, during the process of loading the program, I noticed that small changes in the program are not recorded in the environment, and when I try to download, a message pops up that the program in the PLC is the same as in Visilogic. However, changes have definitely occurred, although they are minor. Perhaps the transparency properties are similarly not entered somewhere in the database and are lost when the project is saved.
  22. Please post V570 Ethernet configuration for all 4 socket. Is it SB168=1?
  23. You can compare the original and the replacement and try to change the direction of the wires. It is difficult, but possible. It is necessary to solder thin wires to the sensor and to the board near the connector. I've done this many times, but in your case you need some soldering skills and if you don't have them, contact a professional. If you manage to get the replacement sensor to work, tell us about it on the forum. I and other users will be interested to know the brand (link to the place where you bought the replacement) and the changed wiring diagram for connecting the non-original sensor. A photo of the markings and diagrams for changing the direction of the wires would also be useful. P.S. Everything you do with your PLC is a risk, so you should be aware of the consequences of using non-original equipment.
×
×
  • Create New...