petrb

MrPLC Member
  • Content count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About petrb

  • Rank
    Newbie

Profile Information

  • Country Canada
  1. Program for CJ1G controlling servo motor

    Thanks guys. Program I posted before is from mentioned manual 10-3-2 Inching. I also tried Relative Movement with no luck. Can I use any FB from Omron library?
  2. Hi, I'm trying to set up PLC (CJ1G) to control servo motor. I'm using position control unit CJ1W-NC413, servo relay unit XW2B-40J6-2B and smartstep R7D-AP02H servo drive. I'm reading through manuals and feels little overwhelmed with information. Everything is probably there, but it's going to take lot of effort to put it together. Can I found example program somewhere? EDIT: When I put jumper to pin 25 (X axis RUN), motor shaft is locked and motor is holding position, so wiring should be correct. When I try to run a program, I can see that parameters are changing in CX-position, but servo is not moving. Please see attached picture
  3. Siemens S7 STL Basics

    Alright, if I try to draw this logic in LAD, it doesn't allow me and get error msg "The coil/assignment requires a preceding boolean logic operation", but in STL I can do it.
  4. Siemens S7 STL Basics

    That's what I would thought too, but then in this logic A     M      0.0 L     S5T#2S SD    T      0 =     Q      0.0 Q0.0 should be always on, but it is not.
  5. Siemens S7 STL Basics

    Thanks, but that's not what I'm asking. I know, if I want to use timer output, I have to use "A T0". I don't understand, why in first example status of Q0.0 depends on M0.0, but suddenly what I add additional condition (A M0.1), Q0.0 is not affected by first condition (A M0.0). Please read my post more carefully.
  6. Siemens S7 STL Basics

    SD doesn't affect RLO, RLO depends only on M0.0. I'm not really trying to program anything, I just wonder why it's behaving like this.
  7. Siemens S7 STL Basics

    Could someone refresh my memory how bit instructions works in STL in Siemens. A     M      0.0 L     S5T#2S SD    T      0 =     Q      0.0 Status of Q0.0 depends on RLO of A M0.0. If I modify a program little bit: A     M      0.0 L     S5T#2S SD    T      0 A     M      0.1 =     Q      0.0 Now status depends only on RLO of A M0.1, not on A M0.0 anymore. How's that? Siemens manual says: You can terminate a Boolean bit logic string by using =/S/R, which is not this case.
  8. Starting with Omron CX-P

    Thank you for great answer! Conversion is pretty easy, I'm just getting lot of data type mismatches warning (for example +C with UINT). So I'm trying to figure out, if it's an issue or if I the program how it is. You mean Siemens MB0 "compared" to Omron  D0? If so, Siemens uses both memory location and data type. Help for Omron CJ is kinda weird, there is lot of information, but it's hard to understand it. But I'm comparing it with S7 Manager help, which is exceptional. One more question about warnings. Why I'm getting duplicate bit warning for bit  used in Set/Reset? It's not wrong, it's just style of programming.
  9. Starting with Omron CX-P

    Hi, I've have few years of experiences with AB and Siemens and just starting with Omron CX-P. I’m upgrading CQM1H-CPU51 to CJ2M-CPU12 and would love to gain more knowledge about Omron. Right now I’m struggling with data types. I read through few topics here and found out this. It’s recommended to use CHANNEL (double word) and BOOL. But what if I need to use signed data type? Some function only supports certain data type. For example “+C” support only INT, but when I use UINT instead, it’s still working fine. Also some data types look same to me. CHANNEL – UINT etc. When typing constants # means HEX, & means decimal. Also I find out what letters mean in variables CIO (Core I/O Area), A (Auxiliary Area), D (Data Memory Area), E (Extended Memory Area, H (Holding Relay Area), W (Internal Relay Area). Is that correct? Could me point me to some topic or quick manual, about starting with Omron? Thanks for any advices