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 | 360 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 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
  • Beckhoff EL4122 | EtherCAT Terminal, 2-channel analog output, current, 4…20 mA, 16 bit
  • Beckhoff EL4114 | EtherCAT Terminal, 4-channel analog output, current, 0…20 mA, 16 bit
  • Beckhoff EL4112-0010 | EtherCAT Terminal, 2-channel analog output, current, ±10 mA, 16 bit
  • Beckhoff EL4112 | EtherCAT Terminal, 2-channel analog output, current, 0…20 mA, 16 bit
  • Beckhoff EL4104 | EtherCAT Terminal, 4-channel analog output, voltage, 0…10 V, 16 bit
  • Beckhoff EL4102 | EtherCAT Terminal, 2-channel analog output, voltage, 0…10 V, 16 bit
  • Beckhoff EL4038 | EtherCAT Terminal, 8-channel analog output, voltage, ±10 V, 12 bit
  • Beckhoff EL4034 | EtherCAT Terminal, 4-channel analog output, voltage, ±10 V, 12 bit
  • Beckhoff EL4032 | EtherCAT Terminal, 2-channel analog output, voltage, ±10 V, 12 bit
  • Beckhoff EL4031 | EtherCAT Terminal, 1-channel analog output, voltage, ±10 V, 12 bit
  • Beckhoff EL4028 | EtherCAT Terminal, 8-channel analog output, current, 4…20 mA, 12 bit
  • Beckhoff EL4024 | EtherCAT Terminal, 4-channel analog output, current, 4…20 mA, 12 bit
  • Beckhoff EL4022 | EtherCAT Terminal, 2-channel analog output, current, 4…20 mA, 12 bit
  • Beckhoff EL4021 | EtherCAT Terminal, 1-channel analog output, current, 4…20 mA, 12 bit
  • Beckhoff EL4018 | EtherCAT Terminal, 8-channel analog output, current, 0…20 mA, 12 bit
  • Beckhoff EL4014 | EtherCAT Terminal, 4-channel analog output, current, 0…20 mA, 12 bit
  • Beckhoff EL4012 | EtherCAT Terminal, 2-channel analog output, current, 0…20 mA, 12 bit
  • Beckhoff EL4011 | EtherCAT Terminal, 1-channel analog output, current, 0…20 mA, 12 bit
  • Beckhoff EL4008 | EtherCAT Terminal, 8-channel analog output, voltage, 0…10 V, 12 bit
  • Beckhoff EL4004 | EtherCAT Terminal, 4-channel analog output, voltage, 0…10 V, 12 bit
  • Beckhoff EL4002 | EtherCAT Terminal, 2-channel analog output, voltage, 0…10 V, 12 bit
  • Beckhoff EL4001 | EtherCAT Terminal, 1-channel analog output, voltage, 0…10 V, 12 bit
  • Beckhoff EL4172 | EtherCAT Terminal, 2-channel analog output, multi-function
  • Beckhoff ED4174 | EtherCAT Terminal, 4-channel analog output, multi-function
  • Beckhoff ED4172 | EtherCAT Terminal, 2-channel analog output, multi-function
  • Beckhoff ED4078 | EtherCAT Terminal, 8-channel analog output, multi-function
  • Beckhoff EL4078 | EtherCAT Terminal, 8-channel analog output, multi-function
  • Beckhoff ED4074 | EtherCAT Terminal, 4-channel analog output, multi-function
  • Beckhoff EL4074 | EtherCAT Terminal, 4-channel analog output, multi-function
  • Beckhoff ED4072 | EtherCAT Terminal, 2-channel analog output, multi-function
  • Beckhoff EL4072 | EtherCAT Terminal, 2-channel analog output, multi-function
  • Beckhoff EM3712 | EtherCAT Terminal, 2-channel analog input, relative pressure
  • Beckhoff EM3701 | EtherCAT Terminal, 1-channel analog input, differential pressure
  • Beckhoff ELX3351-0090 | EtherCAT Terminal, 1-channel analog input, measuring bridge
  • Beckhoff ELX3351 | EtherCAT Terminal, 1-channel analog input, measuring bridge
  • Beckhoff ELX3314-0090 | EtherCAT Terminal, 4-channel analog input, temperature
  • Beckhoff ELX3314 | EtherCAT Terminal, 4-channel analog input, temperature
  • Beckhoff ELX3312-0090 | EtherCAT Terminal, 2-channel analog input, temperature
  • Beckhoff ELX3312 | EtherCAT Terminal, 2-channel analog input, temperature
  • Beckhoff ELX3252 | EtherCAT Terminal, 2-channel analog input, potentiometer
  • Beckhoff ELX3204-0090 | EtherCAT Terminal, 4-channel analog input, temperature
  • Beckhoff ELX3204 | EtherCAT Terminal, 4-channel analog input, temperature
  • Beckhoff ELX3202-0090 | EtherCAT Terminal, 2-channel analog input, temperature
  • Beckhoff ELX3202 | EtherCAT Terminal, 2-channel analog input, temperature
  • Beckhoff ELX3184 | EtherCAT Terminal, 4-channel analog input, current, 4…20 mA
  • Beckhoff ELX3181 | EtherCAT Terminal, 1-channel analog input, current, 4…20 mA
  • Eaton ELC-PA10AADR ELC Logic Controller, 10 I/O
  • EATON CORPORATION A200M3CX MOTOR STARTER
  • Eaton Cutler Hammer CB00002 Vacon PC00002-H Power Board CX/CXL, 30kW / 500V
  • Eaton EL1600USBDIN CPU
  • EATON MTL CP-DYNB-DI 16CH DI FTA CC Base Board,MTL16ATEXCPDYNX
  • Eaton ELC2-PV28NNDR-2 AND ELC-EX16NNDR-2 Programmable Logic Controller
  • EATON 40071361110 CEAG LP-STAR UNIT, 220-240V INPUT/OUTPUT
  • EATON CEAG CU CG-S , 40071360300 Control Unit
  • EATON EX16NNDRW4520024 Logic Controller Module 250VAC 50/60HZ 1.5AEATON EX16NNDRW4520024 Logic Controller Module 250VAC 50/60HZ 1.5A
  • EATON ELCPV28NNDR CONTROLLER 28I/O 16INPUT DC 120OUTPUT RELAY
  • EATON CORPORATION CAN-16DI/P / CAN16DIP STOCK 1276-A
  • Eaton ELC2-PV28NNDR PV Controller, 28 I/O, 16 DI, 12 RO
  • Eaton ELC-EX16NNDR Programmable Logic Controller Digital Expansion Module 16 I/O
  • EATON CORPORATION 104-1193-006 MOTOR
  • Eaton Crouse Hinds CLD Programmer /Field Unit P/N.T6527-50-03-00
  • Eaton Vickers EEA-PAM-513-A-33 Replace of EEA-PAM-513-A-32 Power Amplifier