Call 119: reset the prt2 port to default settings, Example, Sample ladder logic – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 314: Input and output arguments, Syntax

Advertising
background image

Chapter
Call Routines 69–127

13

13 -56

Example

>1 REM EXAMPLE PROGRAM

>10 REM ENABLE PLC/SLC UNSOLICITED WRITE INTERRUPT

>15 PUSH 64: CALL 4: REM SET BLOCK TRANSFER WRITE LENGTH

>16 PUSH 64: CALL 5: REM SET BLOCK TRANSFER READ LENGTH

>20 PUSH 1 : REM ENABLE THE CALL

>30 PUSH 0 : REM BTR BUFFER

>40 PUSH 1 : REM ALWAYS 1

>50 PUSH 0 : REM STRING NUMBER – NOT USED

>60 PUSH 20 : REM MAX ALLOWED WORD LENGTH OF DATA PACKET

>70 CALL 118

>80 POP S

>90 IF (S<>0) THEN PRINT “UNSUCCESSFUL CALL 118 SETUP”

Sample Ladder Logic

BTR

BLOCK TRANSFER READ

Rack

Group

Module

00

1

0

N7:0

N10:10

64

Control Block

Data file

Length

Rung 2:0

17

I:001

Rung 2:1

[END OF FILE]

(EN)

(DN)

(ER)

N

Continuous

N7:0

15

Use CALL 119 to reset the PRT2 port to these default settings:

8

bits/character

1 stop bit
no

parity

DCD

off

XON-XOFF

off

Input and Output Arguments

This routine has no input and no output arguments.

Syntax

CALL 119

Example

>1 REM EXAMPLE PROGRAM

>10 CALL 119

>20 END

CALL 119: Reset the PRT2
Port to Default Settings

Advertising