T100MD-1616+ (Rev D-1) PLC Installation Guide

t=1> Yahoo! is not affiliated with the authors of this page or responsible for its content.
T100MD-1616+ (Rev D-1) PLC Installation Guide T100MD-1616+ (Rev D-1) PLC Installation Guide

1
Digital Output
Terminals
Digital Input
Terminals
Output LED
Indicators (Red)
CPU Status
Indicators
Input LED
Indicators (Green)
To Host PC
RS232C (COMM1)
14-pin LCD
Display Port
EEPROM
Write-Protection
when J2 at WP
Two-wire
RS485
Adjust AVcc
To Expansion
Board
Digital & Special
Outputs Section
Digital and Special
Inputs Section
+18-25V
DC IN
0V
DA2
D/A #1 (0-20mA)
A/D #1 (0-1V)
A/D #2 (0-1V)
A/D #3 (0-5V)
A/D #4 (0-5V)
+5V Analog Output (5mA)
DC Analog Power Supply +
Analog Ground (0V)
62256LP-12
CMOS RAM
LCD Display Module
12 to 24V DC
Power Supply
for PLC
+
-
+ -
1000 F 50V
E.Cap (Optional) 1N4007
(optional)
T100MD+
Super PLC
Warning: Warranty Void
if this label is damaged
(Optional battery-back
Real Timer Clock & RAM)
Jumper
for 12V
D/A #2 (0-5V)
Analog Ground (0V)
Adjust D/A1
Enable
WP
J2
J1


Figure 1 - T100MD-1616+ and 4x20 LCD Module

1. Introduction


The T100MD1616+ is an extremely powerful programmable controller equipped with
an arsenal of sophisticated built-in hardware and firmware that allows you to tackle
complex control tasks at minimum cost and at great ease.

For Rev. D-1 models there is an addition of an EEPROM write protection jumper J2.
For normal programming the jumper block for J2 should be placed at the Enable
position. If J2 is placed at the WP position the PLCs EEPROM is write-protected. In
this case the SAVE_EEP statement will not work and if you transfer a new program to
the PLC, the new program will reside temporarily in RAM will not be saved in the
EEPROM. It will also be lost when the PLC powers down.




2. Physical Mounting & Wiring

The compactly designed T100MD1616+ PLC can be easily installed in many kinds of
plastic or metal enclosures. You need to use 4 PCB standoffs (or some screws and
nuts) to support the controller and fasten it to a console box.

Analog I/O Ports
: The analog I/Os and the analog power supply connection are
located along the left edge of the PCB via a 6-way detachable screw-terminals and
a 2-way screw terminal below it as shown in Figure 1.
T100MD-1616+ PLCs

Installation Guide

2

Digital I/O Ports
: Detachable screw terminals are provided for quick connection to
all digital inputs, outputs and power supply wires. Each block of screw terminals can
easily be detached from the controller body, enabling easy replacement of the
controller board when necessary. Since the terminal block for digital I/O is inserted
vertically to the board surface, you need to remove the terminal block before you
can start wiring. Use a small flat-head screw-driver and insert underneath the
terminal block, apply even pressure to raise the terminal block until it becomes
loosened from the connecting-pin strip, as shown below:

Maximum AWG 24 w
Insulated crimp
ferrules
screw
Tightening
Connecting-pin strip
Flat-head
screw driver


Figure 2 - Removing Screw Terminal block


Although wires of up to 24 AWG may be connected directly to the screw terminal,
insulated crimp ferrules should be used to provide a good end termination to multi-
stranded wires. Use of ferrules reduces the possibility of stray wire-strands short-
circuiting adjacent terminals and their use is therefore highly recommended.




3. Power Supply


A T100MD1616+ requires a single regulated 12 to 24V (+/- 5% ripple) DC power for
both the CPU and the I/Os. It is recommended that whenever possible, use a higher
voltage power supply voltage since the voltage difference between ON and OFF
state is wider for operation at higher voltage. To use the T100MD1616+ at 12VDC
you should place a jumper block on the two-pin header marked J1-12V near the
power supply terminals. You must remember to remove the jumper when operating
the PLC above 18V otherwise the voltage regulator can overheat.

Please use only industrial grade linear or switching regulated power supply from
established manufacturers for best results. Using a poorly made switching power
supply can give rise to a lot of problems if the noisy high frequency switching signals
are not filtered properly.
Note
: If your application demands very stable analog I/Os
you should choose a linear power supply instead of a switching power source for the
CPU.

