Allen-Bradley Bulletin 1203 Series User Manual page 46

Communications module (series b)
Table of Contents

Advertisement

4–12
Configuring and Interfacing
550
REM ****************************************************************
560
REM *********
561
REM *********
562
REM *********
563
REM *********
565
REM ****************************************************************
570
REM subroutine to do a typed write of a single parameter
580
PRINT "Executing PLC Remote Write "
600
PUSH 5 :
610
PUSH 1 :
620
PUSH 10 :
630
PUSH ASC(N) :
640
PUSH PAR_NUM :
650
PUSH 1 :
660
PUSH 50 :
670
PUSH 2 :
680
PUSH 0 :
690
PUSH 1 :
700
CALL 123 :
710
POP S
720
PUSH 123 :
730
CALL 29 :
750
RETURN
760
REM ***********
1203–5.5 September 1995
PLC TYPED READ Subroutine
inputs
Parameter number in var
ASC coded hex string of value in
outputs:
REM PLC5 Typed Write
REM Communications Module Node Address
REM File Number ( atterss is N10:PAR_NUM)
REM Communications Module File Type
REM Starting Word in File
REM Number of Words to Transfer (one parameter)
REM Command Time–out (x100ms)
REM Data Source (2 = Internal String)
REM Offset in M0 file (Not used in this example)
REM String #
ASCII hex number order low, high
REM Builds the message to be sent
REM sets up call 29
REM send the message
End Write parameter subroutine *********
failure message
*****
PAR_NUM
*****
$(1)
*****
*****

Advertisement

Table of Contents
loading

This manual is also suitable for:

1203–gd21203–gk21203–gm2

Table of Contents