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
1
Technical support / Reading a string using MODBUS RTU
« on: February 24, 2023, 07:43:35 AM »
I have a third party device connected to a FX series PLC that uses the MODBUS RTU protical. The developer knows how to read the values of the Inputs, Outputs, Internal Relays as well as the DM values. However is there any way they can read what is stored in say A$?
The A$ will show a 20 character text message such as A$ = "OPEN EMERGENCY STOP " Can anyone tell me how they can read the contents of the A$ using MODBUS RTU commands?

2
Technical support / Bit Shift
« on: March 09, 2020, 11:35:58 AM »
I was reading the tbasic manual and came across the LSHIFT & the RSHIFT. The explanation shows and example of LSHIFT as being LSHIFT ,n The i is a DM[n] or RELAY[n] etc then you can add a , and a number equal to the number of channels that you want to shift. So if you want to shift Relay channels 2 to four you would LSHIFT RELAY[2] , 3 so far so good. However if I want to shift just RELAY[2] by one bit I would use LSHIFT RELAY[2]. My question is what is the simplest way to shift left by 2 bits. Do you have to do LSHIFT RELAY[2] then again LSHIFT RELAY[2]
example LSHIFT RELAY[2]
LTSHIFT RELAY[2]
OUTPUT[1] = RELAY[2]
I would have thought that there would be a way to enter the number of shifts such as LSHIFT RELAY[2] ,1 for number of channels and a second , and the number of shifts.   

3
Technical support / People Counter
« on: February 13, 2020, 09:11:05 AM »
I had some spare time and decided to show a simple people counter circuit that emulates an incremental encoder in a ladder circuit. I am hoping that this may help some new comers to help understand the use of ladder logic as well as some Basic.
This program shows how to store a DM32 set value as well as the DM32 count value into EEPROM and to move the stored value back into the original DM32 areas after the power comes back on. This may not be the most ideal way to count people or things but it does give an example of the use of edge triggered bits as well as latching relays and how to use a DM value as a up down counter.

4
Technical support / Example of a complicated ladder diagram
« on: February 03, 2020, 12:01:05 PM »
I figured that there must be some new comers that may be struggling with build more complicated ladder circuits so I have included a documented way of building such a circuit. I hope that this helps some new comers out there

5
Technical support / 16 BIT TO 32 BIT
« on: January 23, 2020, 12:58:32 PM »
Is there a simple way to add two 16 bit values to make it into a 32 bit value.
Example I need RELAY[1]  and RELAY[2] to be a 32bit value instead of two separate 16bit values

6
Technical support / Test Bit for greater than or Less than
« on: January 09, 2020, 02:14:01 PM »
I have RELAY[1] that uses the first 8 bits 0 to 7 and only one bit is on at any time

I have another RELAY[2] that can have one or more bits 0 to 7 on
I need to turn on a bit that only turns on if any of the bits in RELAY[2] is greater than the bit in RELAY[1]
Then I also need a different bit to turn on if any bit that is of lower value than the bit in RELAY[1] regardless if any bit that is higher than RELAY[1] is also on.

