RS-422标准是一种以平衡方式传输的标准,即双端发送和双端接收,根据两条传输线之间的电位差值来决定逻辑状态。RS-422电路由发送器、平衡连接电缆、电缆终端负载和接收器组成。它通过平衡发送器和差动接收器将逻辑电平和电位差之间进行转换
选用MAXIM公司的MAX202实现RS-232与TTL之间的电平转换。MAX202内部有电压倍增电路和转换电路,仅需+5V电源就可工作,使用十分方便;选用MAX490实现RS-485与TTL之间的转换。每片MAX490有一对发送器/接收器,由于通信采用全双工方式,故需两片MAX490,另外只需外接4只电容即可。
PLC的RS-422接口配接DB-25型连接器,而PC机一般用DB-9型连接器。硬件电路图如图1所示。
将RS-232的RS、CS短接,这样对计算机发送数据来说,PLC总是处于就绪状态。也就是说,计算机在任何时候都可以将数据送到PLC内。又由于DR、ER交叉连接,因此,对计算机接收数据来说,必须等待至PLC处于准备就绪状态。
2通信装置的软件描述
2.1 FX2系列PLC与计算机之间通信协议
FX2系列PLC与计算机之间的通信采用RS-232标准,其传输速率固定为9600bps,奇偶校验位采用偶校验。数据格式如图2所示。数据以帧为单位发送和接收。一个多字符帧由力所示的五部分组成,其中和校验值是将命令码ETX之间的的呢字符的ASCII码(十六进制数)相加,取得所得和的低二位数。STX和ETX分别表示该字符帧的起始标起和结束标志。
FX2系列与计算机之间的通信是以主机发出的初始命令,PLC对其作出响应的方式进行通信的。共有0、1、7、8四种命令,上位机实现对PLC的读写和强行置位。通过ENQ、ACK和NAK,上位机协调与PLC的通信应答。
CRANE 1-1/2″ BRONZE GLOBE VALVE, NEW
MOELLER X POLE FAZ-S10/1 & OTHER BREAKER LOT OF 3
MAC 45A-FA1-DAAJ-2KA VALVE NEW
ABB BC25 CONTACTOR
EUCHNER NZ1HB-511-M SAFETY SWITCH, LOT OF 2, NIB
VELOSTAT C15493700A ANALOG PCB NIB
WESTINGHOUSE RHUN361 30 AMP HEAVY DUTY SAFETY SWITCH
NORDSON 502862-0001 ENCODER NIB
HOFFMAN 401494 792 HIGH PRESSURE WATER VENT VALVE, NIB
STATIC CONTROLS CORP CB-1308 CONTROL BOARD
IFM ELECTRONIC E20633 FIBER OPTICS, LOT OF 3, NIB
PEPPERL+FUCHS IVI-KHD2-4HRX SERIAL CONTROL I/F
RITTAL TS8611.310 DOOR INTERLOCK FOR ISOLATORS LOT OF 6
IFM ELECTRONIC E20161 FIBER OPTICS, LOT OF 2, NIB
FANUC A05B-2301-C303 TEACH PENDANT
ALLEN BRADLEY 1746-IO12 COMBINATION I/O MODULE, NIB
ALLEN BRADLEY 1203-GK5 SER A COMMUNICATION OPTION KIT
ALLEN BRADLEY 1490 CONDUIT HUB LOT OF 3 NIB
GENERAL ELECTRIC TJD432400 CIRCUIT BREAKER
CUTLER-HAMMER AF93AG0C002D AC DRIVE
SONY XV-M30 BATTERY AND CHARGERS W/ CASE
USON 403-X300G I/O MOUDLE
RAYTEK RAYRPM20L3U PM PLUS INFRARED THERMOMETER
YOKOGAWA 250400 STROKE / MINUTE PANEL METER, LOT OF 6
AMPROBE AA82 CHART RECORDER
MCQUAY 658160B-01-ADI-01 DIGITAL BOARD
TRANE SEN00299 SENSOR LOT OF 3
OBERG IND. OMM-G-1 OPTICAL MISFEED MONITOR
HANSEN COUPLING 16S51 2″ FEMALE COUPLER LOT OF 2
3COM 1671-010-000-2.03 OFFICE CONNECT 8 PORT HUB
SCOTT 09755 CAPACTIOR ROLL TOWEL DISPENSER, LOT OF 7
ALLEN BRADLEY 709-BOD103 SIZE 1 MOTOR STARTER
ASHCROFT B424B PRESSURE SWITCH W/ DIAPHRAGM
ITT K10CB119 2-WAY GENERAL PURPOSE VALVE, NIB
MORSE XB1074 L08K GEAR REDUCER
ALLEN BRADLEY 800T-1T1BB OILLIGHT PUSH BUTTON NNB
WATTS 0885011 3/4″ AK STRAINER NIB
WATTS 0885010 1/2″ AK STRAINER NIB
EUPEC TD 60 N 08 KDF IGT 2 11L0 POWERBLOCKS, LOT OF 3
APOLLO 7K-107-27 1-1/2″ BALL VALVE W/ BOTTOM TAP, NEW
TOHO M-8S TOLINE MODULE
SQUARE D GENERAL PURPOSE TRANSFORMER 35638 CLASS 1 S1F
GRACO 218510 SURGE TANK
FANUC A16B-2300-0021/02B PCB
BAY CN-AIM2 REV B 3 BOARD
SEMIKRON SKKH THYRISTOR, LOT OF 3
SQUARE D FHL360201352 20 A THERMAL-MAG CIRCUIT BREAKER
JAMFLOW CF8M 2-1/2″ BALL VALVE 1000 W.O.G.
BALLUFF BFS-S20-4/5 CONNECTOR CABLE NEW
PRX KD324510 9N-S9 TRANSISTOR
ATLAS COPCO PF 3009-C-HW 8433 1900 05 TENSOR S9 CONTROL
BOSCH DM 15K 1101-D DIGITAL DRIVE CONTROLLER
BOSCH NE 21/B-D LINE FILTER
BOSCH VMA20KB001-D POWER SUPPLY
BOSCH NV 20/1F-D POWER SUPPLY
NORGREN VMS 2310 SMART PUMP MANAGEMENT SYSTEM
FLOWDATA FD101-6199-2410-000 FLOW METER
FANUC ROBOTICS ISTP-R-J REMOTE PENDANT PORT
LEGACY PUMP MASTER 3 404 101 PUMP
HONEYWELL Q181A 1015 AUX POTENTIOMETER FOR 2 SERIES 90
NEMIC-LAMBDA CCB007C MODULE
WIKA 8998804 PAPER MACHINE GAUGE NIB
ASHCROFT 1NA29365-013 100MM DURALIFE GAUGE NIB
ATLAS COPCO D311-DS9 TENSOR DS9 CONTROLLER
REES 04944-700 CABLE OPERATED SWITCH NIB
ATLAS COPCO D312-DS7 TENSOR DS7 CONTROLLER
RHEINLAND TMA31-5/115-230/AL04 POWER SUPPLY
GRACO 214848 AIR LUBRICATOR NIB
KIMDEN KFC-27F MULTI-WINDOW LIGHTS NEW
PRX KD324510 N2NAK5 TRANSISTOR
PRX KD324510 9DAH3 TRANSISTOR
TRANE ACT00399 ACTUATOR
BLACK BOX IC133C-R2 SERIAL HOST ADAPTERS, NIB
TENNANT 78979 CASTER KIT PLACEMENT NIB
WESTINGHOUSE A200M1CAC SIZE 1 STARTER
CHI 145TZ 1.5 HP FRAME MOTOR
VEEARC 930-700 DRIVER BOARD
CKD GPS2-CTR PRESSURE SWITCHES LOT OF 3
STANLEY COBOTICS PROGRAMMABLE CENTRAL HUB
YAMATAKE-HONEYWELL KIX19B-E12X2SY-XSX FLOW METER
DOUBLE A QF-3-FF-10B1 VALVE W/ MANIFOLD
MITSUBISHI QM50DX-H TRANSISTOR
ASHCROFT Q 586 DURAGAUGE
ALLEN BRADLEY 2801-RGB RGB ADAPTER