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 - support

Pages: 1 ... 7 8 [9] 10 11 ... 212
121
Technical support / Re:One Wire Sensors
« on: December 15, 2017, 06:31:33 PM »
Thank you for your suggestions.

If you are using the FMD PLCs, or developing a SmartTILE-Fx based custom PLC you could use the I2C interface (require the I2C-FRTC module for FMD) to interface with other electronic components that support the I2C interface. I2C interface is a much more popular, faster and more robust communication interface than 1-wire.

122
Technical support / Re:FX PLC interrupt and simulation
« on: December 15, 2017, 06:25:24 PM »
I think you were referring to the old T100MD (not FMD) that an input can be both an interrupt input as well as a regular input.

Unfortunately, there is some the peculiarity of the Fx and FMD MCU hardware such that the input can only be read if the pin is defined as a general purpose I/O (GPIO). When a pin has been defined as an interrupt input pin, the firmware has no way of reading the logic state of the pin unless the CPU switches it back to become a GPIO pin.  As such the PLC firmware is unable to report the logic state of the pin once it has been defined as an interrupt input.

The only way to get around this is to tie the interrupt input in parallel to a general purpose input so that you can still read the logic state of the input by reading it from the parallel input.

123
Technical support / Re:Forcing an IP address
« on: November 27, 2017, 08:54:08 PM »
Network routers have a different design purpose in that it is their job to look out for new connection and to assign IP address.

The PLC fimware initializes the Ethernet parameters during startup and most often the PLC is assigned a fixed IP address during the initialization so that will be the parameter it uses. If the fixed IP address has changed then it require a reboot in order to re-initialize the Ethernet port.

The PLC firmware does not want to spend precious CPU time to periodically check to see if it has if the IP address has changed in order to re-initialize the Ethernet port.

In many applications the PLC may not even be connecting the Ethernet port to the network, hence it is by design that the PLC only check for DHCP IP address (if IP address is set to 0.0.0.0 for Fx based PLC only) during boot up and if it doesn't find an address it assume that there is no network connection or no DHCP server and thus would ignore the Ethernet port.


124
Technical support / Re:Update to i-TRiLOGI
« on: November 08, 2017, 11:58:34 PM »
We have moved the help files to the web but the upgrade.htm document is not moved to the web so that's why it reported a 404 error.

You can find your upgrade.htm document from the local folder:

C:\TRiLOGI\TL6\public\Help\upgrade.htm

We have fixed this issue with the next release of i-TRiLOGI so in future when you select "Upgrade TRiLOGI" it will fetch the upgrade.htm from the local folder instead from the website.

125
Technical support / Re:Device ID
« on: November 01, 2017, 10:22:20 AM »
Gentlemen,

Thank you very much for expressing your opinions as well as kind words about TRi Tech support!

We hear your grievances about the documentation and we will think hard about how to improve them.

I guess a lot of information is sprinkled across TRiLOGI Programmer's Reference, TRiLOGI on-line Help Files and respective PLC User Manuals. So sometimes, the information may not be available if you refer to only one manual.

One solution may be to replicate some of these information to the other manuals. However, many of our PLC User Manuals already run into more than 200 pages, and we are quite reluctant to add more pages, rendering our documentation unwieldy to new users. Also, many users probably don't use all the capabilities our PLCs possess, so the current documentation tries to cover what we think many users will need for common control applications. For users who require more information on topics that involve more in depth knowledge of the PLC capabilities, we are always ready to help with email and tech support on the forum.

Instead of creating one PDF document with hundreds of pages, we probably need to move our documentation online to enable information to become searchable.  We hope to spare the resources to make that transition in the not too distant future.

Thanks again for your feedback. They are always welcome!

126
Technical support / Re:Dip Switch 2
« on: October 31, 2017, 08:20:35 AM »
It may be a good idea for some applications, but unfortunately current version of the firmware does not support access to the DIP switch status via the PLC software (it is meant to be handled at the system firmware level only and we didn't want unsuspecting users to mess with the DIP switch settings which could trigger system level events that lead to more support problems).

Since you are a SmartTILE customer it may make more sense for you to add DIP switches to your carrier board as part of the expansion I/Os. That way you get many more DIP switches for your own use.

Having said that, it could still be offered in future firmware version if there is an actual need for it. You can register your strong wish with the development team and see if a customized, trial version could be offered for your testing and if it works well for you it could eventually find its way into standard production firmware.

127
Technical support / Re:Protecting the TRiLOGI program
« on: October 25, 2017, 07:23:34 PM »
If the user does not need to view the ladder logic, then all you need to do is to make a copy of your .PC6/PC7 file and then delete the entire program but keep all the I/O table and #Define table intact.

Your technician will still be able to go online monitoring to view the I/O status and View Variable screens to view all the data on the PLC.

You can set a create a user password on the TLServer with level 3 access (User level) and this user will not be able to change any variables inside the PLC nor reprogram the PLC.

128
Technical support / Re:Change TimerSV with Wientek MT8050iE
« on: October 20, 2017, 01:16:04 PM »
Yes you can start a timer using any values. So you can use HMI to store the SV into some DM area so that the Custom function can retrieve the value use it to load into a timer.

Regarding how to use the timer in Custom Function please refer to the following thread:

http://www.triplc.com/yabbse/index.php?board=2;action=display;threadid=1046

129
Technical support / Re:Using a Tablet on the FX series
« on: October 20, 2017, 05:45:51 AM »
Two possibilities:

1) Your tablet may already come with (or you can buy one easily for Windows based tablet) an Ethernet connector (via USB or USB-C) and all you need to do is to assign your tablet's Ethernet port with a static IP address as well as a static IP address on the PLC (both should be on the same subnet. E.g. PLC=192.168.1.5, tablet=192.168.1.10). Now it is essentially plug and play using a standard network CAT5 cable with RJ45 plugs on both ends. You can either run i-TRILOGI to program the PLC, or run a browser webpage with content loaded from the PLC's web pages that you have preloaded into the PLC.  You can of course always write a Visual C, Visual Basic, or Java program to create a custom software interface for your PLC and communicate with it via the Ethernet port. That software will run on your tablet directly.

