sb234

MrPLC Member
  • Content count

    13
  • Joined

  • Last visited

Everything posted by sb234

  1. Hi, I am trying to create a program for the 5U that can communicate to 2 or 3 VFDs (individual control, not broadcast) using the inverter commands (IVCK, IVDR, IVRD).  My code was fine for the FX3u, but when converted to 5u and extra field is added for 3 monitoring M registers indicating if the line was executed and whether properly or not.  We are looking at several written points to the drives and many monitored points (during different conditions).  Unfortunately, I run into issues where the communications to the drives drop out. Has anyone successfully done this or know of a good reference?  I've looked extensively and have not found one. The examples in the FX5 User's Manual Serial Communications manual are extremely basic and don't provide enough detail. Thanks, Steve
  2. I have one more question on my project (I posted previously a few weeks ago - and THANKS! for the help). I need to transfer bit and word data via my Twido ethernet port to a Modbus master. It looks like the EXCH3 and %MSG3 commands must/should be used. It appears that these commands can only be used to transfer word data. My question is how to transfer bit data (in consecutive %M registers) to a word. An example in the manual shows: %MW100 := %I0:16 what I would like to do is the following: %MW100 := %M80:16, where the 16 consecutive bits following %M80 would be stored in %MW100. But, that is not allowed. So, I was wondering if anyone had any suggestions on what I might do. Thanks, Steve
  3. FX3U 485 Modbus Slave

    No problem - I appreciate the input! I did recheck my wiring - I actually wound up connecting to FX3Us through Modbus and things are working at least better. I'm having success reading (M) coils, but so far not holding (D) registers. I'm working with Mitsi on a resolution - which hopefully will be soon...
  4. FX3U 485 Modbus Slave

    I'm using the FX3U-485ADP-MB module set up as a slave, but am not seeing any activity out of it. The ironic part is I just used one a few days ago as a Modbus master (a bit more complicated) and that went relatively smoothly. My modbus master is a 2wire 485 device and I've accordingly jumpered my send and receive terminals (A's together and B's together) at the PLC and set the slave module to 110 ohm resistance. The module shows it is powered, but the RD and SD lights never illuminate. I've even put in the simplest example program from the manual with no success - it's shown below: LD M8411 MOV H1081 D8400 (9600 BAUD, 8 DATA BITS, NO PARITY, 1 STOP BIT) MOV H11 D8401 (SLAVE MODE) MOV H1 D8414 (SLAVE NODE ADDRESS) MOV H11 D8415 (EVENT AND ERROR COUNTER AND EVENT LOG ARE STORED - HEAD ADDRESS DEFINED BELOW) MOV K100 D8416 (COUNTER AND LOG DATA STORED STARTING AT D100) I'm not getting any data stored in the D100 area. If anyone has any advice on this - I would appreciate it! Thanks, Steve
  5. FX3U 485 Modbus Slave

    I'm just using channel 1 - not doing any other comms. The ADPRW command is only used for Modbus master. The manual says you'll get error code 217 (illegal command) if using it with Modbus slave. I've tried both the default settings of register mapping (Mitsi to Modbus) and also custom settings using the D8470 + registers where you set your register type, quantity of blocks and then the head address (i.e., MOV H4 D8470 - 4 blocks/64 registers of M coils ; MOV K100 D8471 - head address of M100), but haven't had any success with either yet.
  6. Analog addressing

    Hi, I'm finally making progress on my system (S7-315 w/ OP177B). I do have a few more hurdles though. I'm trying to add in the analog input addressing and am having a problem. Before, I had inadvertantly preceeded the address with a "P" and was getting an error. The hardware configuration says the 2 channel address range is 288...291. So, I'm trying to address the two channels as IW288 and IW290. When I do this I get a message that says some blocks cannot be downloaded to the CPU. In the software the module is configured as 2-wire 4-20 mA and the "key" on the module is set the same (setting D). Any suggestions on how to properly address these inputs (I'm using Step 7 Lite)? As always, I would greatly appreciate any and all help! Thanks, Steve
  7. Assigning SoftKeys in WinCCFlexible

    Of course, the solution presents itself right after I posted. I'm not sure what I did differently - I don't believe anything, but now the editor starts correctly.
  8. Hi, I have another newbie question. I need to assign several F and K keys on an OP177B, but am having difficulty opening the editor for the keys. All of the keys would be for global use. When I open the Template and click on one of the keys, I get no response rather that the editor for that key opening. Can anyone tell me how to open the editor for the keys? Thanks! Steve
  9. Step 7 - Entering a Label in LAD

    Thanks! I was paying too much attention to the manual that shows a connection to the power rung.
  10. Hi, I am a newbie to Siemens PLCs and have an easy one. All I am trying to do is insert a Label into my program. Entering the JMP command works fine. In the network below, I can enter a matching Label, but it is not connected to the power rung. I am not seeing a way to connect it and I get an unconnected T branch error message when I try to save the new rung. So, how do you connect a Label to the power rung? This is such a small thing it's a little embarrassing to ask, but I've looked through all of the references and tried different things with no success. THANKS! Steve
  11. Hi JC, There was a message that said that operation was not available for my processor. The good news is I did figure out how to map them one at a time, which was pretty easy. Now I'll have to wait and see if I have any comm issues using the EXCH and MSG commands. They look pretty straightforward. Thanks, Steve
  12. JC, Thanks for the help. I'll try what you have suggested. It looks like the brackets are used as an indexing device, but only one register can be done at a time rather than an entire record or multiple registers. Thanks again, Steve
  13. I'm new to Twido programming and need to find out how to access data within a table. In this case, I have a table of 100 records with 10 fields in each record. So, for example I would store this data in consecutive registers between %MW1000-%MW1999. The most recent record data would be in %MW1000:10, the next would be %MW1010:10, etc. Through an operator interface, the operator may select to view any of the 100 records. My question is how do I write that as an instruction? Its easy enough to know the 5th record is in %MW1040:10. All of the examples I've found show instructions where specific registers are addressed. Obviously, here the head address will always be variable based on the requested record number. I usually program Mitsubishi processors which have an index register just for this situation. Thanks for any input!