News:

  • March 05, 2021, 04:47:26 PM

Login with username, password and session length

Recent Posts

Pages: [1] 2 3 ... 10
1
Do-more CPUs and Do-more Designer Software / Re: How to set up Ascll
« Last post by Greg on Today at 02:35:55 PM »
PLCwannabe,

Actually, I think franji1 meant to say for you to use the STRGETB "Get Bytes Out of a String", not the STRPUTB. I still get those swapped because it seems counterintuitive when you are going one way instead of the other. So...
  • Execute a STRPRINT to put whatever ASCII text you want into, say, SS0 (e.g. "My dog has fleas.")
  • Execute a STRGETB to get the ASCII bytes out of SS0, starting at Index zero, and the Length can be, e.g. fixed, or maybe SS0.Length, and stuff them into, e.g. V100 like franji1 said. In the example string I mentioned, this will stuff "M" (ASCII 0x4D) into V100:B0, and "y" (ASCII 0x79) into V100:B1, etc. If you looked at these in Data View, in ASCII format, you'd see them.
  • Execute the MWX that will write this data, starting in V100, either a fixed length or the variable length, to your Modbus RTU slave/server.

All this should work just fine unless your 4-line display is expecting the ASCII characters in a different order (which has been the case plenty of times in my experience). Of course, if they show up weird on your display, then you may have to use something like the PUBLISH instruction to swap bytes.
2
Do-more CPUs and Do-more Designer Software / Re: How to set up Ascll
« Last post by franji1 on Today at 10:48:04 AM »
Do STRPRINT to a string (say SS0).  The new editor for STRPRINT lets you format it easily.  Make sure it's the way you want in SS0.

Then use STRPUTB to Put bytes from SS0 to your data buffer for the MWX instruction, say V memory, e.g. V100

Then use MWX to Write Holding Registers referencing that V100 for the number of WORDs.

You may need to tweak the last BYTE and make it 0.  The easiest way to do that is you can use SETNUMR V100 0 for the whole buffer before you do the STRPUTB.
3
I'll have to play with it some but that is sounding much less intuitive than what I was referencing in RA. I've pulled stuff out to notepad in RA but you get all of the extra noise. Building rungs via CL eliminates that, just need the instruction name followed by each tag the instruction needs, then the next instruction, branches, etc. Only difference from doing them individually in RA vs doing multiples in Excel is the need to surround it with SOR and EOR. It's clean with no jibberish or noise.
4
Do-more CPUs and Do-more Designer Software / How to set up Ascll
« Last post by PLCwannabe on Today at 09:34:45 AM »
So I've got a new 4 line display  that uses modbus rtu comms  but has ascii characters.  Unit ID is 2. I've done a bit of modbus stuff, but never ascii stuff.  What is the quickest way to set this up?  For now i just want to write the $now .second value to the display so i can see it working.
5
Do-more CPUs and Do-more Designer Software / Re: Connecting new plc via ethernet
« Last post by PLCwannabe on March 04, 2021, 11:03:02 PM »
The link light was on for sure, not sure if the activity light was blinking or not. We'll try again tomorrow.
6
Do-more CPUs and Do-more Designer Software / Re: Connecting new plc via ethernet
« Last post by Greg on March 04, 2021, 01:35:41 PM »
PLCwannabe, is the Link light ON for the BRX PLC? And is the Activity light blinking?
7
Do-more CPUs and Do-more Designer Software / Re: Connecting new plc via ethernet
« Last post by PLCwannabe on March 04, 2021, 10:56:11 AM »
The PLC is new out of the box. Long story short: No internet access,remote location, 1999 model computer, not sure of the windows version,it does have ethernet and it seems like we can change the ip of computer. So we set the ip to 192.168.1.2 and the netmask to 255.255.255.0.  The ethernet adaptor does show up in "Select ethernet  Network", but we still can't get the plc to show up.
 (I'm troubleshooting this via phone for a friend in remote location)
8
Do-more CPUs and Do-more Designer Software / Re: Connecting new plc via ethernet
« Last post by franji1 on March 04, 2021, 10:22:34 AM »
Like franji said, most of the time when I run into something similar, it's because the wrong adapter is selected inside of NetEdit.

Designer now has the ability to set the IP address.  It lets you pick your set of NIC(s), then broadcasts on all those selected, and even recommends a possible IP Address and warns if you pick one that may be "in use" - more advanced than NetEdit.
9
Do-more CPUs and Do-more Designer Software / Re: Connecting new plc via ethernet
« Last post by RBPLC on March 04, 2021, 09:59:38 AM »
Like franji said, most of the time when I run into something similar, it's because the wrong adapter is selected inside of NetEdit.
10
Do-more CPUs and Do-more Designer Software / Re: Connecting new plc via ethernet
« Last post by franji1 on March 04, 2021, 09:20:24 AM »
New PLCs come with no IP Address.  Is this truly new, out of the box, or just new to you (i.e. it may already have an IP Address)?

What Network Adapter(s) do you have selected?  There is a button on the bottom of the Connect dialog.  Type in all the information here or just take a screen shot of it by selecting that dialog, hitting Alt+PrtScrn, then paste it in Paint, save it as a file, then add it as an attachment to your reply here.  That should give us enough detail about your networkless computer.

Pages: [1] 2 3 ... 10