2) Since you have a Windows tablet you can easily connect a USB-RS232 or USB-RS485 (U-485 http://www.triplc.com/u485.htm) to the PLC's RS232 or RS485 port. That way you can run TLServer and use i-TRiLOGI to program the PLC. You may not be able to run browser webpage from the PLC, unless the webpages are loaded into the TLServer web file space.  

If you adopt solution 2), then most likely you want to write a custom GUI in C, C# etc to communicate with the PLC via the serial port. Your program of course need a way to either recognize the COM port number or let user select the COM port from drop down menu and memorize it. Thereafter it is more or less plug and play as well.


130
Technical support / Re:HST
« on: October 05, 2017, 08:48:13 PM »
If you put HSTIMER 2 on an INIT custom function invoked by 1st.Scan then every time the PLC is reset the high speed timer 1 and 2 will be enabled.

However, the present values of the timers are not saved when power is lost.

If you need to keep the present values of these two timers you could set up a power failure interrupt (see INTRDEF function) and inside the power failure interrupt service routine  you can save the present values of the two timers to FRAM area.

Inside the INIT function you will then load the timer's present value from the FRAM location that holds the previous data. This way the high speed timer can resume its count down after a power failure or reboot.

131
Technical support / Re:Save as problem 7.12 build 3
« on: October 04, 2017, 05:12:51 AM »
If you want to include period in the file name you should specifically add in the extension ".PC7" at the end of the file name. TL7 does not automatically append the .PC7 extension if the file name entered already include period. This is to allow TL7 to save to file with other extension besides .PC7 (e.g. you can save file as .PC6 extension). So basically the file you have saved to is "PLC 10.3.2017 rev 1" without the .PC7 extension.

In your case you can still see and open the file name if you specify '*.*" in the file name field since that will not use extension filter "*.PC7".


132
Modbus register are all organized as 16-bit integer.

The PLC can only read these as 16-bit number or can read two adjacent 16-bit number to form a 32-bit integer.

However the FMD PLC does not support floating point so it cannot treat the 32-bit number as single precision floating point number.

Only the Fx1616-BA, Fx2424 or SmartTILE-Fx based PLC can interpret the 32-bit number as single precision floating point number.

133
The best way to troubleshoot communication problems between two devices is to be able to see the communication going on.

So you should use a USB-RS485 adapter (e.g. U-485) connected to a PC. Connect the RS485 port of the U-485 to the RS485 bus connecting the FMD PLC and the device. Now run a terminal emulation software that can display binary data and trigger the custom function to send Modbus command from the FMD PLC. You should observe the correct Modbus command packet sent from the PLC to the device.

If the PLC has correctly sent the Modbus packet and the slave is of the same communication parameters and correct ID you should see a response packet returned by the slave device.

If there is something wrong with the communication then you may be able to figure out what went wrong.

134
Technical support / Re:Unlocking a FX Plc
« on: September 20, 2017, 04:00:14 PM »
If you want to prevent hacking from the Internet (since you mentioned router) then you should use i-TRiLOGI "Controller->Ethernet & ADC Configuration" screen to create a password and check the "Use username/password" radio button to "Yes". This password will prevent unauthorized access from the Internet via i-TRiLOGI or the web browser, but will not affect serial device (such as FP4030MR) that has physical connection to the PLC.

The SETPASSWORD keyword is actually a legacy feature in the PLC that is seldom used today. In 1993 when our T100MD and T100MX PLCs were first designed for OEM, the term "Internet" did not even exist (there were networks such as  Bit-net used between universities, but nothing for the public) . Back then the only way to  connect to a remote PLC was to use two telephone lines connected via dial-up modem, one on the PC side and the other on the PLC side. The modems typically ran at 1200, 2400 or up a zippy 9600 bps(!).  Since the modem is connected to a telephone land-line anyone who knows the phone number can dial in and control the PLC using the TRiLOGI software. The SETPASSWORD command was created to prevent unauthorized access by demanding the connecting software presents the unlock password before any further communication is possible.

We still support the SETPASSWORD feature for backward compatibility but it is not really needed today since landline modems can now only be found in the same museum along side the dinosaurs :)

135
In your sample program "Initialization" you run SETBAUD to COMM1 but COMM2 was commented out. That means COMM2 (RS485) port will still be operating at default 38400,8,1,n

But your "MBRTU" function contains READMB2 12,....    which means you are trying to use COMM2  (RS485) to talk to your device.

I am not sure why there was the  line SETSYSTEM 12,1  in your initialization code. Are you trying to use Modbus TCP to talk to a device that is connected to COMM1 of the PLC using Modbus RTU? That is one purpose of SETSYSTEM 12,1, which is to act as an Modbus TCP to Modbus RTU gateway

Perhaps you want to just define one COMM port at a time for your test to avoid confusion.

Also was there any data received into DM[4], DM[5].....DM[9]?

You can remove the FOR NEXT Loop in the Checkstatus1 function because READMB2 function will run to completion and STATUS(2) will immediately indicate whether the communication was successful so there is no need to put a FOR NEXT loop to test for STATUS(2).

You can remove the checkcom function as it does not serve any purpose and only will slow down the program.


Pages: 1 ... 7 8 [9] 10 11 ... 212