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.


Topics - Lorne Van Dusen

Pages: 1 [2] 3
16
Technical support / SETSYSTEM 16
« on: January 16, 2018, 01:53:37 PM »
I have a question about the use of SETSYSTEM 16
I am only using inputs 1 to 32 and outputs 1 to 32 as actual I/O
I am however using outputs 34 to 128 as internal relays that the Master PLC reads with HOSTLINK commands

If is use SETSYSTEM 16,4 will it effect outputs 34 to 128 in any way

17
Technical support / Servo Motor and SC
« on: January 10, 2018, 09:31:20 AM »
I have been asked if there is anyway to control the position of a Servo motor based on the HSC value
I need to use a 180 degree servo motor and ave it at one end when the encoder value is zero and at the other end say wen the encoder value is 4000.
Does anyone know if this scenario this even possible to do with a FX series PLC?

18
Technical support / Forcing an IP address
« on: November 27, 2017, 01:54:08 PM »
I have a question about forcing an IP address into the PLC without having to re boot the PLC
I understand the concept of setting the IP address to 0.0.0.0 to allow the PLC to accept an IP address from the router.
This all works fine so the print #4 command actually places the IP address into H$ example 192.168.0.133 and also sets a relay IP_READY
 
However if the router is not present I want the PLC to accept the address as 192.168.1.15:9080
So inside the program I am using a timer that will turn on after 2 minutes if the IP address does not change from 0.0.0.0
it calls a function that first loads  checks to see if H$ is empty
Then I use DM[800] = 192 DM[801] = 168 DM[802] = 1 DM[803]= 15 AND DM[804] = 908
Then I load that into H$ so far everything works out OK
However even in the manual it says that you need to reboot the PLC
So my actual question is how is it that the router can change the IP address without having to reboot but the program can't. Is there any command I can use that would emulate the signal that the router would send to the PLC to change the IP address?

19
Technical support / INTRDEF
« on: November 03, 2017, 02:04:13 PM »
I know that this may sound like a dumb question but I would just like some clarification
During the First Scan
If I want to call Interrupt #3 on the Rising Edge of Input 3 I would use INTRDEF 3,3,1
Can I then use INTRDEF 3,18,0 to call interrupt #18 on the falling edge of input 3

20
Technical support / Dip Switch 2
« on: October 31, 2017, 07:55:18 AM »
I have another crazy question for tech support
I noticed that on the new FX series PLC & Smart Tile that dip switch 2 is no longer used.
If this is true then is there any way possible to access the status of dip switch 2 to be able to access it as a user defined setting?
A user dip switch is a great feature to have on any PLC

21
Technical support / Device ID
« on: October 30, 2017, 11:02:04 AM »
I am working on a Remote I/O setup on a FX2424 and have been searching through the manuals but I have been unable to find how to set the Device ID within the program.
I want to make sure that the Master is always 01 and that the slave PL is always 02
Is there a way during the first scan to set this value in software?

22
Technical support / Protecting the TRiLOGI program
« on: October 25, 2017, 12:02:31 PM »
I have been playing around and have now got the TRiLOGI software into a new Windows 10 tablet
The PLC is plugged into a wireless router
I set up the view protect so that all the custom functions are hidden
However I still have full access to all the other features.
Is there anyway in which to have the software on the tablet as well as the program and make it so that it only has viewing rights and not have the ability to make any changes?
This then would allow me to give the tablet to someone that only needs to monitor the program but not be able to change/print or save to any where.
The final result is that I need the tablet solely for viewing and nothing else

23
Technical support / Using a Tablet on the FX series
« on: October 18, 2017, 09:42:07 AM »
I have a general question and I am open to any suggestions either from tech support or any other users.
My company wants to start using tablets in place of hand held text displays to be able to change value in the DM'S as well as to view the I/O online.
At this point I have chosen a Windows based tablet over an Android one as I felt it would be better for some things and it comes with Windows 10.
What way would someone suggest it be connected to the PLC? Some of the PLC'S will be connected to a router and therefor can be connected either via the web or by the wireless on the router. However a lot of them will not be connected to the outside world.
So I am guessing that the over all best way is to connect it to the serial port then have TLserver running on the tablet.
Open to any suggestions.

24
Technical support / When t use delimiter
« on: September 26, 2017, 07:06:46 AM »
I have a quick question on when you need to use a delimiter in TBasic

I understand that if I want to shorten a section of program such as
IF A>B  THEN
    THEN C=D*5
ELSE
    C=D/5
ENDIF

Can be shortened to IS A>B: C=D*5:ELSE:C=D/5:ENDIF

However if you only have one IF statement and it is used to either SET or Clear I/O is the delimiter needed.
IF SUMCV >= 27
  SETIO SUCT27
ELSE CLRIO SUCT27
  ENDIF

IF SUMCV >= 27 SETIO SUCT27 ELSE CLRIO SUCT27 ENDIF ' Is a delimiter needed in this case

Lorne



25
Technical support / Unlocking a FX Plc
« on: September 20, 2017, 06:40:45 AM »
I have been experimenting with embedding a password in the PLC so that once it is connected to a router unauthorized people will not be able to access it. I used as an example U$ = "LOCKPLC" then SETPASSWORD U$
This works perfect however we also use a FP4030MR text display to change setting in the PLC which of course will no longer work when plugged in due to the PLC having the password turned on.
Is there anyway possible to have the text display send out the string to unlock the PLC during power up.
Or is there any way t unlock the PLC if a specific bit is turned on.
Don't worry I have a function that automatically resets the password every day.  

26
Technical support / IF THEN
« on: June 14, 2017, 01:33:19 PM »
I am still a little confused on the proper use of a IF or a THEN statement
Below is an example of what I wanted to accomplish but failed
I only want the FOR  and TESTBIT function to work if DM[535] is greater than 0 and I was trying to avoid using a GOTO statement to bypass it.

CLRIO CBP 'First Clear CBP
   IF DM[535] > 0 THEN
FOR N = 0 TO 7
   IF TESTBIT (DM[541], N)
IF TESTBIT(DM[537],N) =0
   SETIO CBP
ENDIF
      ENDIF
NEXT

27
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

28
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

29
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.

30
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?

Pages: 1 [2] 3