Always place the power supply as near to the PLC as possible and use a separate
pair of wire to connect the power to the PLC. Keep the power supply wire as short as
possible and avoid running it along side high current cable in the same cable
conduit. The T100MD-1616+ PLC will be reset when the power supply voltage dips
below 9V. It is a good idea to connect a 470F to 1000F, 50V electrolytic
capacitor near the power supply connector to suppress any undesirable voltage
glitches from conducting into the PLC. If other high current devices such as a
frequency inverter were to affect the operation of the PLC, then you should also T100MD-1616+ PLCs

Installation Guide

3

connect a diode before the capacitor to prevent reverse current which might flow
back to the power supply, as shown in the following diagram:

+24V DC
Power
Supply
+24V
0V
Surge suppressor
(Recommended)
1N4007
470uF 50V

Figure 3

If the AC main is affected by nearby machines drawing large currents (such as large
three-phase motors), you should use a surge-suppressor to prevent any unwanted
noise voltage from being coupled into the T100MD power supply. The required
current rating for the power supply depends mainly on the total output current,
taking into consideration the peak current demand and the duty cycle of the
operation. Normally, a 2A, 24V DC switching power supply should be enough.




4. LCD Display Module


The built-in 14-pin
LCD DISPLAY MODULE PORT
(hence the suffix MD) is
compatible to the Hitachi HD44780 display controller, which is a de facto industry
standard. This allows low cost, easily available LCD modules from third-party
manufacturers to be connected directly to the PLC to implement very economical
man-machine interface. You simply connect the LCD module to the T100MDs LCD
port using a 14-way IDC ribbon cable and header. Make sure that the pin number on
the PLC matches that of the LCD module. Wrong cable connection can destroy the
LCD port or LCD module.

The +5V logic power required by the LCD module is supplied by the 14-pin header.
However,
NEVER
connects the LCD backlight terminals to the +5V pin of the 14-pin
header or the +5V output of the analog power supply as this will overheat the PLCs
voltage regulators. For modules with LED backlight you can simply connect the
backlight terminals in series with a 150 to 220 5W resistor to the 24V power supply.

You may use any of the Industry standard 14-pin LCD modules. There are many
different display sizes or character formats to choose from, e.g., 1x8, 1x16, 1x20,
2x16, 2x20, 1x40, 2x40 and 4x20. We strongly recommend those with Super-Twisted
Nematics (STN) type which gives high contrast and wide viewing angle. The contrast
of the LCD can be adjusted using the preset potentiometer R7 marked with the word
contrast below the LCD connector.

Programming the LCD Display


The
SETLCD
y, x, string
TBASIC command allows you to easily display any string of up
to 20 characters on the y
th
line starting from the x
th
column. E.g., to display the
message T100MD-1616 on the 3
rd
line starting from the 5th character position from
the left end of the screen, you use the command:


SETLCD 3, 5, T100MD-1616
T100MD-1616+ PLCs

Installation Guide

4

Normally, y = 1,2,3, 4; x = 1, 2, . 20. Integers must be converted to strings using
the STR$( ) or HEX$( ) before they can be displayed using SETLCD. You can use the
concatenation operator + to combine a few components together in the
command. E.g.


SETLCD 1,1,Rm Temp = + STR$(ADC(1)/100,3)+CHR$(223)+C

The function STR$(ADC(1)/100,3) reads the content of ADC channel #1, divides it by
100 and converts the result into a 3-digit string, the CHR$(223) append a special
character which corresponds to the
o
symbol. E.g. if ADC(1) returns the value 1234,
the final string being displayed will be : Rm Temp = 012
o
C.

Special Commands For LCD Display

If you use the SETLCD command with line #0, then the strings will be treated as
special instructions to be sent to the LCD module to program it for various modes of
operation. This includes blinking cursor, underline cursor or no cursor as well as
display shift mode. You have to refer to the LCD manufacturers data sheet for the
detailed commands. Some of the most useful commands are listed below:

Action Command
1. Clear screen
SETLCD 0,1, CHR$(1)
2. No cursor
SETLCD 0,1, CHR$(12)
3. Underline Cursor
SETLCD 0,1, CHR$(14)
4. Blinking Cursor
SETLCD 0,1, CHR$(13)
5. Underline + Blinking Cursor SETLCD 0,1, CHR$(15)





5. Digital Input Circuits


All inputs have green color LED indicators. Every 8 inputs are grouped together into a
single strip of detachable screw terminal. All inputs are NPN types, meaning that to
tur