Jump to content

kratmel

MVP 2023
  • Posts

    1,147
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by kratmel

  1. Hi, maybe someone set this in project Properties on the old PC
  2. Probably not. There is no temperature reading in PLC V130 online SI14=0. Although the temperature sensor is exactly on the board, but it is probably used for another purpose - to compensate for the temperature of the TC cold junction during measurement. Experimental result update: There is no PLC temperature SI14 readings in V130. But if we sw ON any of TC input in SI15 appear temperature readings from internal TC cold junction sensor. I try different combination - if any onboard TC sensor is activated - SI15 show temperature in 0.1C (I tried to serve hot and cold air - the reaction is adequate). If no TC is active - SI15=0
  3. After reviewing your projects, I came to the conclusion that you were trying to use a State machine. However, I can say that you have a little bit of your own perception of the idea that is embedded in the State machine. In each state, you try to take action immediately, that is, send a control signal. However, the main thing in the State machine is: 1) create a subroutine INPUTS in which to assign the value of physical inputs to logical variables MB or XB. This will help you simulate the operation of the State machine. In the online simulation mode, it is not possible to change the state of the physical input, an intermediate variable is required. 2) capture states, switch them by input variables (timers, outputs, ect) and generate appropriate bit variables indicating that the state is active - that is, each such bit is a unique coil - ( ) MB(N). 3) in a separate place (subrotine OUTPUT) determine which of the above bits activate the movement forward or backward of the motor, which bits of the state include loading or unloading, ect. That is, in this version of the program you must have N steps of the State machine, that activate N unique coils -( ) that control movement or other actions. That is, for example, variables that are activated in steps 4,6,9 - control the movement forward output. Accordingly, others for example 3,5,11 - control the movement backwards output. Such a program is well readable and you can immediately see that at some step something is wrong. And most importantly, in this case you can make absolutely convenient and comfortable manual control of any output signal.
  4. If TC input present in configuration - we can find temperature sensor inside V130 (and other plc type or I/O). Good quastion, i must to do some home work with PLC on my cave Some experiments i try to do in 2019... but only V1040 present on table at that time
  5. I will add some thoughts on your question. You did not specify the version of the Visilogic you are using. If this is the latest version then I recommend repeating your experiments in version 9.8.65 for the test. Another thing to keep in mind is the low speed of data exchange between the Visilogic program and the PLC. It is possible that in the process of movement PLC puts successive steps of movement and performs them. That is, state 5 of motion occurs but you cannot see it because the PLC is constantly generating the next point and moving to it. Try to add to the program immediately after the movement command the trigger that is set forever if state = 5 and you can see if it occurs or not. I also assume we have a bug in the Visilogic program and you found it. And then this question needs to be sent to support@unitronics.com
  6. It looks like V200-18-E3(or4)XB. Two DC/DC converter on the upper side of V200. It is normal temperature for this type of converter. Inside V700 in normal condition approx 7W of heat power is generated. 1.5A ---- 24/5V ---- compact DC/DC installed near power supply inlet. From known manual's if IP67 box is used - internal volume must be 9x bigger then volume of installated equipment inside, or input-output fans must be installed. High temperature is "standard" in modern equipment (This is not good, but there is no other way) . Main problem is not temperature value (no electrolitic capacitors inside V700), but temperature cycling that is destroyed lead free BGA chip installation.
  7. On one of the machines for metal laser cutting, I was asked to make a two-channel "speedometer" for coolant flow meters. All that was needed was an indication of two frequencies. Ironically this was my first Vision PLC installation in which I did not write a single line of ladder code .... I only created one HMI display
  8. In my opinion, this is the most accurate method of all possible in the PLC. This is because a hardware pulse counter and a hardware timer are used to obtain the resulting frequency. All other methods using ladder code, timers and even interrupts have an error related to program execution time. That's why I use this method and recommend it to you.
  9. This topic maybe helpful Or if it not help please contact to support@unitronics.com
  10. Test result on table with V130-33-TA24. No input and output active. Backlight =100% Downloaded blank project and no info on display ------ PS +24V Ips=76.8mA Downloaded real project with 10 subrouting and floating point calculation, no info on display ------ PS +24V Ips=92.3mA Reduce backlight from 100% to 0 % = approx -13mA in both tested project. Then downloaded code add approx 0.36W of consumption.
  11. This is a general trend towards energy saving. By turning off the extra light bulb, we are sure that somewhere it becomes easier for the electric generator and less emissions are released into the air Probably simplifying the code to the required minimum, we unexpectedly do something similar
  12. Please send this quastion to support@unitronics.com. In UID manual present only filter time 1 to 32ms. Then maximum frequency must be below 1000Hz.
  13. Thanks for the work done, I liked the formula and the minimum amount of code. I analyzed the subroutine and came to the conclusion that it will not work if the PLC is simply turned on constantly (the subroutine starts with SB2, which probably should not be there). Flex mentioned this in the first post.
  14. You must replace battery to new one and test. If it is not battery issue - you have hardware problem. It sound like one of problem from this topic
  15. Please try to use Info mode for test TX and RX messages in hex on HMI.
  16. So I will try to describe in words the algorithm for solving your problem, which in my opinion should work. Therefore, the first power-up of the PLC prompts the user to determine the start date of the weekly reports (it can be started in setup). After selecting the date and time, the user says OK. Further from this date, the PLC builds a Data Table of UTC-generated weekly readings (add 24*7*3600=604800s for the next week start) for the required max operating time. (After this max time log is stopped and user must define new period). After that, we compare >= the RTC to UTC with the next Data Table week start UTC countdown and set START Pulse for the log file create and start update week events if needed. At the same time START Pulse increment a row of the Data Table, rewrite to UTC variable the following consecutive next week countdown and PLC wait for it (Then START Pulse is disabled) . When you turn off and on the PLC, for example, in three weeks later PLC will have generated three empty files and wait for the beginning of the next working week and start append some info to the last created file. It may not be a perfect solution, but it is not afraid to turn off the PLC because it works on the condition that it is between fixed UTC readings compared with RTC. I will try to ladderize it on the weekend..
  17. State machines were probably known before the invention of the PLC. Thanks to Joe, this work of programming art has become a good tool for solving many typical PLC programming problems. At the same time, I think that an example of LadderArt is a piece of code presented by Joe in this topic It doesn't matter who the author of this code is. Its simplicity, self-sufficiency and usefulness for forum users are important. Flex formulated a good task, it interested me and probably many users of the forum. Apparently, the solution to this problem can also become a work of art, regardless of who finds this solution.
  18. Moved.... Some info from forum topics...
  19. I also think so. The solution of the problem set in the topic does not lie in the plane of programming, but in the plane of error-free recognition the moment of week change in case of random disturbances.
  20. Analyzing your proposed new terms, I will try to logically continue the idea and add a new term - Ladderart. Small tree (ladderrise) - should be cared for and watered. Mature tree (ladderage) - self-sufficient and fruitful. A product of art made of wood (ladderart) is something that will not change for a long time and will benefit everyone who looks at it. Probably a little too much philosophy ... But here on the forum I have already met many examples of compact, balanced and self-sufficient code in the Ladder language - Ladderart. Please correct me if I do not understand modern terminology enough.
  21. An interesting idea of a new word, and as always in mind games, the word means that we visually represent the text of the PLC program from top to bottom. Did I understand correctly what it means - to program in the ladder language or to turn thoughts into a ladder? But I like it.
  22. Accordingly, if you specify the week number in the year, the file will appear when the week number is changed. That is, the week number can be used to identify two or more consecutive weeks, even if the PLC does not turn on for a week, a month or more.
  23. Please clarify the task. Should the event be run during the day (or at a specific time) on a specific day of the week? Does the event have to take place the next day if this programmed day (days) has passed but the PLC has been switched off? Should the event fire once if the PLC was turned off several times during the selected day? Perhaps a few more conditions need to be clarified. I think in the Visilogic Help example V350_Week_of_the_Year_Calculation.vlp it is a good idea to use the even and odd weeks of the year as a reason to change the bit you need at the beginning of the week. Although perhaps my assumption is wrong. There may be a problem with the New Year's transition.
×
×
  • Create New...