Power Engineering 
K-JIANG
NameDescriptionContent
Current Location:

A-B ASCll Data Transfer to theSLC 500M BASlC Module(Series B)

From:A-B | author:Mr.Chen | Time :2024-11-23 | 366 view: | 🔊 Click to read aloud ❚❚ ▶ | Share:

Because of the variety of uses for this information, the user of and

those responsible for applying this information must satisfy

themselves as to the acceptability of each application and use of the

program. In no event will Allen-Bradley Company be responsible or

liable for indirect or consequential damages resulting from the use or

application of this information.

The illustrations, charts, and examples shown in this document are

intended solely to illustrate the principles of programmable

controllers and some of the methods used to apply them. Particularly

because of the many requirements associated with any particular

application, Allen-Bradley Company cannot assume responsibility or

liability for actual use based upon the illustrative uses and applications.

No patent liability is assumed by Allen-Bradley Company with

respect to use of information, circuits, equipment, or software

described in this text.

Reproduction of the contents of this document, in whole or in part,

without written permission of Allen-Bradley Company is prohibited.

Introduction

This application note demonstrates how to transfer ASCII data to an

SLC 5/02 or later processor by using a remote SLC 500 BASIC

module. An example shows how to transfer a maximum of 10

ASCII characters to an SLC 5/03 processor.

General Information

M-files cannot be accessed from a module in a remote I/O chassis.

Therefore, the BASIC module (Catalog Number 1746-BAS) is

limited to its 8 input and 8 output image words for data transfer

between itself and the SLC 5/02 or later processor. The first three

words of the I/O image are reserved for handshake bits, status, and

character count respectively. So, only 5 input and 5 output words are

available for actual data transfers. In addition, since a total of 8

words of image are used, they must be block transferred because

they do not fit in the image allocated in the Remote I/O Adapter

module (Catalog Number 1747-ASB).

To keep the BASIC programming to a minimum and the throughput

to a maximum, CALL 22 is used to transfer data from PRT1 on the

BASIC module to the SLC 5/03 processor in this case. CALL 22

operates on an interrupt basis, so the throughput of data from PRT1

to the backplane is 10 ms or less. To calculate overall throughput for

your specific system, consult your Remote I/O Adapter User Manual

(Publication 1747-6.13) and your Remote I/O Scanner User Manual

(Publication 1747-6.6).

If you also wish to transfer data from a SLC 5/02 or later processor

to a BASIC module in a remote I/O chassis, please refer to the

BASIC Language Reference Manual (Publication 1746-6.3) and

refer to the section on CALL 23.

Description of the Application Example

This application example transfers up to 10 ASCII characters to the

SLC 5/03 processor. Each data packet less than 10 characters must

be terminated with a carriage return character (13 decimal) in order

to alert the BASIC module to transfer the data to the backplane. This

termination character may actually be any unique character. If you

require a different termination character, simply replace the “13” in

line 150 of the BASIC program with the decimal equivalent of the

new termination character.

Hardware and Software Configuration Information

N7:50 to N7:52 are the control words for the BTR function. N7:53

to N7:55 are the control words for the BTW function. For this

example, the following values must be placed in these words prior to

executing the ladder logic program:

• N7:50 – Must set bit 7 of this word to make it a BTR

• N7:51 – BT length, set to decimal 8

• N7:52 – RIO address (R, G, S), set to 100 decimal

• N7:53 – Must be sure bit 7 is a 0 to make it a BTW

• N7:54 – BT length, set to decimal 1 (only one word required to

transfer handshake bits).

• N7:55 – RIO address (R, G, S), set to 100 decimal

For this application example, the Remote I/O Adapter module is

configured as a logical rack 1, starting group 0,  logical rack size.

