Search the Community

Showing results for tags 'real time clock'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 84 results

  1. EA3 Micro Panel

    I want to display the current time of day on mt Micro HMI, EA3-T6CL. Is there a function for this? How can I get the TOD to display?
  2. Hello all, I have the need for PLC to calculate a giving time shift pattern, so if I start Monday 8am on a 24h prod basis, and the production run is 48h, the PLC should tell HMI finish time is Wednesday 8am, that is ok, the problem is, Production stops from Saturday 8 am, and starts again Monday 8am. Thus if I start prod run on Friday 8am, PLC should tell HMI (Got2000), production finish time should be Tuesday 8 am. I can read RTC, compare, do maths, but how can I miss or not take into account Saturdays from 8 am till Monday 8 am...that is my problem.   Any thoughts, ideas, are all welcome. Thanks.
  3. I am trying to display the time from an Accumulation timer. Using a data display object I am able to see the time in the following format 00:00:00.0000000. Is there a way to format the time without the decimal seconds I just want to see 00:00:00 (hours:minutes:seconds)
  4. Hello. I'm using OMRON NB Display Did someone already made time adjustment from NB to OMRON PLC? What I'm trying to do is to adjust time  from HMI to PLC. Since now I have done time sync from PLC to HMI using timer and data transfer. Now I would like to adjust current time in PLC using NB HMI. I know how to do it, but I'm some kind a lazy person. In our country there is a saying: " Don't reinvent things that already exists" Thanks.   BR, Andrej.
  5. Real world simulator

    When we simulate a plc program we have to manually input the changes in input(like magnetic reed switch) For example when a cylinder goes from up to down reed turn OFF and reed down turns ON Is there any program available where we can define such things that will turn on and off during the process automatically.
  6. I am not sure if anyone know any websites or sources ,to practice and program same as real projects. I have seen many websites but they are not realistic.
  7. Hey guys,   I know this is a topic that has been discussed before, but I am having trouble finding exactly what I am looking for.. I want to know the most efficient way to record data from my PLC to an Excel file on my PC. I want this to be done without the use of the PLC's webserver.  Specifically I am trying to record vfd speed every 10seconds with a time and date stamp. How can I do this?   Thanks, James  
  8. Hi All, I just take over a project which involve accurate positioning and movement up to 0.010mm(around 10 microns) of a servo motor. I found out that my motor always move to an incorrect position. Let's say I want it to move to absolute position of 5.210mm, I found out that it may move more till 5.235 or move less 5.190(something like that). So i start to check if I'm outputting correct pulse. Using CX-Drive, I connect to the driver then i found out that the pulse is correct and consistent(for example i use my pulse per revolution and pitch to determine how many pulses) Currently I'm using an incremental encoder and servo motor and my PLC cycle time is around 12 ms and my servo move at a speed of 0.66mm/s. So I was wondering if my PLC scan time will affect my accuracy in moving ?? I'm using a CJ2M PLC with CJ1W-NC413 pulse card , incremental encoder and a servo motor. I want to make sure is not software limitation or anything wrong on software side before I bring it to my mechanical team   Appreciate all inputs here and thanks!
  9. Good Afternoon, I am wanting to do two things with and ORMON PLC and HMI with CX-Programmer and NB-Designer. 1. I want to display the current time from PLC on HMI with the real time clock. 2. I want to be able to enter a time on the HMI which will be compared to the PLC time and will stop a process when when the entered time is equal to the actual PLC time.  If I can have some help with this that would be a great help. Thanks,
  10. Now I working on omron CP1H PLC, i'm receiving ASCII number from another PLC which is something like this  "#3031 #3030 #3030 #3030" which mean 01000000. How to convert the ascii number to real number or bcd without separate them? I know how to convert them which is using HEX but its turn out the number will separate into this 0100  and 0000.
  11. Hi, I am trying to convert a variable of REAL data type to DWORD. I 've tried using Real_To_Dword function which works fine if the real number is integer but when the real is decimal the function rounds the decimal number to INT first (I ve also read it in the instruction manual so no surprise here). I 've also tried experimenting with the function CopyRealToDWORD but again the outcome was not what I expected. Is there another way to convert decimal real numbers to DWORD without losing the decimal portion?
  12. So I have a plc program where most of the outputs are based on a counter that goes from 0 to 1000. The counter speed is adjustable and is generally set to run through a full cycle (count from 0 to 1000) anywhere between 0.5 to 2 seconds. The problem is, when I try to energize an output by using an EQU instruction, it will almost always skip the count because the scan time is not fast enough. I've been using a LIM instruction which has been working, but its not quite as accurate as it needs to be. I switched the counter logic to be continuous to try to make it faster which made it almost perfectly accurate... But only in the continuous task; it made the other periodic task significantly less accurate. I was curious if any of you had any tips on how to remedy this or just general help. I am still relatively new to PLCs and ladder logic so any advice would be awesome, Thanks in advance! Edit: The purpose of the counter is to cycle through from 0 to 1000 over and over again. My outputs actuate during a certain interval within this cycle (For example I would say actuate from 300 to 800 and it would stop and end once it hit those values via an EQU or LIM instruction). I wrote the logic as follows: First I calculate how many cycles per minute I want to perform, using that value I calculate how many times I want to increment my counter per millisecond. Then a timer is given a preset of the total cycle time. While that timer is running I continuously multiply the timer's accumulated value by the "cycle count per millisecond" that I calculated earlier; the resulting value is the current count that all my outputs are based on... Hopefully that makes sense, I know it's not the best but I could not figure out a better way of doing it and I know rounding is certainly making the accuracy worse. My hardware is: Allen Bradely PLC (5069 l306erms2), 5069-ob16, 5069-ib16, and a Kinetix 5500s2 Driver for my motor(s)
  13. SoMachine Motion Logic Builder V4.31. Can anyone guide me on how to read the execution time of the STL logic in my application? Thanks.
  14. DATE Instruction for CP PLCs View File Sample code to set the RTC on a CP PLC. Individual sections can be enabled/disabled. Submitter photovoltaic Submitted 03/12/21 Category PLC Sample Code
  15. DATE Instruction for CP PLCs

    Version 1.0.0

    94 downloads

    Sample code to set the RTC on a CP PLC. Individual sections can be enabled/disabled.
  16. FX1N sprinkler system control.

    Hello!  I have an FX1N PLC that I want to use to operate a sprinkler system.  It should have two functions.  1. 1x30 minutes of operation every day.  2. 3x10 minutes of operation every day.   Thanks for the help.
  17. Using sysmac studio, i get 4bytes binary data Data[24], Data[25], Data[26], Data[27] like this, the problem is that the 4bytes data represent my float data what can i do with that 4bytes lol If u see below images you can understand my problem.... thank you all,
  18. I have a function that reads ASCII code from a transducer, converts the code into characters and places the characters from the serial buffer into a string. Now, I am trying to convert the value in the string into a 64-bit float number. Any ideas on how to do that on the CCW? 
  19. Hello, I have a Sysmac project that contains two NJ controllers and an NA HMI. I am writing the current time to different variables upon completion of certain actions using the system variable _CurrentTime.  I noticed that one controller was logging the date as 1-1-1970, and went to sync the clock with my computer's clock via the Controller-> Controller Clock... menu.  Upon synchronizing and applying, the controller clock very briefly displays the correct time, and then reverts to 1-1-1970. I went to the second controller in the project, which simply had the wrong time zone setting, and attempted to change the time zone and apply. Whereas before it showed the correct time for the time zone setting, it now reverts constantly to 1-1-1970 as well. When I go online, I've also noticed the _CurrentTime variable is not incrementing; it is always 1970-01-01-00:00:00.00. The HMI displays the correct time, and I am considering creating a mapped tag that shares this time with the controllers, but was curious as to what could be causing me this issue. I am also aware that 1-1-1970 is the unix epoch. Any insight?
  20. Structure Text REAL constant

    Hello. I'm having difficulties of how to write REAL constant in ST. For example (Gap1 is defined as REAL): Gap1:= UDINT_TO_REAL(P_Cycle_Time_Value) / +1000.0;     RETURNS ERROR ERROR:   Conversion cannot convert from Integer Literal to REAL I have also tried 1000.0 If I use:  Gap1:= UDINT_TO_REAL(P_Cycle_Time_Value) / INT_TO_REAL(1000);  COMPILES OK My question.. How do I write REAL constant in Structure text? I don't want to use  INT_TO_REAL anytime I want to do calculations with constants.. Thanks. BR.
  21. The only thing I can find in help re using the buzzer is to use a multi function button. I want to use the buzzer as an alarm buzzer and turn on $SB13 or $SB14 from a bit in the PLC. Can anyone help please?
  22. Real to 3 decimal points

    I'm fairly new to Mitsubishi and I am trying to limit the amount of decimal places of a real value down to 3. I am using a FX3U CPU and the only thing I see in the manual is that real values are stored with approximately 7 significant figures. Is there a way to limit the amount of figures after the decimal point to 3 without converting to an int value? Also does restricting the decimal to 3 points on GT works change to PLC value at all?
  23. I'm working to fix/improve the functioning of a program running on an a PLC5/40E.  I think high Scan Times are a big problem with this current program.  ((Backstory:  someone added some quasi motion control, and it sort of worked for a while.  Now that it's broken, the operators of this machine want it back. ))  I'll keep my question simple, PLC5's are new to me: There are 36 rungs with CPT instructions as the sole output, a third of these instruction are executed every scan.  I'm going to replace them with MOV instructions. My question is, is there any sneaky PLC5 reason to do a CPT instead of a MOV?  Is there a better way to do this? The CPT instructions that execute move integer values to a data file used by the HMI to control the coloration of touchscreen buttons.   Thank you for your time. PS: I'm new-ish to this forum, please feel free to let me know if my question was asked correctly or not.
  24. Hi guys, I just starting to use Sysmac Studio. Its a bit confusing as I am currently used to CJ series PLC. Usually, we can use P_1sec, P_0_2s and so on to create a simple clock pulse timer function. However, I couldn't find the command or FB to do that in Sysmac Studio. Anybody could explain on how to do that in Sysmac? Thanks 
  25. The CC-Link system on a machine has been intermittently dropping out.  Normally the Link Scan Time runs at a solid 87ms.  When the system "drops out", the link scan time will increase.  Sometimes double, triple, or go up 10x. It happens when the machine is running or when it sits idle. There are 33 stations on the network.  The same stations do not always fault but sometimes all of the stations will fault at once (as seen in the attachment pictures.) We have changed the main QJ61BT11N, the processor, the Q62N power supply, the main backplane (base unit), all cards on the main backplane.  Is it possible for one station or one of the cables to create a network wide problem?  Any ideas thrown at us would be appreciated.