Jump to content

Isakovic

Privileged Member
  • Content Count

    171
  • Joined

  • Last visited

  • Days Won

    11

Isakovic last won the day on November 6 2020

Isakovic had the most liked content!

Community Reputation

33 Excellent

About Isakovic

  • Rank
    UniGuru

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1,961 profile views
  1. If you need bit for one scan every second you should use transition contact in Gabriel's example, Felx's example will also work with normal contact. I don't know why this function was omitted from system bits in UniLogic, it is present in VisiLogic and I believe it is often used. Now I have a question here which method is best practice. In documentation for VisiLogic it is suggested to reduce the number of transition contacts, so I personally use one timer like Flex posted but with normal contact wherever it is needed in program. Is this still an issue in UniLogic or we can simply use fre
  2. In similar project I had some time ago I used HSO in Step Control mode (not PWM), and frequencies for acceleration and deceleration are calculated in linearization block and copied to register for frequency, effectively the same thing you did. I remember having those issues that output would start with high frequency and motor couldn't speed up but can't say for sure what the solution was. When stopping are you ramping the frequency down or just set it to 0? Maybe put a delay after setting run bit if this is allowed. I'm not sure what you mean by another source.
  3. People are shocked when they find out what a terrible electrician I am.
  4. Maybe try using an auxiliary data table as a buffer for reading/writing instead of modbusing directly tables PLC uses for logic. That way you can verify if data is valid, if not repeat synchonization. This may slow down your process if mistakes are frequent.
  5. I guess it should work, I never tested it with my own PC. In the ladder before MB2 you can place condition DW0>3000000 so it won't update unrealistic time. I think you also need to account daylight savings time and your time zone (this comes down to adding Nx3600 to DW0).
  6. If I understand manual correctly this Master Clock can work as an NTP server. There is a function in VisiLogic called RFC-1305 for time synchronization with NTP server, there is also an example. It works fine, but if something goes wrong and server returns 0 it will reset PLC clock to midnight 1.1.2001. Just make sure to have some logic preventing this. Or if wiring allows it use digital input as Ausman says, that will take less programming time and be pretty accurate for this case.
  7. Oh I see it now! If the PLC and Hama are powered from the same supply both CH1 and GND on the PLC module will effectively be on the ground potential. Now I suspect AI08O also has GND and negative power terminal connected, so switching terminal places would not work. But will it work if separate power supply is used only to power Hama (not referenced to the ground), and other supply is used for current loop and PLC?
  8. I'll jump into this discussion because I am little confused here. More so after reading other quoted forum posts. Why wouldn't HI 98143-20 work? From the technical description I would wire it like this: Like any other two-wire 4-20mA transmitter. Is something not right here?
  9. You can search this on the internet for detailed explanation. It means that Integral component has maxed out over time and is contributing 100% to PID output. Maybe integral time is too slow or system cannot reach setpoint fast enough. If this makes oscillations or any other problems you can force Integral component to take some other value, there is a function block for that in PID menu.
  10. If there is a possibility of cylinders colliding might I suggest using position sensors or limit switches as conditions in your program. It shouldn't be a big investment, but it will be safer than only timers.
  11. The way that Sargani explained in post number 2 should work. Yes you can (and should in this case) read several registers in a row. If in "Modbus Master" setup you define tag as an array of 16 bit integers, let's say of length 10, PLC will read 10 consecutive registers from Modbus Slave. Can you post part of the program with code for making 32 bit float from 16 bit ints, with setup for Modbus so we can help you find the problem?
  12. Hello, I need to add two columns to an existing Data Table, in VisiLogic this can be done without losing values, I'm not sure how it works in UniLogic, I remember once editing it and all values went to 0. Can I add a member to Data Table struct and retaining values in old columns? I would back up old table, but problem is that I can't read the values in online mode and back them up, I get this error: Connection to plc was over Ethernet, ladder works normally in online mode so I wouldn't say it's a connection issue. If new columns cannot be added without losing values, my se
  13. I like your style. It's more efficient, I have separate bit for every Modbus command. Will give this method a try.
  14. I'll explain the problem I had, maybe it helps somebody. I have several controllers that need to have synchronized RTC, and there was a problem that time update didn't work properly. After some troubleshooting I found that "Status" variables need to be defined in order for function blocks to work. This does not work (usually): This does work: Both cases compile the same without error or warning. UniLogic version 1.28.34 PLC USP-070-B08
×
×
  • Create New...