Also, 1-slot addressing and 57.6K baud is used.

  • Hirschmann 4C4C4C4C999 16 RJ45/SFP Combo Ports (support 100 and 1000 Mbit/s SFP)
  • Hirschmann MAR1142 Full Gigabit Ethernet Switch with Ports on the rear, PoE
  • Hirschmann MAR1140 Full Gigabit Ethernet Switch with Ports on the rear
  • Hirschmann MAR1042 Full Gigabit Ethernet Switch with PoE
  • Hirschmann MAR1132 Gigabit Ethernet Uplink with Ports at the bcak and 4 Ports PoE
  • Hirschmann MAR1130 Gigabit Ethernet Uplink with Ports at the bcak
  • Hirschmann MAR1032 Gigabit Ethernet Uplink with 4 Ports PoE
  • Hirschmann MAR1122 Fast Ethernet Uplink with Ports at the back and 4 Ports PoE
  • Hirschmann MAR1120 Fast Ethernet Uplink with Ports at the back
  • Hirschmann MAR1022 Fast Ethernet Uplink with 4 Ports PoE
  • Hirschmann MACH 1040 Full Gigabit Rack Mount Switches
  • Hirschmann MAR1030 Ruggedized managed Ethernet Switches, 19" cabinet mount
  • Hirschmann MAR1020 Ruggedized managed Ethernet Switches, 19" cabinet mount
  • Hirschmann MAR1040-4C4C4C4C9999SM9HRHH Rack Mount Switches
  • Hirschmann MAR1040-4C4C4C4C9999SM9HPHH Rack Mount Switches
  • Hirschmann MAR1040-4C4C4C4C9999SMMHPHH Rack Mount Switches
  • Hirschmann MAR1030-4OTTTTTTTTTTTTTTTTTTTTTTTTFMMHPHH
  • Hirschmann MAR1020-99MMMMMMMMMMMMMMMMMMMMMMMMFMMHPHH
  • Hirschmann M-SFP-2.5-SM+/LC EEC SFP Fiberoptic 2.5 Gigabit Ethernet Transceiver SM
  • Hirschmann M-SFP-2.5-SM/LC EEC SFP Fiberoptic 2.5 Gigabit Ethernet Transceiver SM
  • Hirschmann M-SFP-2.5-SM-/LC EEC SFP Fiberoptic 2.5 Gigabit Ethernet Transceiver SM
  • Hirschmann M-SFP-2.5-MM/LC EEC SFP Fiberoptic 2.5 Gigabit Ethernet Transceiver MM
  • Beckhoff EL5152 | EtherCAT Terminal, 2-channel encoder interface, incremental
  • Beckhoff ELX5151-0090 | EtherCAT Terminal, 1-channel encoder interface, incremental
  • Beckhoff ELX5151 | EtherCAT Terminal, 1-channel encoder interface, incremental
  • Beckhoff EL5151-0090 | EtherCAT Terminal, 1-channel encoder interface, incremental
  • Beckhoff EL5151-0021 | EtherCAT Terminal, 1-channel encoder interface, incremental
  • Beckhoff EL5151 | EtherCAT Terminal, 1-channel encoder interface, incremental
  • Beckhoff EL5131 | EtherCAT Terminal, 1-channel encoder interface, incremental
  • Beckhoff EL5122 | EtherCAT Terminal, 2-channel encoder interface, incremental
  • Beckhoff ED5112 | EtherCAT Terminal, 2-channel encoder interface, incremental
  • Beckhoff EL5112 | EtherCAT Terminal, 2-channel encoder interface, incremental, 5 V DC
  • Beckhoff EL5102 | EtherCAT Terminal, 2-channel encoder interface, incremental
  • Beckhoff EL5101-0090 | EtherCAT Terminal, 1-channel encoder interface, incremental
  • Beckhoff EL5101-0011 | EtherCAT Terminal, 1-channel encoder interface, incremental
  • Beckhoff EL5101-0010 | EtherCAT Terminal, 1-channel encoder interface, incremental
  • Beckhoff EL5101 | EtherCAT Terminal, 1-channel encoder interface, incremental, 5 V DC
  • Beckhoff EL5042 | EtherCAT Terminal, 2-channel encoder interface, BiSS® C
  • Beckhoff EL5032-0090 | EtherCAT Terminal, 2-channel encoder interface, EnDat® 2.2
  • Beckhoff EL5032 | EtherCAT Terminal, 2-channel encoder interface, EnDat® 2.2
  • Beckhoff EL5031-0011 | EtherCAT Terminal, 1-channel encoder interface, EnDat® 2.2
  • Beckhoff EL5021-0090 | EtherCAT Terminal, 1-channel encoder interface, SinCos
  • Beckhoff EL5021 | EtherCAT Terminal, 1-channel encoder interface, SinCos, 1 VPP
  • Beckhoff EL5001-0012 | EtherCAT Terminal, 1-channel encoder interface, SSI, simulation
  • Beckhoff ED5002 | EtherCAT Terminal, 2-channel encoder interface, SSI, push-in
  • Beckhoff EL5002 | EtherCAT Terminal, 2-channel encoder interface, SSI
  • Beckhoff EL5001-0090 | EtherCAT Terminal, 1-channel encoder interface, SSI, TwinSAFE SC
  • Beckhoff EL5001-0011 | EtherCAT Terminal, 1-channel encoder interface, SSI, monitor
  • Beckhoff EL5001 | EtherCAT Terminal, 1-channel encoder interface, SSI
  • Alfa Laval M Gear Gear Pumps
  • Alfa Laval ALP pump range
  • Alfa Laval three-screw pump
  • Alfa Laval DuraCirc Circumferential Piston Pump
  • Alfa Laval OS Twin Screw Pumps
  • Alfa Laval SX UltraPure Rotary lobe pumps
  • Alfa Laval SX Rotary lobe pumps
  • Alfa Laval SRU Rotary lobe pump
  • Alfa Laval OptiLobe Rotary lobe pumps
  • Alfa Laval MaxiLobe UltraPure Rotary lobe pumps
  • Alfa Laval MaxiLobe Rotary lobe pumps
  • Alfa Laval OptiLobe Rotary Lobe Pump Competitive Reliability
  • ABB GV C736 CE10 3BHB045647R0001 Resistive-Capacitive Voltage Sensor
  • Hirschmann 942 222-002 D4K-PSU-PANEL Blind panel for PSU slot
  • Hirschmann 942 222-001 D4K-LC-PANEL Blind panel for port module slot
  • Hirschmann 942 157-001 D4K-AIR DRAGON MACH4x00 fan unit, field-replaceable
  • Hirschmann 942 156-001 D4K-PSU-300W-HV Power Supply
  • Hirschmann 942 294-001 D4K-10TP-PoE Port Modules
  • Hirschmann 942 155-501 D4K-12SFP Port Modules
  • Hirschmann 942 155-001 D4K-12TP-RJ45 Port Modules
  • Hirschmann 942 153-003 – DRAGON MACH4500-80G+8X-L3A-MR Basic Unit
  • Hirschmann 942 153-002 – DRAGON MACH4500-80G+8X-L3A-UR Basic Unit
  • Hirschmann 942 153-001 – DRAGON MACH4500-80G+8X-L2A Basic Unit
  • Hirschmann 942 154-003 – DRAGON MACH4000-48G+4X-L3A-MR Basic Unit
  • Hirschmann 942 154-002 – DRAGON MACH4000-48G+4X-L3A-UR Basic Unit
  • Hirschmann 942 154-001 – DRAGON MACH4000-48G+4X-L2A Basic Unit
  • Hirschmann 942 318-003 – DRAGON MACH4000-52G-L3A-MR Basic Unit
  • Hirschmann 942 318-002 – DRAGON MACH4000-52G-L3A-UR Basic Unit
  • Hirschmann 942 318-001 – DRAGON MACH4000-52G-L2A Basic Unit
  • Hirschmann DRAGON MACH4500-80G+8X Full Gigabit Ethernet Backbone Switch with internal redundant power supply
  • Hirschmann DRAGON MACH4000-48G+4X Full Gigabit Ethernet Backbone Switch with internal
  • Hirschmann DRAGON MACH4000-52G Full Gigabit Ethernet Backbone Switch with internal
  • Hirschmann GRS106-16TX/14SFP-2HV-3A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GRS106-16TX/14SFP-2HV-2A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GRS106-16TX/14SFP-1HV-2A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GRS106-24TX/6SFP-2HV-3A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GRS106-24TX/6SFP-2HV-2A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GRS106-24TX/6SFP-1HV-2A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GRS105-16TX/14SFP-2HV-3A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GRS105-16TX/14SFP-2HV-2A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GRS105-16TX/14SFP-1HV-2A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GRS105-24TX/6SFP-2HV-3A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann 942 287-001 GRS105-24TX/6SFP-1HV-2A GREYHOUND 105/106 Series Ethernet Switches
  • Hirschmann GREYHOUND 106 Ethernet Switches
  • Hirschmann GREYHOUND 105 Ethernet Switches
  • Hirschmann M1-8TP-RJ45 PoE 942028001 Media Modules for GREYHOUND
  • Hirschmann M1-8TP-RJ45 943970001 Media Modules for GREYHOUND
  • Hirschmann M1-8SM-SC 943970201 Media Modules for GREYHOUND
  • Hirschmann M1-8SFP 943970301 Media Modules for GREYHOUND
  • Hirschmann M1-8MM-SC 943970101 Media Modules for GREYHOUND
  • Hirschmann GRS103-22TX/4C-2HV-2A 942 298 008 Ethernet Switches
  • Hirschmann GRS103-22TX/4C-2HV-2S 942 298 007 Ethernet Switches
  • Hirschmann GRS103-22TX/4C-1HV-2A 942 298 006 Ethernet Switches
  • Hirschmann GRS103-22TX/4C-1HV-2S Ethernet Switches
  • Hirschmann GRS103-6TX/4C-2HV-2A Ethernet Switches
  • Hirschmann GRS103-6TX/4C-2HV-2S Ethernet Switches
  • Hirschmann GRS103-6TX/4C-1HV-2S Ethernet Switches
  • Hirschmann GRS103-6TX/4C-1HV-2A Ethernet Switches
  • Hirschmann GREYHOUND 103 Ethernet Switches
  • Hirschmann RSPM-cover 942 131-001 Cover for RSPM modules
  • Hirschmann RSPM22-8TX-EEC 942 106-006 DIN Rail Mount Switches
  • Hirschmann RSPM20-8SFP Fast Ethernet media module for RSPE Switches
  • Hirschmann RSPM20-8SFP-EEC 942 106-005 DIN Rail Mount Switches
  • Hirschmann RSPM20-8TX-EEC 942 106-004 DIN Rail Mount Switches
  • Hirschmann RSPE37-8TX/4C-EEC-3S 942 084-006 DIN Rail Mount Switches
  • Hirschmann RSPE35-8TX/4C-EEC-2HV-3S 942 084-005 DIN Rail Mount Switches
  • Hirschmann RSPE32-8TX/4C-EEC-2A 942 084-004 DIN Rail Mount Switches
  • Hirschmann RSPE30-8TX/4C-EEC-2HV-3S 942 084-003 DIN Rail Mount Switches
  • Hirschmann RSPE30-8TX/4C-EEC-2HV-3S 942 084-003 DIN Rail Mount Switches
  • Hirschmann RSPE30-8TX/4C-2A 942 084-002 DIN Rail Mount Switches
  • Beckhoff EL4732 | EtherCAT Terminal, 2-channel analog output, voltage
  • Beckhoff EL4712 | EtherCAT Terminal, 2-channel analog output, current
  • Beckhoff ELX4184 | EtherCAT Terminal, 4-channel analog output, current
  • Beckhoff ELX4181 | EtherCAT Terminal, 1-channel analog output, current
  • Beckhoff ELX4154 | EtherCAT Terminal, 4-channel analog output, current
  • Beckhoff EL4134-0030 | EtherCAT Terminal, 4-channel analog output, voltage, ±10 V, 16 bit
  • Beckhoff EL4134 | EtherCAT Terminal, 4-channel analog output, voltage, ±10 V, 16 bit
  • Beckhoff EL4132 | EtherCAT Terminal, 2-channel analog output, voltage, ±10 V, 16 bit
  • Beckhoff EL4124 | EtherCAT Terminal, 4-channel analog output, current, 4…20 mA, 16 bit