Jump to content

KAMAMT

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by KAMAMT

  1. Ah! You nailed it. I do have a Reset in my ladder but it's at the bottom of my program and I haven't actually run all the way through completion as I'm going through debugging. I just let it complete a cycle and sure enough it loaded the preset into the current. Thanks!
  2. Hi all, I'm using a V570 controller. I have a number entry on the HMI to an MI so a user can enter in a value in minutes. The MI is then multiplied by 6000 (to get to 10ms units) and stored to a ML. This ML is then stored to a Timer using the ST PR function block. I then use a TA in my ladder. The preset value of my TA is correctly taking the value stored to it. However, the current value is starting at a completely different value. For example: MI5=60 ML5=360,000 Upon starting, TA5 current = 03:00:00:00 TA5 preset = 01:00:00:00 Now I believe that TA5 used to have a static value of 03:00:00:00 before changing the logic so that it can be changed. I have since changed it's default preset to 00:00:00:00 so it should clear out on power cycle. But for some reason it just keeps starting at 03:00:00:00. Any ideas as to why it would not have its current value starting at its preset value?
  3. Thanks, I ended up doing exactly that. I have it streaming 16 ASCii values to 16 MI addresses. I'm then taking and converting the ASCii values that correlate to the ones, tens, hundreds, thousands, and ten thousands spots and converting them to numeric. Then I'm adding all those together to get one overall numeric that I can store to a single MI address. I have a new issue however and I'm not sure if it's on the PLC side of things or the balance. I currently have a timer set for 1s. When the timer comes true, the PLC sends a request to the balance. My scan block follows COMS aren't busy. Then my ASCii to numeric conversions are done. Finally I reset my buffer when session is complete. This works for a period of time but randomly the value will increase by a factor of 10 or a factor of 100. It's almost as if my MI registers are shifting over a spot for a split second so instead of multiplying my tens spot by 10, I multiply by 100. I'm leaning towards a balance issue but I'm wondering if it could be part of my code where the buffer is not clearing.
  4. Hi everyone, I'm having issues communicating with a balance over RS232 on a Samba 3.5. I can send commands with no issues from the plc to the balance but cannot seem to receive messages. I believe it's in the way I have the formatting set up in the scan protocol. I was hoping someone could lead me in the correct direction. From the manufacturer, the message I should be receiving from the balance is in the form of: S_S_##########_gCrLf where _ is a space, # is a number, Cr is a carriage return, Lf is a line feed. I used a terminal program and verified that it will return a message like this just without the Cr and Lf displayed. All I want to pull out of this message is the 10 # values. If the balance does not use all 10 values, it will use a leading space. It is also possible to have a negative sign leading the number. Some examples of what I could receive are: S_S_ _ _ _ _ _11111_g or S_S_ _ _ _ _ -11111_g . It's also possible I can receive S_D_ instead of S_S_ but I think I can handle this through a second scan? I attached a picture of how I have the scan block set up currently. I've been trying little modifications for over a day now so any help would be great. Thanks!
  5. Hi, I have a system running a V570 that is programmed using visilogic 9.6.0. Basically I am looking at pausing a timer. How I have the timer set right now is as follows: MB1 TD1 -| |--------( )--- I would like it to pause whenever MB2 is true. For example, if TD1 is preset to 1 hour and it has been running so it only has 30 minutes left, I would like to toggle a pause button connected to MB2 to stop the timer. When I toggle the pause button back, I would like the timer to continue counting down from the 30 minutes. Is this as simple as this or do I need to store the current time when I pause and load it when I unpause?: MB1 MB2 TD1 -| |-------| / |-------( )--- I know this is very easy to test but the PLC is currently in use and I will only have a brief window to download so I would like to get it right the first try. Thanks.
  6. Hi, I'm still new to this so apologies if this is a simple fix. I'm using a V570 OPLC to send pulses to a stepper driver which in turn drives a stepper motor. I have it set up right now so that my O0 and O1 are set to npn so I can run them at higher frequencies. O1 is configured for High Speed Outputs (Step Control) and sends steps to my stepper driver. O0 simply sends a signal to my driver to reverse direction when I want to jog backwards. Right now I can run the system once but I want to be able to jog as often as I would like. I have tried two ways of addressing this problem but neither have worked. The easiest way would be for me to reset my current position DW, to 0 after jogging. When I do a store command after jogging however, nothing happens and I still retain my current position. The other option would be to send additional run commands. When I have multiple nets that have a coil to my run MB however, the system does not work at all. I am only able to jog when I have my run MB located in only one net. I would be thrilled if there is a way to reset current position DW (in step control high speed output) to 0. Sorry if this does not make sense. I can try to explain more if needed.
×
×
  • Create New...