kuncorow

MrPLC Member
  • Content count

    21
  • Joined

  • Last visited

Community Reputation

0 Neutral

About kuncorow

  • Rank
    Sparky

Profile Information

  • Country Indonesia
  1. How to create password for Omron PLC

    Hi Nguyen, Thanks. I've just tried yesterday at my customer's site. It worked. Best regards, Kuncoro Wijaya
  2. How to create password for Omron PLC

    Dear guys, I'd like to create a password for 2 PLCs: CQM1H-CPU11 and CPM1A. Can anybody tell me how? BTW, I'm using CX Programmer 8.0. Your help is much appreciated. Best regards, Kuncoro W
  3. PLC Real number

    Hi Gambit, Colin, I am now programming a FX2N for 2 axis: servo control and ac motor (with encoder) control). So I use many floating calculation. But I just found out that FX2N floating will only able to do 3 digit after the dot. (eg: tangent 65.841879 will produce 2.231, when I calculate using Excel it produces 2.229458). Both calculations must be converted to radian degree first. Then when I use it for later calculation, the end result will be different, even after 1 digit behind the fraction dot, sorry I don't know what is the correct terminology of 1 digit after the dot). Is it really the capability of FX2N to do the round-up of floating calculation up to 3 digits only after the dot? Do you guys, have any experience in this? Thanks in advance. Best regards, Kuncoro Wijaya
  4. How to register keywords on FX2N

    Hi Kiwi Nate, Yes, I have tried using decimal number (0-9), 3 and 4 digits. But still can not. Do I have to switch the toggle switch to Stop, instead of RUN at the FX2NCPU hardware? Look forward to hearing from you. Thanks, Kuncoro W
  5. How to register keywords on FX2N

    Dear guys, Can anyone inform me how to register a keywords on FX2N-48MR PLC. I've tried to register using GX Developer 8. But a pop up windows appear saying "The keyword setting is wrong. Input the correct setting". Your help is very much appreciated. Thanks a lot. Cheers, Kuncoro w
  6. Origin Search (Home Position Search)

    Thanks Panic, So, there is no function to do a home position search? How should I do to make a home position search? Or, should I define it manually by jogging the servo? Or should I make a special program to do that search? Excuse me for my asking, as I usually use a positioning module with Omron PLC, whereby an Origin search is a standard function. Cheers, Kuncoro W
  7. Dear all, I am using FX2N-1PG to control a servo motor/drive movement. Is there a method to do Origin Search? I can only find Home Position Return Start. Can I use this? As far as I know, home pos return can be used after we have defined the home position point. But, I maybe wrong. Your help is highly appreciated. Thanks a lot. Cheers, Kuncoro w
  8. Modbus (PMCR) and Modscan (Slave?)

    Hi Jay, Thanks! I've been able to view the data on Modscan after several test and reading through the Manuals of CX protocol and ModbusPM5 provided here. I'd like to thanks you guys on MrPLC, sample program from PMCR as well as download code, so that I can quickly learn on the CX protocol and PMCR. Cheers, kuncoro w
  9. Modbus (PMCR) and Modscan (Slave?)

    Dear all, I'm opening up a new thread for my current testing of Modbus. Hope it's okay. I tried to use Modbus protocol for SCU21 (It's from Jay/Sleepy Wombat) using CX protocol and connect it with Modscan. On the ladder program, I use a sequence No. 6 (Master/Writing 1 word). I'd like to write on the Holding Register Address : 40100. I use D1000 for the source DM, as follows : Example: Write #3332 in to slave no 1 at address &40100 (or #9CA4) Logical port no 1, Port RS232C no 2, Unit CJ1W-SCU21 no 0 (SCU +10) Source D1000 #0004 4 words D1001 #0001 slave n°1 D1002 &40100 Address D1003 #3332 Write data But I don't see any data on the Modscan. Is it because I made a mistake on the address of D1002, or is it because Modscan is waiting for a slave not a Master. So should I use a sequence on the slave? About the port setting, I set it the same as port 1 (User setting, Protocol macro, full duplex, hold). Can anybody point out where is the mistake? PMCR, look forward to hearing from you. Thanks in advance, guys. Rgds, kuncoro w
  10. Hi PMCR, Thanks a lot! I tried your new program this morning (my time zone) and still with CR+LF end code, it didn't work. But when I changed it to CR+CR, it was working. Still don't know why LF was not sent by my PC's Hyperterminal. However, it has shed me a light on how SCU, CX protocol and PMCR work. I guess I should try to connect it directly with the live device on site. Now I must move on with the Modbus experience, I have downloaded Modscan and will try it today. Hope you will not get bored when I post another situation. Thanks again PMCR ! Cheers, kuncoro w
  11. Hi Bits, PMCR, After checking the trace result, compare it with the text file that I use to send via hyperterminal, and finally I check also the hex file using FreeCommander. The trace result got two "CR" or 0D and 0D. While in the hex file, I check it is 0D and 0A hex. Below attached are the screen captured file. Curious, I tried again several times, it still got two 0D hex. While the other data are received correctly. I tried to change the protocol and change the terminator to CR+CR instead of CR+LF, in the hope that DM000 will store the data, but still it didn't store any data, just #0000 (until DM200 above) What could possibly go wrong? Really confused.. Edit_PMCR_Example_17_Oct_08_with_MORE_trace.zip
  12. Hi Bits, Thanks for your correction. It should be <h> + (W(DM 0000+1),*) + <t>, without . It appeared, because at first I want to make it bold, but then I just changed the color of +1, and I forgot to remove the . Here is the trace (screen capture) and psw file. I think as the trace can get the data, so the cable is correct. But the data are not stored at DM0 and above. What will be the problem? Thanks, Edit_PMCR_Example_17_Oct_08_with_trace.zip
  13. Hi PMCR, Thanks for the coding. I tried it, but still the PLC didn't get the data from the PC. The contents of DM0 to DM250 above are still #0000. I have two questions: 1) Will the data sent by PC stored at PLC DM, starting from DM0 and then incremented until DMxxx (the total no. depends on when the SCU21 receives end character CRLF). BTW, I tried to re-create the message data, but I can't make it like yours <h> + (W(DM 0000),*) + <t> Instead I get as follows : <h> + (W(DM 0000+1),*) + <t> How to interpret it? Are the above the same? Or the one that I make, means started from DM1 ? is it the same if I make it at the message address <a> section? 2) Is the cable that I make using a correct configuration? I attach the pin configuration, where I do a jumper between RTS (pin 4) and CTS (pin 5) of the PLC. Also I do jumper RTS-CTS (pin 7 and 8) and DTR-DSR (pin 4 and 6) FYI, I don't connect directly with PC sending out the data, instead I use a text file and then send the text file using another PC with Hyperterminal application to SCU21. I also attach the port setting. BTW, I use CX Protocol ver 1.8 (just installed today..) Hope you can point out where is the mistake. Thanks . Kuncoro W
  14. Hi PMCR, Thanks for your fast response. Yup I guess from your name, you are the master of PMCR and CX Protocol. Yes, I am very new to CX Protocol. However, I am familiar with Omron PLC programming. I just got this job assignment, which is just to convert the ASCII data from a PC (the existing application is already in it) and then send it to a DCS using a Modbus RTU. Both from RS-232C serial comms. So the company has provided me CJ1M-CPU12 and CJ1W-SCU21 with CX Protocol. The data from the PC is one way direction (sending only) and always start with "K" and end with "CRLF". I have successfully simulated it using hyperterminal on my laptop. But when it comes to create a protocol using CX protocol, I got confused, such as: the header (h), terminator (t), check code ©, length (l), address (a) and Data. When I receive should I just use receive message only or do I need to use send and receive. These are some of the things that confuse me I have read the manual of SCU21 and CX Protocol, but still confused. It's a kind of help when I read many posts of yours and others here at MrPLC today. I now understand a bit, though haven't yet to try it again. I have briefly read Jay post on ASCII generic, maybe I can use. But still a question whether I can do it right, if i don't know to create the message and its components. Or at least make it works likes hyperterminal. When I can overcome this (receiving the data from the PC), I still have other task to convert it (do some multiplying with 1000 dec for some data) and then send them to DCS using Modbus RTU (a one way direction too, from the PC to DCS). All data has to be sent using Holding register (address 40000 above). I guess I need to do it step-by-step, try on one end first, convert and then try on the other end. Hopefully you can enlighten me. Really need your helps. Thanks a lot, Kuncoro
  15. Hi Jay, Sleepy Wombat, I need to connect a PC (Personal Computer) using serial RS-232C Connection with my CJ1W-SCU21. I'd like to create a protocol using CX Protocol. The PC is sending the data in one direction. I have tried to connect this PC with my laptop and read the data using Hyperterminal and it works fine. I can get all the data sent by this PC. I'd like to create a protocol using CX protocol that works similarly likes Hyperterminal, however I don't know how. Likes the start character, data, length, end character and checksum. The data is like below : "K 01 AB #01 12CT03,KY00 5625 62.6 0.00 1098 904 1136 2996 1601 1235 1033 0 0 CR LF" All in ASCII. Based on the documentation the start data should be "K" and end characters are "CR LF" or (0D 0A hex). Using CX protocol, I create a new protocol, new sequence, new step and receive message with header "K" and terminator "CR LF" and tried to connect with the PC, after creating a ladder using PMCR command. But never succeed. Attached is the sample protocol, perhaps you can show me which are incorrect. I tried several protocol creation and never succeed, then I use a no protocol mode, using RXD command, and it can read but overflow. Do you know how exactly to create the correct protocol? I think CX protocol can make something works like hyperterminal. What check code that I should use? Is the header and terminator correct, just like that? Sorry, I really confused Your technical guidance is really appreciated. Please Thanks in advance. Best regards, Kuncoro W