touyi100

MrPLC Member
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About touyi100

  • Rank
    Hi, I am New!

Profile Information

  • Country Canada
  1. Program Explanation TXD and RXD

    Hi there, I am fairly new to PLCs currently trying to connect an external serial device to the plc and trying to send an ascii string through the built in rs232 port. I called omron tech support today and they sent me a sample program. I was disconnected before I could ask some questions so if anyone could explain this basic program I would greatly appreciate it. The program starts on page 4, and is basically sending an the string <Hello> through the rs232 port. The problem is this program is based on the SCU-V1 so there are flags that are not being used in my case.  For rung 0 they are moving the hex #0 and #3111 to the SCU port. In my case since I am using the built in rs232 do I still need to MOV the #3111? I know the default for rs232 is #0 but not sure why they are sending to both. For rung 3 where they are sending the ascii " <" why is the destination word not stored in the data memory like the other rungs below it? Is it because this is the first string? If someone could clarify this I would greatly appreciate it. Thank You    Connecting CJ1W-SCU21_41-V1 to PC by using RS-232C.docx
  2. Omron and Smart Motor

    Hi, I am fairly new to PLC's and have been given quite the task by my group members. For our project we are using an omron cs1g, and trying to get the smart motor similar to the link below http://www.animatics.com/products/animatics/nema-34-3400-series/sm34405d.html from moog animatics to communicate with each other. The smart motor comes with the smart motor interface software which is sends the commands to the motor, similar to how omron has cx-programmer. The motor uses an rs232 port to connect to the computer, and we have a serial communications board for the omron with an rs232 port available. We noticed there was a built in sniffer in the smart motor interface program and when we sent commands, they came out as hex. Would it be possible to send hex directly from the PLC to the motor via the TXD instruction? I have not looked into too much because I am not sure if this is possible or not. The TXD instruction has a source word, a control word and bits to send which I am not too familiar with. For example 47 in hex would come out as G in as ASCII which starts the motor. https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=7&ved=0ahUKEwjUheqpharSAhWl5IMKHTSQBIoQFghAMAY&url=https%3A%2F%2Fwww.animatics.com%2Findex.php%2Fdownload-center%2Fcategory%2F20-user-s-manual.html%3Fdownload%3D4%253Auser-s-manual&usg=AFQjCNEhF0wln71-XJcXYLL9HMmQ3TnYhQ&sig2=zU0kcIkobaVvMmrXh8cZtg&bvm=bv.148073327,d.amc The manual linked here states on page 64 under "getting data rs232 port using data mode", in data mode the motor will simply respond to arriving commands it recognizes.   Would anyone here be familiar with smart motor and omron plc? I apologize if my post is all over the place there was a lot to explain. Thank You