Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lorne Van Dusen

Pages: 1 ... 3 4 [5] 6 7
61
Technical support / Turbo Mode
« on: May 26, 2017, 07:23:12 AM »
I just thought I should let you know that there is still a bug in the transferring of a program when using the wireless
If you click on use turbo transfer mode the program will just hang up for ever and you must hit abort to reset then do the transfer without clicking on use turbo transfer mode.
Software Version 7.11 build 4
Fx-CPU F91.5

62
Technical support / reversing bits
« on: May 25, 2017, 06:07:57 PM »
I did a search on the Internet for how to reverse bits and was surprised to find out how many times people have asked that question however most answers were for a C or C++
is there a simple way to reverse the bits in either a 8 bit or 16 bit value stored say in DM1 in TBASIC Fx series plc
example dm1 = 11100000 the result should be 00000111

63
Technical support / Re:Blue Tooth
« on: April 28, 2017, 02:38:04 PM »
You are correct in stating that Ethernet is becoming the most widely used interface on PLC'S nowadays.
Everyone is trying o find a low cost high speed and reliable 2 to 4 wire protocol to add external devices to a PLC
Like I mentioned earlier I never did use Mod-buss but I did use the Siemens Profi-buss many times as well as the Omron Hostlink on what they called industrial Ethernet which by the way worked quite well and was quite easy to set up in the PLC buy setting up how many words to send and how many to receive and the addresses of the words. I must include the I installed the units in what is clased as very noisy environment with very large VFD drives as well as gasoline engines running near by and everthing works great.  
So I guess I should look into using the Ethernet Port on the Super PLC.
However I am a little vague on how can I use the PLC as a master talking to a remote PLC as a slave and use the Web App at the same time when there is only one Ethernet Port.      
So I think my next project should be a master slave setup to use as remote I/O

Lorne

64
Technical support / Re:Blue Tooth
« on: April 26, 2017, 10:42:37 AM »
I have used both industrial Ethernet as well as Blue Tool modules that connect to the RS485 ports of a PLC
Omron has such modules.
I will look into a adapter as you suggested.

At the same time I was quite disappointed to find out that you have not included things like Can Buss as this seems to be the most widely used two wire protocol used today    

65
Technical support / Blue Tooth
« on: April 22, 2017, 06:04:44 PM »
Is there any way to connect to the PLC via Blue Tooth.
I have been asked by a couple of customers if there is such a think as a Blue Tooth connection and app for the Super PLC.

66
Technical support / Re:Reseting Multiple Relays
« on: March 08, 2017, 06:52:11 AM »
Gary this is the most comprehensive and detailed answer I have ever received from any Tech Support line.
Your description of the For Next Loops is well written and documented.
I have printed it out and will spend some time going over all your examples.

Great response and thank you very much  

67
Technical support / Re:Reseting Multiple Relays
« on: March 06, 2017, 09:33:38 AM »
Again thanks for the expert help
I must admit in all the years I have been programming PLC'S I really never used a FOR loop as 90% of my programming was done in Ladder Logic and the rest was done using the built in functions supplied by the PLC manufacturer so I was a little confused on a couple of things.
If I wand to clear an area of DM'S then I would write
FOR N=7 to 22 meaning DM[7] to DM[22]
 DM[N] =0 // the DM tells the program that it is a DM area and the [N] is what is used for the variable and the =0                tells the program to set all the locations to a value of 0

Is the correct so far?

Then if I want to clear a group of relays say from relay 273 through 321 then I would write
FOR I = 18 to 20 //  this should be relay 273 to 289, and 290 to 305, and also 306 to 321
 RELAY = 0  // the RELAY tells the program that it is the Relay area and the is a variable and the =0 means the value to set all the relays to

So if I am correct then the letter after the FOR can be any variable letter from A to Z  then the start and end address the the area DM, RELAY etc. then the Value to put into the area. Is this correct.

You may help me to become half decent TBASIC programmer one day.

 ;D

68
Technical support / Re:Reseting Multiple Relays
« on: March 03, 2017, 11:10:07 AM »
I guess I jumped the gun on this one as I figured it out on my own.
The main problem was I was dividing the numbers by 8 because of working with the FP4030MR when I should have been dividing by 16 to come up with the channel number so the actual formula worked out as follows.

FOR I = 18 TO 20
  RELAY[18] =0
NEXT
  ENDIF

69
Technical support / Reseting Multiple Relays
« on: March 03, 2017, 09:00:29 AM »
Is there a simple way to reset a large group of relays in TBasic?
The manual describes how to reset single bits 0 to 15
An example would be I need to reset relays 273 through to 310
From what I have learned so far I think it should be something like this.

DO I USE FOR N = 273 TO 310 // 273 to 310 are the individual relays but the channel number would be 35 to 39
OR DO I USE N = 35 TO 39 // // so this is where I am confused
RELAY[35] = 0

Would this be the correct way?

70
Technical support / Re:Defaulting a PLC
« on: March 02, 2017, 11:55:13 AM »
I wish to thank you for the very descriptive answer.
I totally forgot the fact that we use the Web App
I now know how to write a document for my other office on how to completely clear a PLC back to default.
I will write a small program (Blanking Program) using your example
FOR I = 1 to 6000  ' all User FRAM data for Fx PLC
    SAVE_EEP 0, n  ' clear all the FRAM to 0
NEXT

I am assuming that the above program will also insure that all Defined Variables will also be cleared.

I will then instruct them to first turn off dip switch 1
Next transfer the Defaulting program then recycle the power to the PLC

The Web App is a different story. I am still working on that portion and the Web App with be the same for all of our PLC'S

71
Technical support / Defaulting a PLC
« on: February 28, 2017, 04:23:41 PM »
I am working with the FX2424 plc and I am wondering what is the simplest way to completely clear a plc back to the Factory Default condition. With other plc,s I have worked with it was as simple as creating a blank program with only an End statement With other Plc,s you also had to clear the retentitive memory area.

What sequence would you recommend to put a FX2424 back to the factory default. ???

72
Technical support / Re:Variables
« on: February 23, 2017, 06:50:08 AM »
Thanks I now understand.
I actually thought that A$ & A# were in the same memory area and that the $ or the # just told the program what format to use.

73
Technical support / Variables
« on: February 22, 2017, 01:58:34 PM »
While I was viewing all the resent posts I figured I should ask the one question that has been confusing me when it comes to the variables in the TRi PLC
You have A to Z, you have A# to Z# and you have A$ to Z$
I am confused about A to Z
If I understand correctly  A# to Z# are for storing floating point numbers
and A$ to Z$ are mainly for storing ASCII strings

Do they take up the same memory locations?
Can you use A to Z as well as A# to Z# and A$ to Z$ within the same program or would there be a conflict ?

Lorne

74
Technical support / Re:DM TO ASCII
« on: February 22, 2017, 01:46:48 PM »
After reading this post I was wondering
How can you load a ASCII character into a DM and how any can you load into one DM such as DM[116]
Example would be how many DM'S would it take to hold "HELLO"  

75
Technical support / Re:Creating a FIFO
« on: February 22, 2017, 06:09:16 AM »
Gary i guess I was in too much of a rush to test the program.
Once I took the time and studied what you had sent me I realized what I did wrong.
Your program works well.
Again thanks for your help  :)

Pages: 1 ... 3 4 [5] 6 7