7
Technical support / NETCMD$
« on: March 01, 2019, 12:15:12 PM »
I need someone to clarify something for me.
If in my program I am using the NETCMD$(2, _____)to send or receive information in and out of port 2
It's my understanding from reading the manual that the Ethernet can use the vertual COMM port #4
Do I just change the statement to NETCMD$(2,____) to NETCMD$(4,____ for all the NETCMD's

8
Technical support / Suspending a program
« on: June 27, 2018, 12:45:07 PM »
I am working on a program that is monitoring various inputs and outputs
Inside each of the functions I check to see if there is an error and if so I call a function
that shows the message on the LCD screen which function failed.
What is the best way to prevent the program from exiting that function until the PLC is restarted?
I originally used a long DELAY to hold it but eventually it does exit.

9
Technical support / 16 or 32 bit DM confusion
« on: June 22, 2018, 10:46:31 AM »
I had some spare time and decided to read the manual again and I found an issue that seems to be confusing.
The manual shows 2 examples Decimal IF DM[1] <> -1234 CALL 5 : ENDIF and in hex IF DM[1] <> &HFFFFFB2E CALL 5 : ENDIF
Now its my understanding that the value -1234 or FFFFFB2E are 32 bit values
So why does it allow you to use DM[1] which is 16 bit instead of using DM32[1] which is 32 bit?

10
Technical support / Doing a search in the program
« on: May 04, 2018, 12:52:51 PM »
Does anyone know if there is an easy way to find a actual relay or output without finding every single word or relay that has some of the same letters in it?
Example lets say I have a relay # 147 and it has been defined as (Fault) but I also have relays defined as Fault_1 through Fault_50.
When you do a search for "Fault" the program will stop ant every single thing with the Fault in it including any text in any comments.

11
Technical support / Two PLC'S on one router
« on: April 05, 2018, 11:52:05 AM »
I am having an issue when connecting two PLC's to the same router
I am guessing that I need to change one of the settings in the router.
In my setup one PLC has an ID of 01 the other PLC has an ID of 02
If I power each PLC up separately there is no issue they each get a different IP address
such as 1 gets 192.168.0.130 the other one gets 192.168.0.161
However if both PLC's power up at the same time then the both show the same IP address of example 192.168.0.130
The router shows two devices with the same IP but different mac address

12
Technical support / Simulation of Clock
« on: March 06, 2018, 08:03:02 AM »
I am developing a program using multiple on and off times and would like to know if there is a way to test it on the simulator without having a PLC connected.
I have tried to do things like TIME[1] = DM[1] then putting the value in DM[1] but that doesn't work.
Cant find how to adjust clock on the simulator.

13
Technical support / Auto Negotiate IP
« on: February 26, 2018, 10:56:00 AM »
This is just a general question in regards to PLC scan time as I figured it would be a question that might necessarily get asked by someone.
If you set the IP address to 0.0.0.0 to allow a router to assign a IP address to the PLC and a router is not connected or for some reason is powered off does it affect the scan time of the PLC as I would assume that the PLC is constantly queering the router for a IP address?

14
Opinions & Feedback / Fantasic Tech Support
« on: February 22, 2018, 12:33:01 PM »
I figured it was about time I posted my thoughts on your products
First I must admit I have been telling everyone I know that programs PLC's that between this forum an your direct technical support it is fantastic
The FX series PLC as well as the SmartTile are a awesome product that are capable of doing just about anything someone can think of.
The ladder logic is a little cumbersome if you have a lot of OR's and AND's and sometimes you have to delete some things in order t add some things then put back what you deleted. But it all works out in the end and you can make a very complicated ladder segment.
The TBasic is a awesome tool but could do with some better documentation and sample programs.
However even if you do have issues with the TBasic just post the question in the forum and you will receive very professional help from either another member or from TriPLC themselves. There are a lot of System functions that you can use once you actually learn how they work.
On another note I have used the Smart Tile PLC on various boards now that we designed our own I/O on and I must tell you it makes your product far superior to any standard off the shelf PLC and if you have enough volume you can produce the results at a much lower cost than any off the shelf PLC  plus you now have the I/O that you actually needed not the I/O arrangement that some major company chose to give you.
Keep up the development on this wonderful product as well as the documentation. And definitely keep this forum up and running.

Lorne

15
Technical support / SAVE_EEP
« on: February 20, 2018, 02:20:32 PM »
I am still a little confused about the correct way to do a SAVE_EEP on consecutive DM's
If I want to do a SAVE_EEP for DM[700] through DM[704]

Do I use SAVE_EEP [DM700] + 3

Then on first scan what is the proper method to move the value back into DM[700] to DM[704]

Pages: [1] 2 3