Search the Community

Showing results for tags 'code'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 37 results

  1. Hi there! I've been looking for some fault codes table for the 1734-AENTR adapters, since I'd like to show a message in HMI with some information when there is a faulty adapter, but I haven't found anything on the internet. So my question is, is there any type of table like this for these adapters? Right now I have a PLC with some AENTR adapters in the program for testing, and since there is actually no adapter connected to it, I can see a 16#2024 error in the module properties, but can't seem to find that info in the module variables.   Do you guys have any clue on how to find this information in order to show it?   Thanks in advance!
  2. CP1L-EM

    Sorry its long !! I am recieving text from a GSM modem for text msg Send and receive (SMS) works ok but would be better if I could make use of the start code and end code. This way I could cut down on all the crap that is received when a text arrives. I get this  CMTI: "SM",0 I have it stored into D80 and I have that trigger a TXD that sends AT+CMGRD=0 and that tells the GSM to send the msg (The 0 is the current msg in memory) ------ The problem is that there is Carriage  Return and Line Feeds in the received msg ----      AS below ((AT+CMGRD=0 +CMGRD: "REC UNREAD","+19028991212","","22/10/20,16:57:54-16"  Hello this is the msg  OK)) When the PLC sees the carriage return it stops receiving data. And I have no start code or end code setup. (I am using characters received) The way around this is to set a high  character count in the RXD (More than the actual msg (More than the msg length)   The main issue with that is I get garbage in as the msg gets bigger. Its unreliable. I clear the port after each receive and that helps but still get the odd garbage. (Never get garbage when connected to a terminal prg). Any Ideas???? ps Even the Start Code is unreliable as it will start receiving a few characters late. Rob  
  3. Hi all,I'm completely new to ASCII and trying to figure out where I'm going wrong here.Application: I need to send 2d barcode data to a KGK Jet model CCS3000L Inkjet printer. Only protocol possibility is ASCII. PLC I have is a Micro850, and the only port option for ASCII is the serial port. I modified one end of a 2707-NC11 cable to connect PLC TxD to printer RxD, PLC RxD to Printer TxD, and PLC SG to Printer SG. I jumpered CTS and RTS at the printer connector, and the 2707 cable I'm using doesn't have wires on the Micro850 CTS or RTS pins.Printer company verified that I can just jumper RTS and CTS on their side and not connect their DTR and DSR pins (since I'm not using hardware handshaking). I don't really need any flow control for the application ( I don't think...again, ASCII noob here).Do the CTS and RTS on the PLC side need to be jumpered? Does the DCD pin need to be jumpered or connected to something if I'm not using handshaking?I downloaded the Micro800 ASCII read and write functions and function blocks from Rockwell library, and they seem to be working, except that I keep getting ABL error id "7". This error states, "Cannot complete ASCII send or receive because channel configuration has been shut down using the channel configuration dialog box." I have the serial port enabled and configured to ASCII, no handshaking, baud 9600 same as printer, no parity check, 1 stop bit, character length of 8.Any help in pointing out what I'm doing wrong or things to try would be greatly appreciated!   ASCII_TEST.ccwsln
  4. Trying to log into NA HMI, NA5-7U001B  Direct, using USB or Ethernet.  All attempts failed .. tho, it was easy to log into the NJ Controller, direct, with USB or Ethernet using the same PC. Then a window popped up.. saying the firmware needed updating in the HMI, and suggested launching the "update" from the same window... Then, after a few minutes.  a "update failed" was displayed on the window.. and the HMI screen changed to this: ..and the green LED went RED ... aaaaagh!   HMI no longer works... any idea why this happened, or the failure to log in happened.. or, what it will take to fix it? Please tell me it was something Omron did .... Thanks Much, Regards, ,Michael PS:  additional info..  I was using Sysmac Studio Version 1.1 .. because I could log in to the CPU (USB and Ethernet) and not the HMI.. I changed to another PC with Sysmac Studio Version 1.17 .. Now I was only able to log into the CPU with Ethernet.. USB login failed. .. and, so did any attempt to log in to the HMI (USB or Ethernet) It looks like if you use a new version of Sysmac.. better not have a device with  "old firmware" ..  I think it was the V1.17 that presented the window suggesting the Firmware Update ...  sigh!
  5. Hello everyone, I am working on a plc upgrade and the client provided the old code file which has the extension .gps. Can anyone tell me what type of code file this is? And second, is there anyone I could hire to open this file and create a pdf version of it for me? Thanks. Gppw.gps
  6. This may be more of a Zebra question than a PLC question but I will post it here. I am using Zebra's Network Connect to enable communication between a CompactLogix L13ER and a ZT410. My issue is that the QR Code omits the 5 elements of the array in Field 1 of the CompactLogix. I expect the first two elements in the array to be ignored per the manual but the first 5 has me puzzled. All the characters in the text shows up fine. I have attached what I am seeing. If you have a QR Code reader, you can scan the QR Code.
  7. Unconverted Ladder Code?

    Hi All, Please see attached screenshot: Whenever I want to save the ladder program or start simulation, this window pops-up. If I press 'yes' I loose the whole work. I tried to open existing program and modify it, but it did the same. When I clicked 'yes' I lost all modification and just the original program remained. (I made the program in the morning, opened and saved many times but it started popping this window later.) I work with FXCPU series, FX3U/FX3UC type, simple project in ladder. This worked well but now is not anymore. I use Melsoft GX Simulator! Can anyone advise why this is happening? It is very annoying! It is pointless to work on anything now! Many thanks
  8. Hi,     I'm trying to communicate Omron CP1E unit with PC via serial port using hostlink protocol.  I need to read the Timer/Counter SV value and write the timer/counter SV values to the PLC.  I'm able to use other C mode commands (like RC (timer/counter PV read), WC (timer/counter PV write) etc.) but when I give the command for Timer/Counter SV Read 1 which is R#, I get the response as IC (Undefined Command).   How do I write or read the timer SV Values?  Example command and response : @00R#TIMH001028*  (TIMH is the high speed timer, 0010 is the timer number and 28 is the FCS) Response: @00IC4A* Is is that CP1E doesn't support these commands? If so what is the equivalent command that I should send inorder to perform this? Please help.  
  9. Hi,     I am trying to establish communication between master and slave through modbus rtu rs485. But I am experiencing error code 7378h. I already tried to make the values of Request Interval Timer from 100 to 200 and Broadcast Delat Value from 50 to 100. But the error still persist. Any tips how to solve this issue? There is no error on the slave evices.
  10. Hi every one ! I cannot use register D128 - D255 in the program when I create a program that uses the Block function in the PLC mitsubishi FX1S, it gives an error :  A device of the device range set in the device/label automatic-assign setting or a device which cannot be used due to system reservation is being used.Help me,Thanks !
  11. Folks, we have a set of Mitsubishi Q12PRHCPU (redundant) running effortless since many years. CPU-A as standby and CPU-B as Control. Recently we noticed BATT low alarm on CPU-B. So we arranged for a spare battery Q6BAT and started the procedure as per manual(attached procedure and flow chart). We did memory copy from Control to standby (as prescribed precaution) and did the Reset of Standby PLC CPU-A. Memory copy from B to A completed successfully 100%. But the BACKUP LED did not turn Green from Red & Error LED kept flickering on standby CPU-A. CPU-B remain in Control but backup LED turned RED. From system monitoring we found that there is a Error 6000 (FILE DIFF.) observed in One of the .QPG (program 00-MDBUS.QPG). We tried to reset it but were not successful. We are surprised that why does the program differs when it was copied from CPU-B to CPU-A using the memory copy. Still we did the VERIFY and found no difference between the programs in CPU-A & CPU-B.  Can anyone explain the cause of this issue and the solution. Please note that the CPU-B is still in control and plant is running. Backup LED on both CPU are red which means (redundancy loss) and error LED on standby CPU-A is flickering RED. There is no error in the CPU-A (Control) -we checked this using the GX Developer. Also attached here are the image of the error and error help. Thanks in advance. Battery Replacement procedure.pdf Battery Replacement procedure-Flow Chart.pdf Error.pdf MELSEC QCPU ERROR CODE 6000 FILE DIFF.pdf
  12. Hello, I need to connect multiple barcode readers (SICK CLP510) to a PLC (FX3GE-40M) for a university project. I need a minimum of 3 bar code readers, but only have one operational, connected via an additional modul for the use of rs-232. The only other port I can use is a miniDin 8, which is a build-in rs-422 port. Because this is a university project, it needs to be as cost efficient as posible. All the readers are CLP510 (pin-out attached bellow) Thanks Becky Pin_out___wire_colour___signal_comparison_CLP100_CLP510_CLV60x.pdf
  13. Hello, I need to connect multiple barcode readers (SICK CLP510) to a PLC (FX3GE-40M) for a university project. I need a minimum of 3 bar code readers, but only have one operational, connected via an additional modul for the use of rs-232. The only other port I can use is a miniDin 8, which is a build-in rs-422 port. Because this is a university project, it needs to be as cost efficient as posible. All the readers are CLP510 (pin-out attached bellow) Thanks Becky Pin_out___wire_colour___signal_comparison_CLP100_CLP510_CLV60x.pdf
  14. Hi everyone! I have a question to all of you guys - do you ever use any software or online tools to manage your automation/electrical engineering projects? I have worked in a number of companies and have seen various scenarios, from using excel tables to run multi-million dollar projects to using proprietary SW for every little tiny project. Unfortunately I do not have experience working for any major big integrator and am very curious how projects are managed at this level (and if every engineer likes the way it is handled).  Additional question - does anyone have ever used a software to automatically generate the PLC code? I know some companies develop products to generate the "skeleton" of PLC program and I think it is a great thing to have.
  15. Hello. I am working on a pilot project building an automated RV park. Our goal is to have people sign in online, or in person at a kiosk. Make their reservation, payment, and get their confirmation e-mail. In that e-mail, will be a QR, or Bar Code, that when scanned at the gate opens the gate, and starts a light that flashes at the site they rented. Power will then be turned on at that site, and a timer in the process will begin, based off their rental time. Once their time has expired, the power at the site will be turned off, controlled by a PLC, and relays.  So I am looking for help in all directions. I have some leads on some plug-ins for Wordpress that offer reservations, and other plug-ins that do Bar code production. As far as the web part I have that covered. We can generate a custom barcode, or QR code based on individual rentals and those can be sent to customers. So what I need is someone to help point me in the right direction of equipment that can speak between the online Barcode process and the PLC to allow a process to begin when scanned. Based off their rental parameters their power is turned on or off. Perhaps a SQL query in some form? I haven't used it, but am aware of its capabilities, and this does seem like an application where it would be used. Is there anything that you have used that are tried and true? I know it's a strange request, just hoping someone bites. Thanks in advance for any ideas, I look forward to solving this puzzle, one piece at a time. 
  16. I have a compact logix with a major fault. Please see my attached file for the complete fault message.  Code 20 array subscript too large. or control data type to large or invalid. Has anyone observed this issue before.  The PLC is a compact logix model.  Every time, the controller is switched from program to run the major fault occurs within 5 seconds.  The fault can be cleared but then it comes back in a few seconds.  I have been told by my tech that no program changes have been made.  Could there be a hardware/wiring issue? Thanks much Document_1234.pdf
  17. Calling a Timer in ST code.

    Dear all, In a state machine I have certain states which need to have a timer to handle timeout errors, that is, if the FSM remains too long in a certain state without getting the conditions to transition to another one, it will produce an error. My current code is using a TOF with an input variable that will be triggered upon entering the state, I call the function block, and then turn the signal off so it starts counting: TRIG_STOP_TIMEOUT := TRUE; TTO_GLOBAL_CYCLE_STOP(IN:= TRIG_STOP_TIMEOUT ,PT:= T#15s ,Q=> ERR_GLOBAL_STOP_TIMEOUT ,ET=> CLK_GLOBAL_CYCLE_STOP ); // TOF TRIG_STOP_TIMEOUT := FALSE; For some reason, the counter does not work. I don't know if I should trigger the signal on in one scan and off on the next. I thought about using the system 1s clock as a trigger (SM412) but the description of the TOF function block states whenever the input is ON, the output will be true, and the timer will only start counting once the input is low. The other thing I thought about was to use the TOF_E instead, with the clock as a trigger, and just set the enable signal when I'm in the state, but I'm not sure it'd work correctly, either. Any suggestions?
  18. Hi all, This is my first post here, I read through the FAQ, searched the Allen-Bradley forum and this one for my question but couldn't quite find what i was looking for. My main questions is: Is it possible to programmatically change the service code of a MSG instruction?  It is possible to change the class,  instance and attributes but the application I'm currently writing would be a lot simpler if all I had to create is one instance of the MSG block (and its data) . The only thing stopping me is the service code.   Edit: I'm using a CompactLogix 5380-L306ER   Any input is greatly appreciated!
  19. Hello  I am currently trying for testing purposes an Mitsubishi Servo Amplifier M4-J4-TM, which has a Servo motor (also from Mitsubishi) controls to integrate in Beckhoff's TwinCat 3. The controller is directly connected to the computer via EtherCat and is also communication between TwinCat and EtherCAT device is detected. But when I switch to online mode and try to control the engine manually, it always comes the following error message:  Error 51 'TCNC' (500): 'Axis 1' (axis ID: 1): The axis or the drive is not ready for positioning (error code: 0x4225)!  Somehow I miss a step to the valid activation of the engine. ?? In the documentation of Beckhoff and Mitsubishi there is no indication. Actually that should work like that. Has anyone ever had a similar problem and knows about advice? Thanks in advance in advance and many greetings
  20. Hey, I have a 1763 L16BBB...when I plug the 1762IF20F2 analog card in, I get a 0189h error code. Any help would be appreciated. Currently looking at doing a bootp on the plc to get online...no ip
  21. Hello everyone, I'm currently trying to communicate  via ethernet with a Parker drive IPA15-HC. I'm using a 5069-L306ER CompactLogix 5380, revision 30.011. There are add-on instructions that allow you to control the drive, but since they're really basic I'm trying to use message instructions to get more data out of it.  The knowledge base provides a zip named IPA_AOI_Rev4, that includes the add-on instructions and the program you should download to the drive to use them, this is the current file downloaded in the drive. Now, I've tried different msg configurations: CIP Data table read, CIP Data table write, CIP Generic copying the values in the examples and I always get the same:  Error Code: 16#0001 Extended Error Code: 16#0000_0125 That extended error code is nowhere to be found, not in the Logix designer online help and not in rockwell's knowledge base. Any idea?
  22. Hi All, I am pretty new at electrical design for PLC control panels. We are a UL508A shop, so this is the code I refer to most. Something struck me as odd when I was trying to size wire for this control panel. UL508A 28.3.1 says this: The required size of the field wiring terminal shall not be less than 14 AWG (2.1 mm2) and shall be determined by: a) Calculating the required ampacity per 28.3.2 – 28.3.6; and b) Determining the minimum field wiring conductor size from Table 28.1 having a corresponding ampacity that is equal to or greater than the required ampacity from (a). How can the minimum wire size be #14 AWG? We use #16 AWG for wire to the PLC modules? Are we breaking code or is there something I am missing? Also, understanding code books can be difficult. Is there a website or place I can go to get a plain English translation? I feel like I will read a sentence over and over again to try to understand what they are saying, and feel like there's is a much easier way to say it than the way it is written. For example, "28.3.1 b" ……...what is it really saying?  
  23. Hi everyone - my first post here.  I have a customer with a SLC5/01.  The controller is 1747-L511.  Battery seems good.  The fault LED is flashing.   I tried to connect to it using RSlogix500 and I got this message (photo1).  I selected 'Load From EEPROM' and got this notice. (photo2) Customer has the printed ladder but I can't tell which data types are what. everything is just numbers - no B's, no I's and no O's.  the timers and counters are just numbers too. Luckily the printed ladder has a cover sheet, which led me to the PLC2.(photo3) The rack has two 8 channel inputs and 2 8 channel outputs.  I would like to replace everything with a micrologix 1400 or something, if I could translate the code. Can anyone advise on this matter please?      
  24. good day! I would like to put some ascii code in a device: D3000..D3009 has to be filled with 0x5F54 0x4F5F 0x4150 0x6F73...  ("_TO_APos")  When I fill it using an ascii-input-field in the designer and press "enter" it works. But I would like to put this text automatically in D3000 and following register, when the user press a switch-object. I tried with an 10 actions  "keycode" but I don't see how to say that the key code shouls be saved in D3000. Can somebody tell me the best way to fill more word devices with only one object switch? Thanks in advance   MEBoerner