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 | 349 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 MSM60-2SFP - 942 077-009 - Media Module for PowerMICE Switches
  • Hirschmann MSM40-4C-CE - 942 077-008 - Media Module for PowerMICE Switches
  • Hirschmann MSM40-4TX-CE - 942 077-007 - Media Module for PowerMICE Switches
  • Hirschmann MSM50-4SFP - 942 077-006 - Media Module for PowerMICE Switches
  • Hirschmann MSM40-4C - 942 077-005 - Media Module for PowerMICE Switches
  • Hirschmann MSM40-4TX 942077004 - Media Module for PowerMICE Switches
  • Hirschmann MSM20-4FX-SM Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSM20-4FX Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSP40-28-3A Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSP40-28-2A Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSP40-20-3A Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSP40-00200SCY9MRHHE3A Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSP40-20-2A Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSP30-28-2A-CE Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSP30-28-3A-CE Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSP30-28-EEC-CE Modular Gigabit Ethernet Industrial Switch for DIN Rail
  • Hirschmann MSP30-28-3A Managed Modular DIN Rail Fast/Gigabit Ethernet Switches
  • Hirschmann MSP30-20-3A Managed Modular DIN Rail Fast/Gigabit Ethernet Switches
  • Hirschmann MSP30-20-3A Managed Modular DIN Rail Fast/Gigabit Ethernet Switches
  • Hirschmann MSP30/40 Series 20 to 28-port MSP Modular Switches
  • Hirschmann MSP30-20-2A 942076005 - 20-port Modular Gigabit Ethernet Switch
  • Hirschmann MSP30-24040SCY999HHE2A Managed Modular DIN Rail Fast/Gigabit Ethernet Switches
  • Hirschmann BRS50-16TX/4SFP-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS50-8TX/4SFP-EEC-HL Managed Industrial Switch for DIN Rail
  • Hirschmann BRS50-16TX/4SFP Managed Industrial Switch for DIN Rail
  • Hirschmann BRS50-8TX/4SFP-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS40-8TX/4SFP-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS40-8TX-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-4TX/2SFP-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-8TX/2FX-SM-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-4TX/2FX-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-8TX/2FX-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-8TX-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-4TX/2FX-SM-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-4TX/2SFP-EEC-HL Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-4TX-EEC Managed Industrial Switch for DIN Rail
  • Hirschmann BRS50-8TX/4SFP Managed Industrial Switch for DIN Rail
  • Hirschmann BRS40-8TX Managed Industrial Switch for DIN Rail
  • Hirschmann BRS30-8TX/4SFP Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-4TX/2SFP Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-8TX/2FX-SM Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-4TX/2FX-SM Managed Industrial Switch for DIN Rail
  • Hirschmann BRS20-4TX/2FX Managed Industrial Switch for DIN Rail
  • Hirschmann GECKO 8TX/2SFP Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann GECKO 8TX Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann GECKO 5TX Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann GECKO 4TX Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann LRS42-7TX/3SFP-1C-HP Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann LRS32-7TX/3SFP-1C-HP Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann LRS42-7TX/3SFP-1C Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann LRS40-7TX-3SFP/1C Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann LRS32-7TX/3SFP-1C Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann LRS30-7TX/3SFP-1C Lite Managed Industrial ETHERNET Rail-Switch
  • Hirschmann SPR40-1TX/1SFP-EEC Industrial ETHERNET Rail Switch
  • Hirschmann SPR20-7TX/2FS-EEC Industrial ETHERNET Rail Switch
  • Hirschmann SPR20-7TX/2FM-EEC Industrial ETHERNET Rail Switch
  • Hirschmann SPR20-8TX/1FM-EEC Industrial ETHERNET Rail Switch
  • Hirschmann SPR40-8TX-EEC Industrial ETHERNET Rail Switch
  • Hirschmann SPR20-8TX-EEC Industrial ETHERNET Rail Switch
  • Hirschmann SSR40-6TX/2SFP Industrial ETHERNET Rail Switch
  • Hirschmann SSR40-8TX 8 x 10/100/1000Base-T Rail Switch
  • Hirschmann SSR4O-5TX 5 x 10/100/10O0Base-T Rail Switch
  • Aerotech ASR1200 Mechanical-Bearing Direct-Drive Rotary Collet Stage
  • Aerotech ASR1300 Mechanical-Bearing Direct-Drive Rotary Collet Stage
  • Aerotech AVS1000 Mechanical-Bearing Ball-Screw Lift Stage
  • Aerotech AVSI100-25 AVS100 Series Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech AVS100-25 AVS100 Series Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech AVS100-25 AVS100 Series Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech AVSI100-13 AVS100 Series Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech AVS100-13 AVS100 Series Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech AVSI100-06 AVS100 Series Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech AVS100-06 AVS100 Series Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech AVS100 Series Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech ASR1100 Mechanical-Bearing Direct-Drive Rotary Collet Stage
  • Aerotech VTS300-200 Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech VTS300-150 Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech VTS300-100 Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech VTS300-050 Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech VTS300 Mechanical-Bearing Screw-Driven Lift Stage
  • Aerotech AVL1000 Mechanical-Bearing Direct-Drive Lift Stage
  • Aerotech CGF Collet and Gripper Filtration Kit
  • Aerotech ABF Air Bearing Filtration Kit
  • Aerotech ANT95LZS-100 Low-Profile Z Nanopositioning Stages
  • Aerotech ANT95LZS-050 Low-Profile Z Nanopositioning Stages
  • Aerotech ANT95LZS-025 Low-Profile Z Nanopositioning Stages
  • Aerotech ANT95LZS Low-Profile Z Nanopositioning Stages
  • Aerotech AVF75-400 Voice Coil Driven Objective Focuser
  • Aerotech AVF75 Voice Coil Driven Objective Focuser
  • Aerotech MPS130LZS-160 Low-Profile Z Linear Motor Stages
  • Aerotech MPS130LZS-110 Low-Profile Z Linear Motor Stages
  • Aerotech MPS130LZS-060 Low-Profile Z Linear Motor Stages
  • Aerotech MPS130LZS Low-Profile Z Linear Motor Stages
  • Aerotech ASR1400 Mechanical-Bearing Direct-Drive Rotary Collet Stage
  • Aerotech ABRX High-Performance Rotary Air-Bearing Stages
  • Aerotech ACS-LP Direct-Drive Rotary Collet Stage
  • Aerotech MPS95LZS Low-Profile Z Linear Motor Stages
  • Aerotech MPS95LZS-050 Low-Profile Z Linear Motor Stages
  • Aerotech MPS95LZS-025 Low-Profile Z Linear Motor Stages
  • Aerotech MPS130LM Single-Axis Miniature Linear Motor Stage
  • Aerotech MPS130LM-160 Single-Axis Miniature Linear Motor Stage
  • Aerotech MPS130LM-110 Single-Axis Miniature Linear Motor Stage
  • Aerotech MPS130LM-060 Single-Axis Miniature Linear Motor Stage
  • Aerotech MPS95LM-050 Single-Axis Miniature Linear Motor Stage
  • Aerotech MPS95LM-025 Single-Axis Miniature Linear Motor Stage
  • Aerotech MPS95LM Single-Axis Miniature Linear Motor Stage
  • Aerotech ABRX250 High-Performance Rotary Air-Bearing Stages
  • Aerotech ABRX150 High-Performance Rotary Air-Bearing Stages
  • Aerotech ABRX100 High-Performance Rotary Air-Bearing Stages
  • Aerotech ACS200LP Direct-Drive Rotary Collet Stage
  • Aerotech ACS150LP Direct-Drive Rotary Collet Stage
  • Aerotech ACS100LP Direct-Drive Rotary Collet Stage
  • A-B SK-H1-PWRMOD-D590 Driver Controller
  • ZEBRA RSR12-RG5G8G5G5A1A2B Control Screen
  • DEIF RMP-121D Protective Reverse Power Relay
  • DEIF RMV-142D Over-/undervoltage relay, U> and U
  • DEIF RMV-132D Protective Overvoltage relay, U> and U>
  • DEIF RMV-122D Protective Overvoltage relay, U> and U>
  • DEIF RMQ-111D & RMQ-121D Loss of Excitation Relay/Over-excitation Relay
  • DEIF RMP-112D Protective Overload and Reverse Power Relay
  • DEIF RMP-111D Power Relay
  • DEIF RMF-112D Frequency Relay
  • DEIF RMC-132D Double Over-current Relay
  • DEIF RMC-121D Combined Short Circuit and Over-current Relay
  • DEIF RMC-111D Short Circuit Relay
  • DEIF MVR-V211 Busbar Protection Relay
  • DEIF MVR-T257 Transformer Protection Device
  • DEIF MVR-T256 Transformer Protection Device
  • DEIF AWC 400 advanced wind turbine controller pmc4.3, iom4.2(3x)