Author Topic: How to connect a swipe card reader to the PLC  (Read 10851 times)

Remso

  • Guest
How to connect a swipe card reader to the PLC
« on: December 02, 2002, 04:22:48 PM »
I want to connect a swipe card reader to T44H-pnp. The PLC will be connected to the serial port of a PC.
When a card is swipped in the reader I should read the card info using serial port & validate the info in the PC before controlling an output attached to the PLC.

1- How do I connect the reader to the PLC ?
2-  Any code to read the input of the card reader ?
3-  Is T44H-pnp a correct PLC to do that job ?
4- I don't know about ladder programming, will I need it for that purpose ?

Any info will be appreciated Thanks.

Regards,
Remso
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re: How to connect a swipe card reader to the PLC
« Reply #1 on: December 02, 2002, 07:43:51 PM »
The H-series (including the T44H) are not able to process data from the serial port. Their serial port are really slave-only communication port that accept predefined host link commands.

Enter the M-series PLC, and you are able to use any of the M-series PLC (T100MD888+, 1616+, 2424+ or T100MX3224R+ and T100MX4832) to process serial port data very easily and control any output based on the data received from the serial port.  The M-series PLC was originally designed with such an application in mind!

Ladder logic is not strictly necessary because most of the serial communication command are handled using the powerful TBASIC commands. You do need to know a bit of ladder logic so that you know how to trigger the custom function that processes the TBASIC command.

All M-series PLC has two or 3 serial ports (RS232 or RS485) and you can connect to your card reader using either direct DB9 cable or null modem cable. It depends on your swipe card reader.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

Remso

  • Guest
Re: How to connect a swipe card reader to the PLC
« Reply #2 on: December 04, 2002, 04:08:28 AM »
Can I connect more than one swipe reader to the same serial port on the PLC ?
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re: How to connect a swipe card reader to the PLC
« Reply #3 on: December 04, 2002, 04:22:37 AM »
Provided your swipe card reader runs on RS485 and recognize some kind of ID along with its commands.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS