Sleepy Wombat

MrPLC Admin
  • Content count

    2003
  • Joined

  • Last visited

Everything posted by Sleepy Wombat

  1. File Name: Scaling in CJ1 CS1 PLC's File Submitter: Sleepy Wombat File Submitted: 9 Aug 2004 File Category: PLC Sample Code The use of the old scaling functions SCL really suck when it comes to the new CJ1/CS1 PLC's mainly because it still relies on BCD etc....Today is so easy to use INT UINT values in the program i hardly ever use BCD any more..... Therefore I n Click here to download this file
  2. There is a screen saver function for the Panel view 5310. It utilises a AB logo splash. I would like a custom image to be the splash for the screen saver. The literature seems to suggest you can display a path to the screen saver image. This returns a blank text when i used on the screen. I did load an image into the project, however can find no way to point the screen saver to the image. Has any one else tried this/had any success with it. Very frustrating. Any help appreciated
  3. Custom screen saver on Panelview 5310 screen

    Thanks.. the manual was a bit misleading.. so I thank you for following up. Cheers
  4. CX-Programmer improvement requests

    Thought that this might be a good place to start for cx-programmer improvement requests... Perhaps...Omron might even take note of some useful ones and included them in future releases....( ) 1. Option to disable type checking in compile options 2. Ability to copy / export into EXCEL a cross reference report so that I can have the ability to print and format the report how i want to.... 3. I don;t mind the option to print in ladder view (ie WISYWIG) however it would have been nice in instruction weren't cut in half. 4. The ability to edit a symbol via the SYMBOL BAR at the bottom of a ladder logic page. Symbol Bar is enabled through Tools-> Options 5. The ability to show when offline the value of a Data Memory referenced in an instruction in its last state while in ladder view. This could be an option when going offline from the PLC to save a Data memory snap shot to be included with the program. (I know AB does it). Well thats a start, I hope that this thread can be a useful reference for Omron development if possible. Opps just thought of another... I use simple dialog mode with associated comment dialog enabled also, I would like the comment dialog box to be larger (or sizeable to my liking - and then remembered in this state) so i can see more of the comment and making editting easier. Another one - oh well... I think that the new switchbox utility is cool, especially for debugging a program. One minor improvemnt is that when you add channels to monitor a simple SCROLL bar or some form of indicator should show you that you have assigned more then 2 channels to monitor.
  5. Scaling Data in CJ1/CS1 PLCs...

    SLEEPY WOMBATS TIPS CLASS #101 The use of the old scaling functions SCL really suck when it comes to the new CJ1/CS1 PLC's, mainly because it still relies on BCD etc....Today is so easy to use INT, UINT values in the program i hardly ever use BCD any more..... Therefore I needed to find a way to scale Analogue Data. Probably 95% of scaling functions would be done on an Analogue Input or Output Data. The other criteria i set my self was to make it as easy to use as the Scale with Paramters Instruction as found in AB (newer models). So here it is..... USE THE ALL POWERFUL AND CONQUERING APR FUNCTION...... This is how you do it.... Firstly Setup the symbols eg D29000 = Setup Control Word for APR -- (we will set this to #0801) D29001 = Raw Data Min Value (typically we will set this to &0) D29002 = Scaled Result Min Value (Signed Value) D29003 = Raw Data Max Value (typically we will set this to &4000) D29004 = Scaled Result Max Value (Signed Value) Secondly Create a little logic that sets up the initial data words LD CF113 MOV #0801 D29000 MOV &0 D29001 MOV &4000 D29003 Thirdly..Any time you want to use the scale function simply set your Min and Max Scaled Values to D29002 and D29004 respectively before using the APR call The following will scale the Raw data to 0 TO 2000 The source data is in D0 the Destination is D1 LD CF113 MOV &0 D29002 MOV +2000 D29004 APR D29000 D0 D1 If you wanted to scale between -100 and 200 then the code would have looked like LD CF113 MOV -100 D29002 MOV +200 D29004 APR D29000 D0 D1 IT's that SIMPLE Please find an example below.... Scaling Cx-programmer File Link BTW if you delve into the APR function a little more you could actually use floating point data as well....
  6. Wireless Power Transfer

    Hi all, I am doing a project with a car on a rail (inclinator lift) with wireless comms between the car and the control panel for selecting the various stopping stations ie level 1 thru level 4. All good so far with the system... it works. The car has a battery for the wireless system power. however, i am looking at options of charging the battery when it reaches say station 1. The product that interests me is from wieldmuller - however they are really dragging the chain in releasing the product... http://www.weidmueller.com/132685/Products/Connectivity/Contactless-transmission-system/cw_index_v2.aspx I have contacted another company, power by proxi, and again they seem to drag the chain in getting back... http://powerbyproxi.com/products/proxi-point-150/ Has any one done something similar or know of an available product out there... Really only try to charge a damm battery, surely there must be other product out there... any response would be appreciated.. cheers Sleepy..
  7. CJ on Optic Fibre Ctrl Link ?

    Just need to confirm if the following configuration is possible.
  8. ntst nt11s

    Here is a copy of the old DOS version. I am not sure if it will work with newer versions of the NT11S though. nt11Se.zip
  9. About Power Cables :

    Yes What does it have to do with PLC's... BTW they are called "chokes". It is a ferrite coil around the cable to inhibit noise on the cables to maintain signal integrity  
  10. In electrical schematics I use the following RCD symbol...mainly because i have not found a simple generic one. What do u guys use ? Note in the attached pic on leg is the Active and the other the Neutral.
  11. need help with SCADA database. moving 50k points

    Is my math wrong, or did I miss something... You have 50 diff moulds. You have 100 diff cycle pattern for each moulds/colour combos. so that would mean 5k of data.. but if you mean that you had 100 CP per mould per colour then that is 50k. Then why would you x by 26 machines when it is a look up for a mould/colour combo.? woulndt the 50k suffice ? For comms to a machine A colour mould recipee will only consist of 100 data tags each time. (or a single array of 100 items). Once a mould recipee selected then simply transfer the 100 tags once only into the PLC. The PLC should run happily with set parameter until the recippe/mould is changed... CXSup can access database files, so might want to look at that. At the machine do they dial up the mould/colour id, or is it all set by the cx supervisor ? You can always test on a small scale first to test the water so to speak and check your code.
  12. There has been some great discussion regards NPN and PNP, sinking sourcing etc.... With Omron input cards they are bipolar.... so you choose the input type by what you wire to the common of the input card.. I always think of it simply in that if I have 24vdc coming in from the sensor for the input then the COM must be a 0VDC. Visa Versa... if 0VDC is coming in as the input then the COM must be 24VDC.... A PNP sensor switches the positive.. hint "P" A NPN sensor switches the negative... hint "N" If in doubt check the wiring diagram for the card to make sure you understand regardless of the IO card manufacture. However I have a bigger concern which was stated in the original post... Are you kidding me..... I hope that company has all the Public Liability and Professional Indemnity insurances up to date.
  13. Erroneous data @ 10 ms

    as a guess... nothing to do with the baud rate at all... you have now got the operator to input a real number with decimal point, the PLC might only be setup to expect an ASCII equivalent to a number and not a decimal point ... which in the case of ASCII will be a full stop character. so previously you would of had a string for 25 looking like 3235 which is a single word. where as now you have a string of 25.00 looking like 3235 2E30 30.. which is 2 and half word with a non numerical character thrown in for good measure the "." =2E... You we need to sort this out first. ALSO, I do not know how your PLC program works but you will also have to modify how 2500 will be interpreted / manipulated in your PLC Logic as well to get it to work how you wish.
  14. Sequence program

    What PLC model.. SFC wont work with all... you can use any of the above methods mentioned above by Cross or Bits N Bytes and OR simply use KEEP instructions or SET and RSET... If you think you need state logic...have you hand drawn out the state diagram ?\ Have you analysed all the what if scenarios ?
  15. OMRON HMI NT 20

    if the back light is gone, perhaps a local disty could replace. I am not aware of an easy upgrade. you might have to get the orig program and then rewrite for a new model screen. I would look at the NB series screen however the more expensive NS series is easier to program. Alternatively, there are many NT20S on ebay from china / us / singapore....
  16. Addressing Question CMP1A-40CDR-A-V1

    As per pervious post.... adding a little more info on the front of the PLC you will also notice the assigned addresses for the IO on the PLC. you will notice 0ch 1ch for inputs and 10ch, 11ch for outputs. ie as above post.. for inputs Channel 0 first input group addr 000.00, 000.01 --- through 000.11 next inpuut group Channel 1 then 001.00, 001.01 --- through 001.11 same syntax for outputs Channel 10 010.00, 010.01 --- through 010.07 Channel 11 011.00, 011.01 --- through 011.07
  17. Tutorial mr plc

    Why not drop the inference of Mr PLC and use Semens Tutorials..... That wont infringe on any copy right...
  18. Addition of more than 2 values

    LOL...
  19. Addition of more than 2 values

    Please clarify for me, and excuse my ignorance.... would not the CPT execute the function from left to right regardless ie A + B + C. A, B and C are variables so if A = 8, B = -2 and C =1 then the equation becomes 8 + (-2) + 1 = 7. why do you need the brackets to have CPT (A+B)+C... if you are simply substituting values then in this case executing B + C before adding A is doesnt matter as -2 + 1 = -1 then 8 + -1 = 7. however taking this further so for the following equation A + B * C using the above values the answer should be 8 + (-2 * 1) = 6 so to get the correct answer with CPT you must enter the formula as A + (B * C) other wise CPT would get an answer of 36. (ie (8 + -2) * 6 = 36) I understand why the parentheses are important in this instance but not the first example of A + B + C
  20. Software to integrate with encoder counter meter

    thats your answer... check out the communications manual for protocol development. There might be some examples for development of similar protocols in the download section / and or the communication manual might have an example.
  21. structured txt pid formula

    If you dont know how to use the inbuilt PID function, then even if you have a process engineer tweak it, i dont understand how you would understand an ST PID. BTW how can you tweak something that is not running, if you mean modify a PID equation then thats different. If you have the process guys pid you could write a ST your self using the standard math functions in the PLC. there is a lot of work involved in writing one from scratch, and you need to understand the engineering behind it. To be honest, I would suggest you get a dedicated standalone process controller (omron temperature) and use that for your pid.
  22. Emails from a PLC

    i believe that the smtp protocol, email, is only supported by the dedicated ethernet cards. BTW you never mentioned the PLC models...
  23. CX-Programmer improvement requests

    Hey Bob, The Memory view using Bin (2) format will show all the bits and allow forcing, however it is displayed in a contiguous format. Being able to open multiple instances of the same area starting at a user defined address would do the trick for you. The Switch Box utility is nearing what you want... however, it still feels limiting. I wish you could customize it more and display more info. Have used it when debugging a machine and want to confirm a signal is coming on from a limit switch, you can see the bit state transition from black to orange easily from a distance. (especially if commissioning by your self.)
  24. a hand held programmer would spin out a lot of the current crop of programmers/electricians.. beep beep beep beep beep beep (awesome programming with one of these in an office environment)....
  25. Protocol Macro

    What if you initialise the value of the result before you execute the protocol macro. Isnt there also a flag to indicate if the read was successful ? ie if not successful then write zero to the result. there is a port monitor /busy flag that you could use to make a decision on... lots of diff ways to achieve what you want...