130 likes | 297 Views
EPICS Support for G3/FlexIO/PLC5/VSIOD8. Carl Lionberger Group3 ™ optical-fiber-connected I/O AB FlexIO™ I/O modules More AB PLC5 record support Janz VSIOD8 VME serial board. Group3 control system. VME-Based fiber-optic loop controller 2 loops/VME bd, 8 bds/VME crate
E N D
EPICS Support for G3/FlexIO/PLC5/VSIOD8 Carl Lionberger Group3™ optical-fiber-connected I/O AB FlexIO™ I/O modules More AB PLC5 record support Janz VSIOD8 VME serial board G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
Group3 control system • VME-Based fiber-optic loop controller • 2 loops/VME bd, 8 bds/VME crate • 16 DI’s (Device Interface) / loop • CNA – 2 AI, 1 AO, 8BI, 8BO • Has PID (not supported) • CN3 – CPU + 3 I/O boards • digital I/O, analog I/O, motor control • Serial, gpib (not supported) • Diagnostic Port on each DI G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
Group3 controls in a rack G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
Group3 EPICS support • CNA combination module • Ai, ao, bi, bo, mbbi, mbbiD, mbbo, mbboD • B digital module • bi, bo, mbbi, mbbiD, mbbo, mbboD • C 8 16-bit analog input – ai • D 8 12-bit analog output – ao • E 4-channel DC motor controller • Mbbo for mode, ao for speed, accel • G 4-channel stepper – steppermotor record • H 4-channel encoder – ai, steppermotor record • F dual-serial, diagnostic port – vxWorks tty driver • Loop Controller (status) – ai, mbbi, mbbiD G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
Group3 EPICS support Loop Controller DI1 input PV drvG3 Cache Polling DI2 Loop ~30Hz Output PV DI3 Per-DI semaphore protected Sequence-number Device Support concurrency control Interrupt vxWorks IO Scan tty driver Queue G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
Group3 Diagnostic Port G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
EPICS Allen-Bradley 1794 FlexIO Analog record and device support • Analog support uses special record type for each module type • Similar to 1791 record written by Marty Kraimer • device supports allow ai and ao records to access the special records. • Use dblink link type, like soft raw records • Status as well as data passed by using long to pass 16 bit data + status • Support linear conversions • Support 1794IE4XOE2, 1794IE8, 1794OE4, 1794IT8 • Use cp and cpp link types to get automatic updates of passive ao’s and ai’s. G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
FlexIO on a wall G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
FlexIO Combo module PV diagram G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
EPICS Allen-Bradley 1794 FlexIO Digital device support • 1794IB16 and 1794IV16 • bi, mbbi, and mbbiDirect PV’s • standard AB binary device support • AB 16-bit BI • 1794OW8 • bo, mbbo, and mbbiDirect PV’s • Standard AB binary device support • AB 8-bit BO G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
AbPlc5Record Allen-Bradley PLC-5 Record and Device Support • Patterned on AbDCMRecord by Marty Kraimer • Special Record • Each record does block transfer reads and/or writes to 1 or 2 files in PLC5 • Only 1 read file and 1 write file per record; can be same • Read-only, write-only, rw, init output from input • Uses BTR and BTW pointers addressed by slot number in PLC • No supporting ladder logic programming necessary • Device Support • Ai, Ao with or without conversion • Bi, bo, mbbi, mbbo, mbbiDirect, mbboDirect • Type flexibility • Supports interrupt I/O scanning G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
SV6008 Scanner LINK link n Text (in VME) RACK SLOT AB "Blue Hose" Block Transfer Control PLC-5 Adapter Rack n File 19 File B21 RLEN FILE ELEM Group Module BTW Control BTR Control 0 16 bits 0 64 20 0 1 16 bits 1 0 BT19:4 BT19:0 1 64 21 0 1 1 BT19:1 BT19:2 2 64 21 0 Text 2 0 BT19:3 BT19:4 3 64 22 0 4 64 23 0 AbPlc5 Record Addressing Record Name AbPlc5 INST_IO Link <Record name>[subscript] Record Supported Standard Record This example uses the same file for reading and writing. subscript 2 16 bits 3 16 bits .... 63 16 bits G3/FlexIO/PLC5/VSIOD8 Carl Lionberger
Janz VSIO-D8 • VMEBus 8 channel serial I/O • Uses Z8530 comm. controllers • Baud to 38.4 k • Not “intelligent” • Serial ports either on front or back of crate • Bought source for vxWorks tty driver and modified to do cts/rts flow control G3/FlexIO/PLC5/VSIOD8 Carl Lionberger