扣扣2315341796
PLC与PC通讯应用实例
通讯系统的连接
图1 RS232转RS485通讯结构图
图中是采用 FX-232ADP 接口单元,将一台通用计算机与一台 FX2 系列 plc 连接进行通讯的示意图。
2) 通讯操作
FX2 系列 plc 与通讯设备间的数据交换,由特殊寄存器 D8120 的内容指定,交换数据的点数、地址用 RS 指令设置,并通过 plc 的数据寄存器和文件寄存器实现数据交换。下面对其使用做一简要介绍。
(1)通讯参数的设置
在两个串行通讯设备进行任意通讯之前,必须设置相互可辨认的参数,只有设置一致,才能进行可靠通讯。这些参数包括波特率、停止位和奇偶校验等,它们通过位组合方式来选择,这些位存放在数据寄存器 D8120 中,具体规定如下表1所示
表1串行通讯数据格式
D8120 的位
|
说明
|
位状态
|
0 ( OFF )
|
1(ON)
|
bo
|
数据长度
|
7 位
|
8 位
|
b1
b2
|
校验( b2 b1 )
|
( 00 ):无校验
( 01 ):奇校验
( 11 ):偶校验
|
b3
|
停止位
|
1 位
|
2 位
|
b4
b5
b6
b7
|
波特率( b7 b6 b5 b4 )
|
( 0011 ): 300bps
( 0100 ): 600bps
( 0101 ): 1200bps
( 0110 ): 2400bps
( 0111 ): 4800bps
( 1000 ): 9600bps
( 1001 ): 19200bps
|
b8
|
起始字符
|
无
|
D8124
|
b9
|
结束字符
|
无
|
D8125
|
b10
|
握手信号类型 1
|
无
|
H/W1
|
b11
|
模式(控制线)
|
常规
|
单控
|
b12
|
握手信号类型 2
|
无
|
H/W2
|
b13~b15
|
可取代 b8~b12 用于 FX-485 网络
|
使用说明如下:
1)如 D8120 = 0F9EH 则选择下列参数。
E = 7 位数据位、偶校验、 2 位停止位
9 =波特率为 19200bps
F =起始字符、结束字符、硬件 1 型( H/W1 )握手信号、单线模式控制
0 =硬件 2 型( H/W2 )握手信号为 OFF
2)起始字符和结束字符可以根据用户的需要自行修改。
3)起始字符和结束字符在发送时自动加到发送的信息上。在接收信息过程中,除非接收到起始字符,不然数据将被忽略;数据将被连续不断地读进直到接到结束字符或接收缓冲区全部占满为为止。因此,必须将接收缓冲区的长度与所要接收的**长信息的长度设定的一样。
(2)串行通讯指令
该指令的助记符、指令代码、操作数、程序步如下表所示。
RS 指令用于对 FX 系列 PLC 的通讯适配器 FX-232ADP 进行通讯控制,实现 PLC 与外围设备间的数据传送和接收。 RS 指令在梯形图中使用的情况如下图所示。
[S] 指定传送缓冲区的首地址
[m] 指定传送信息长度
[D] 指定接收缓冲区的首地址
[n] 指定接收数据长度,即接收信息的**长度
1) RS 指令使用说明
( a )发送和接收缓冲区的大小决定了每传送一次信息所允许的**数据量,缓冲区的大小在下列情况下可加以修改。
发送缓冲区――在发送之前,即 M8122 置 ON 之前。
接收缓冲区――信息接收完后,且 M8123 复位前。
( b )在信息接收过程不能发送数据,发送将被延迟( M8121 为 ON )。
( c )在程序中可以有多条 RS 指令,但在任一时刻只能有一条被执行。
NEW MRC BEARING 206 FS 206FS
NDH New Departure Delco Ball Bearing 7606 907606 New
Rexnord Self Aligning Mounted Roller Bearing XDY-108 XDY108 Used
SKF Double Row Ball Bearing 5215 75X130mm New
NSK Rubber Sealed Ball Bearing BD25-9 BD259 BD25-9T12C3 New
NEW FAFNIR BEARING 201KTT
NEW SKF 6015 metaL SHIELD BALL BEARING
NEW BOWER/BCA OUTPUT SHAFT BEARING 307-FF 307FF
New NSK Bearing 5210TNGC3 5210TNGC3 N *5 TNGC3
NEW MRC SINGLE ROW BALL BEARING 210MF
MRC Ball Bearing 5208C STEEL/C3/ABEC-1 07161E New
NSK Self Aligning Ball Bearing 22219CAMKE4C3S11 22219CAKS11 22219E4C3S11 New
NEW DIXIE BRUENING ANDREWS THRUST BEARING B 5 B5
NEW BARDEN LINEAR BALL BUSHING L-4-MM L4MM L-4 L4
NEW FAFNIR BALL BEARING 9102KDD 9102 KDD
RBC Cam Follower S-24-L S24L Lot of 2 New
SealMaster Insert Bearing with Snap Ring ER-10 ER10 5/8" New
3 Fafnir CB14 roller conveyor Bearing Hexagon id new
NEW PACIFIC SLEEVE BEARING PS0812-06 PS081206
Consolidated Precision Bearing 1621-2RS 16212RS New
NEW APPLETON 3/4" ALUMINUM ConDUIT BODY 3/4C FORM 85 C75-A 5XC43
NEW SKF BEARING 62201-2RS1 622012RS1
NEW NTN UELFU-1 5/8 FLANGE BEARING A-UL209-110 EL209-110 UELFU158 1-5/8"
NEW AURORA GREASED ROD END HEIM JOINT MW-8 MW8 1/2"ID 1/2"-20 RIGHT HAND THREADS
NEW SKF DOUBLE ROLLER BEARING 22222 CCK/C3W33 22222CCKC3W33
THK LM System Linear Roller Bearing LRA3275Z LRA3275 Made in Japan New
AMI FLANGE BEARING UCNFL204-12MZ2W UCNFL20412MZ2W UC204-12 UC20412 NIB
link-BELT FLANGED BEARING BS223459 2 3/16" NEW
NEW PEER BEARING 6217RLD
P.T. INTERNATIonAL HC206X30 BEARING INSERT 1-1/4" NIB
NEW RBC YOKE ROLLER Y-80 Y80
Koyo Bearing Cone 33287 New
NEW NTN BEARING 6007Z
NEW INA S 2012 ROLLER BEARING 25Z280D19
Boston Flange Bearing 06986 4T 3/4 069864T3/4 3/4" A-AL204-012 AAL204012 New
Steyr Doubled Shielded Roller Ball Bearing 6310-2Z/TN/C3 63102ZTNC3 6310 C3 New
Sealmaster Seal Master Insert Bearing 2-11 211 1 1/16 1-1/16" Bore 700016 New
THE GENERAL BEARING GBC 21808-88-300 2180888300 COMPARABLE TO NICE 1616DC NIB
NEW GBC/THE GENERAL BEARING 77R4A R4AZ
NEW INA NEEDLE BEARING W/ INNER RACE NKI 22/20 NKI2220
NEW MRC 5212 KFG 5212KFG DOUBLE ROW BALL BEARING
NEW BROWNING INSERT BEARING W/COLLAR LE-116 LE116 1" BORE
NEW BOWER BCA RACE BEARING LM501310 "LOT OF 2"
FAG BEARING 6012.2RSR.C3 60122RSRC3 6012.C3 6012RSR B044-0400 HB NIB
FALK REXNORD 8F GRID COUPLING 0706391
NEW SNR BEARING F35 4212A F354212A
Asahi C-PVC AV True unio Ball Check Valve 1/2" Glue-In 150 PSI 2030053
NEW BROWNING VER-212 SET SCREW INSERT BEARING 3/4" VER212
NEW FAFNIR SAS 1 3/16 PILLOW BLOCK BEARING GYA103RRB SAS1316
NEW INA NEEDLE BEARING IR 2025X16 IR202516 "LOT OF 3"
NEW LOT OF 2 LINEAR LM76 MOTION BEARING LX-814-10 LX81410
No Name Rubber Sealed Bearing 6004RS 2042x12MM New
NEW SKF BALL BEARING 6305-2Z/C3 63052Z/C3 63052ZC3 123111W
SNR Spherical Roller Bearing 22212.E.B33.J30 22212EB33J30 New
NEW SNR 6009 ZZJ30 BEARING 6009J30
NSK Super Precision Bearings Set of Two 7006CTDBC7P5 New
Schatz W516 Ball Bearing W-516 New
NEW TIMKEN J-68 NEEDLE BEARING J68
NEW BROWNING BEARING SLS-116 SLS116 1"
New R10Z Ball Bearing R10Z
link BELT BEARING MA1213 NEW
NEW NACHI BEARING R8NSL
Barden Linear Bearing L-16 L16 New
Barden Linear Bearing FL-6 FL6 New
NEW RBC BEARING B10L B10-L
NEW INA PI182208 BEARING RACE PI-182208
NEW BROWNING 30LB050 BEARING 1 BORE 1/4x1/8 KWY 30LB050
Steyr Angular Contact Ball Bearing 7307 BG 7307BG 7307 BDU made in Austria New
NEW FAFNIR PILLOW BLOCK BEARING WITH COLLAR RAK 1 3/16 1 3/16" BORE 1113
NEW STEYR SELF ALIGNING BEARING 2312
SealMaster Female Rod End Spherical Bearing TF 8 TF8 RH Thread 1/2-20" 1/2" ID
NEW FAFNIR ConCENTRIC COLLAR 1/2" BORE FLANGE BEARING RCJTC 1/2 RCJTC12
NEW DAYTON SHAFT COLLAR 2X740 1-1/4" BORE
NEW MCGILL CFH-2-SB CAM FOLLOWER CFH2SB
INA GYE35KRRB Roller Bearing GYE35KRRB New
SMC Solenoid Valve VT315-021C VT315021C 1/4" NPT 100 VAC New
FAFNIR BEARING 306KDDG NIB
DODGE F&B-CC-115 FB-CC-115 F&BCC115 1 15/16" FLANGE PILLOW BLOCK BEARING NEW
NBR UC209-27 Set Screw Insert Bearing UC20927 New
NEW TIMKEN FAFNIR 4 BOLT FLANGE BEARING RCJ 1-3/16 1-3/16" BORE G1103KRRBC2
NEW MRC BEARING 115KSFF 0011 115KSFF0011
NEW FAFNIR BALL BEARING W309KLL
NEW SKF SPHERICAL ROLLER BEARING INSERT 476209-112 B 476209B-112 476209112B
link-Belt linkBelt Cylindrical Roller Bearing M1208EX New
BLC 6307 ROLLER BEARING NEW
Sealmaster Seal Master 4 Bolt Flange Bearing SF-20C SF20C 1-1/4"Bore New
New Koyo Bearing 33011JR
RBC Cam Follow Bearing H24L H-24-L H12 3/4X H1234X New
NEW FAFNIR BEARING W204PPC2
NEW MCGILL CAM FOLLOWER CF 2 SB CF2SB
NEW MRC 201SZZ5 ABEC1 01L0A031A87C INSERT BEARING 201SZZ
NEW INA GE 20 KRRB BEARING GE20KRRB WITHOUT COLLAR
NEW FAFNIR 5218W DOUBLE ROW BALL BEARING
NEW IKO BEARING CRY16VE01 CR 10-1 CR101
Norgren R30M-8DK-RGN Regulator R30M8DKRGN New
NEW BCA W-107 INSERT BEARING WITH LOCKING COLLAR C107 W107
INA Needle Bearing NKI 45/25 61B9 New
NEW NACHI ANGULAR BEARING 5207 5207a1
SKF Linear Ball Bearing LBXR16 New
Timken Tapered Roller Bearing L102849 New
FAFNIR BALL BEARING 307K NIB
NEW JMC CAM FOLLOWER CAMFOLLOWER BEARING CF10V
NEW ORS BEARING 12 08 6005 2RS NR G93 C3 120860052RSNRG93C3 6005C3 6005RSR
Lot of 2 LHA 2" NPT Filter 3.93" Dia. Height 4.2" New
Consolidated 1307K Precision Bearing 1307-K NEW
Seal Master SealMaster Pillow Block Bearing NP-25 1-9/16" P-107 New
Hess-Bright 910/J Thrust Bearing 910J New
NEW NO NAME 6007 BALL BEARING
NEW SKF 7230G 7230 G VAGB UA BALL BEARING
NEW TORRINGTON AIRCRAFT BEARING ATF-4 BACB10ET04 MS21438-104G
BIMBA 128-D 128D 12 3/4" - 20 3/4" STAINLESS S/S AIR PNEUMATIC CYLINDER NEW
NEW NICE BEARING 3030DSTN 3030 F20
NEW GULF SKF BEARING 6203-YC3 6203YC3 6203-YC3 6203YC3
Rexroth Linear Bearing R165322420 Ball Carriage New
NEW MRC BEARING 310SFF 0072 310SFF0072
NEW SKF CYLINDRICAL ROLLER BEARING NU304 3NUC4
NEW BROWNING FLANGE BEARING 5X760C/VF2S-110 VF2S-110 5/8" BORE
NEW NICE BEARING 3030-DS 3030DS
RBC Cam Yoke Roller Bearing Y128L New
MRC R10FF BEARING R10FF NEW
McGill Caged Roller Bearing MR-10-N MR10N 5/8X1-1/8X3/4 IN New
TIMKEN ROLLER BEARING 9321 NIB
McGill Pillow Block Bearing CL-25-5/8 CL255/8 5/8" New
LFD 2 Bolt Flange Bearing UCFL210 FL210 UC210 New
Lin-Act Self Aligning Rod Coupler LC-1-12 LC112 New
NEW JAF BALL BEARING 5201-2RS C-3 52012RS 52012RSC3
NEW TIMKEN /CATERPILLAR ROLLER BEARING FOR AXLE (CONE) 7K-8877 7K8877
New Departure ND Double Row Ball Bearing 5301 New
NEW NSK LINEAR GUIDE BEARING LH45 H45
NEW GBC BEARING 2208-88-300 220888300 1621RS COMPARABLE TO NICE 1621DC
NEW NDH NEW DEPARTURE ARMOR GARD BEARING 2L504 CB504B
NEW NTN TAPERED BEARING 4T-3578 3578
NEW REXNORD FAG TAPERED BORE SPHERICAL ROLLER BEARING 22220LBKMC3 22220E1AKMC3
NEW DODGE FLANGE BEARING FB-SC-103 FBSC103 1 3/16"
SealMaster Seal Master Pillow Block Bearing TB-204 TB204 20mm New
NEW SKF LINEAR BALL BEARING LBCR 20 LBCR20
Dodge Pillow Block Bearing w/ Collar P2BSXRB40M SXR 40 MM SXR40MM 40M New
NEW NACHI BEARING 5208N
DURAKOOL MURCURY ConTACTOR 2060APS120ACWG 120 VOLT COIL 60 AMP A 60A
BOWER/BCA BEARING 52637 NIB
NEW TIMKEN 34293DA TAPERED ROLLER BEARING 34293-DA 2-15/16" BORE
NEW WHITTET- HIGGINS BH-06 BEARHUG LOCKNUT BH06 94079
NEW MRC BEARING 5206CF H501 5206CF-H501 5206CFH501
AMI ASAHI Flange Bearing UCFC205 NEW UC205
The General 77R10 Bearing 77R10 R10ZZ R10 ZZ New
NTN UC204D1 Roller Bearing UC204-D1 New
AMI 2 Bolt Flange Bearing BFX205 New
NDH Bearing 77R4A 2941372 New
Fafnir Insert Ball Bearing RA015NPP New
NEW MRC ROLLER BALL BEARING 208S 0124 208S0124
NEW HFH INSERT BEARING SA206X30
NEW FEDERAL MOGUL TAPERED ROLLER BEARING CONE 15106
NEW KILIAN / TORRINGTON F600-3 BEARING F6003
MRC Rubber Sealed Ball Bearing 103KSZZ New
NEW FAFNIR BEARING P205PP P 205 PP
NEW SKF BALL BEARING 6213 2ZJEM 62132ZJEM C213
NEW IKO CAM FOLLOWER BEARING CF12-1UU CF121UU
NEW FAFNIR BEARING 9102P
NEW ENDURO THRUST BEARING 35TAG 12 35TAG12 KO34C-24-11310 KO34C2411310
NEW KOYO TORRINGTON NEEDLE ROLLER BEARING TR15283
SKF ANGULAR ConTACT BALL BEARING 7212 BYG 7212BYG 7212 BG 7212BG NIB
NEW ConSOLIDATED PRECISION BEARINGS FY-104 BEARING FY 104 FY104
NEW BCA 214LH BALL BEARING
Torrington Needle Roller Bearing HJ-202816 HJ202816 MS-51961-14 MS5196114 New
NEW PTI WS205 FLANGE BEARING SLIDE ROD END WS205
MRC Double Row Ball Bearing 5308-M/H501 5308MH501 New
NEW SKF BEARING N 304 ECP N304ECP
UNIMOUNT BALL BEARING FLANGE UNIT F4-52/NIS-1 F452NIS1 NIB
FAG Ball Ball Bearing 6406.C3 6406C3 New
NEW TRANE BEARING BRG01111 BRG 01111 .75 BORE
NEW URB TAPERED ROLLER BEARING 30307 A 30307A
LOT OF 2 NEW TORRINGTON BEARING M-551 M551
INA Needle Bearing NK 80/25 NK8025 New
NDH Delco Single Row Deep Groove Radial Ball Bearing 77607 3307 NEW
NEW FEDERAL MOGUL DOUBLE SEALED RUBBER BALL BEARING 202-CC16 6202LU
NEW MRC BEARING 213KS ABEC1 113KSABEC1
Bower Tapered Roller Bearing Cone 529 2" Bore New
FAG Single Row Ball Bearing 6204 New no Box
Nachi 6213ZZE 6213ZE C3 6213ZEC3 Ball Bearing New
NEW GENERAL BEARING 7 5 75
Andrews Thrust Bearing GT-21 GT21 New
NEW THOMSON LINEAR BEARING SUPER 8
NEW MRC BEARING 5207 K 5207K
NEW TIMKEN 26881 TAPERED ROLLER BEARING
BARDEN LINEAR BEARING L-6 L6 6 NIB
NEW NDH BEARING 3311
FROST ConVEYOR ROLLER BEARING OD 2-17/64"HEXAGON ID 3/4" MAIN BODY WIDTH 3/4"
Danco Hot Stem 1B-1H for Sayco 15431B 000Flat Bibb Washers New
NEW NTN 2 BOLT FLANGE BEARING ASPFL205-100NTN ASPFL205100NTN AS205-100 PFL205
Nachi Sealed Ball Bearing 6011-2NSL 60112NSL 6011NSL New
NEW FAFNIR BEARING 9114PP
NEW STEYR CYLINDRICAL ROLLER BEARING NU 1012 NU1012 NU 1012 C3 NU1012C3