Jump to content

Flex727

MVP 2023
  • Posts

    3,261
  • Joined

  • Last visited

  • Days Won

    236

Everything posted by Flex727

  1. Use a positive transition of your button push to activate a Time TE. Use the output bit of the TE to activate your outputs. Something like this: You appear to have the Horn coil in both rungs 1 & 2. THAT WILL NOT WORK. You can only have a direct coil in one ladder rung.
  2. The UniStream line does allow for more complex web pages to be built more easily, but with either the Vision line or UniStream line you will need to have the PLC visible to the internet in order to view a web page from a remote location. That's not a function of the PLC, but rather a function of your network. It's not the most secure method, but I usually just do port forwarding from the router that has the internet connection to the local PLC.
  3. Where are you getting a decimal point from? Everything in the context of this discussion involves integers only. Don't confuse the 4-20mA analog input with thermocouple or RTD inputs that provide temperature directly. Even with those, the input is still an integer with an implied decimal point.
  4. It's 16383. There are 2^14 counts, but it starts at zero, so the highest number is 2^14-1 (all 14 bits on would be 2^14-1, or 16383). This is what goes into your linearization block, though you would likely never notice it in the real world if your linearization was off by 1 part in 16384.
  5. Just reply with "Yes". It is suggesting that you clear all operand values, but isn't forcing it.
  6. This handy feature is available with Vision PLCs, but as far as I know it has not been incorporated in the UniStream line.
  7. Oops, for some reason I thought I was in the UniLogic forum. With VisiLogic, all operands are retained through power cycle or reset if there is a working battery in place.
  8. The first expansion I/O module always starts address at 32. This allows room for a potential Snap-In module that starts at address 0. Each (digital I/O) module after will start at the next increment of 16, regardless of how many addresses were taken up by prior modules.
  9. When you create the operand there is a setting to retain its value.
  10. SB 2 _AND_ SB 142? Do NOT use SB 142 here. SB 142 turns on when the Ethernet card is initialized. It will never activate the Ethernet card initialization function block. Is your PC on the same subnet as the PLC (i.e. does your PLC Ethernet address begin with 192.168.100.xxx)?
  11. Use SB 2 instead of SB 142 to activate your Ethernet function blocks.
  12. A few other items of note: 1) Do NOT place multiple logic threads in a single ladder rung, as you are doing in the Szamlalo subroutine. 2) Do NOT use Direct Contacts to call an HMI screen - use Positive Transition Contacts. 3) No need to call the Start-Up Display with SB 2 - it will be called automatically at start up. 4) No need to set or reset operands with SB 2. Use the Power-Up checkbox for MIs and SET or RESET selection for MBs.
  13. Not sure what you're trying to do here. All operands are retained through a power cycle (if there is a functioning battery installed). If you want the register to assume a particular value at start-up, then you use the Power-Up value to accomplish that. Looking at your program, MI 0, 1, & 9 have the power-ups checked. If you want MI 0, 1, & 9 to retain their last value, then uncheck that box.
  14. Hey @Joe Tauser, I notice you place an inverted contact of SB 2 in front of the SCAN_EX FB. I've seen other people do this also, but I have never done it in any of my hundreds of projects over the last many years and never experienced a problem related to the slave scanning. Is there really a purpose or any advantage for this?
  15. Briefly, (and perhaps over simplified), a Port is an address that is visible to the outside world. A Socket hosts the Port for the communications. You have 4 Sockets in your Unitronics PLC (numbered 0-3) and therefore you have 4 paths for communications over Ethernet. You can mix and match protocols as you wish, but you only have 4 that you can use at one time. Each of the 4 Sockets has a default configuration, but you can change that with a Socket Initialization FB. If you're going to use MODBUS TCP, you must have a MODBUS IP configuration FB for each Socket that will be using MODBUS TCP. Both the Socket Initialization and the MODBUS configuration should be activated with SB 2.
  16. Also, don't confuse Sockets with Ports. They are different and you need to understand what each does.
  17. I recommend leaving Socket 1 and Port 20256 for your communications with VisiLogic. You have 3 other Sockets and thousands of Port numbers - use something else.
  18. There are example programs that came with your VisiLogic installation that show you the proper way to set up MODBUS TCP communications. You can have a continuous connection with up to 4 MODBUS TCP devices by using the 4 available sockets. You will need to initialize the sockets with the proper protocol and port number, as well as set up your MODBUS IP configuration for each.
  19. Yes you are. Use MI, not ML. For the above ASCII String, you will need a vector of 3 MIs to hold the 6 characters of your string. (I believe you can use MLs and hold 4 characters per register, but why complicate things.) In the Read Row FB, you need to assign an operand to every column in the Data Table Row. You can certainly make the operands contiguous so that you have a vector to operate on later, but you need an assignment for each element.
  20. There is no simulator software from Unitronics. The PLCs are inexpensive enough that purchasing a PLC for development purposes isn't an undue burden. There may be some third-party simulation software, but I've never used it and cannot say if it is reliable.
  21. That would be logically impossible. You're asking the PLC to log to the file - it can't be read-only if you want to write to it. You can always change the file attribute after you remove the SD card from the PLC and transfer it to a PC.
  22. An experienced programmer should be able to do it in a few minutes (up to a few hours depending on the complexity of what you're logging). It can easily be logged to a .csv file that can be opened in Excel on a computer.
×
×
  • Create New...