Go to Parker.com
  • Sign in
Technologies
  • Aerospace
  • Climate Control
  • Electromechanical Group
  • Filtration
  • Fluid and Gas Handling
  • Hydraulics
  • IoT
  • Pneumatics
  • Process Control
  • Sealing and Shielding
Other Groups
  • Parker Indego
Blogs Forums Knowledge Bases
Parker Community
Parker Community
  • Technologies
    • Aerospace
    • Climate Control
    • Electromechanical Group
    • Filtration
    • Fluid and Gas Handling
    • Hydraulics
    • IoT
    • Pneumatics
    • Process Control
    • Sealing and Shielding
    Other Groups
    • Parker Indego
    Blogs Forums Knowledge Bases
  • User
  • Site
  • Search
  • User
Home Technologies Electromechanical Group Electromechanical Knowledge Base ACR9000 Ethernet Stream Connection Status Sample
Electromechanical Group
  • Technologies
  • More
Electromechanical Group
Electromechanical Knowledge Base ACR9000 Ethernet Stream Connection Status Sample
  • Electromechanical Support Forum
  • Electromechanical Knowledge Base
  • Members
  • Sub Groups
  • More
  • Cancel
  • New
Electromechanical Group requires membership for participation - click to join
  • Electromechanical Knowledge Base & Frequently Asked Questions
  • Motion and Machine Controllers-
    • ACR Controllers-
      • 7000+
      • 9000 (Legacy)-
        • ACR9000 Family Letter of Volatility
        • ACR Gantry Lock and EPL Axes
        • ACR Homing Success/Failure Flags
        • ACR Order Code
        • ACR Servo Tuner - Move Back & Forth sample code
        • ACR-View 6 is frozen. How do I recover?
        • ACR-View Memory Dimensioning using the Oscilloscope
        • ACR9000 to ModuFlex connection pinout
        • Automating the EPL startup procedure
        • Can I use tools from ACR-View in my own PC application?
        • Compax3 and Aries Ethernet PowerLink I/O
        • Configuring Memory for ACR9000 Com Channels
        • Dual Loop with Analog Position Feedback
        • EPL Drive Enable Status
        • Free Online Training Videos: Parker ACR9000 programmable motion controller
        • Having problems connecting with USB - ACR View 6.0
        • How do I add PBOOT to PLC programs?
        • How much memory does my ACR controller have?
        • How to Read Compax3 Analog I/O with EPL SDO read?
        • How to connect ACR to PIO CANopen buscoupler?
        • How to disable RS232 autobaud for ACR9xxx
        • How to get status values from an Aries EPL Drive
        • How to read the absolute position from EPL drive?
        • How to select user units and axis scaling
        • INTCAP and MSEEK with Compax3 EPL
        • MSEEK EthernetPowerlink Compatibility
        • Memory Allocation for PLC programs
        • Output Reaction to EPL Failure
        • Remap CAN I/O for use with PLC
        • What is needed with various Parker I/Os?
        • What verison of the .Net Framework is needed for ACR-View 6?
        • Whats the difference between PIO-337 and PIO-347?
        • Where does ACR-View install the ComACRserver?
        • Why is controller reporting Program Stuck
        • 9000: Connector Part Numbers
        • ACR 9000 replacement: New ACR7000 series controller
        • ACR 9xx0 Recovering from Estop / Motion Enable input
        • ACR-View: Mapping a parameter to an oscilloscope channel
        • ACR9000 - CIP Communications stop on all devices when one CIP device goes offline
        • ACR9000 Ethernet Stream Connection Status Sample
        • ACR9000 Event Counters
        • ACR9000 Sample Input/Output Wiring
        • Are Parker IO modules available as NPN?
        • Connecting a Parker IO (PIO) to an ACR9000
        • EPL Velocity p38145 vs p8193 Master Velocity
        • Ethernet Communication Streams
        • Ethernet/IP Encoders
        • How do I set up Parker I/O (PIO)
        • How to command a home operation from HMI or PC app
        • Master Encoder for C3 EPL & ACR9040 system
        • Maximum USB Cable Length
        • Replacing the ACR9000 Battery
        • RS232 Electrical Noise on older 9000 Controllers
        • Senary Axis Flags
        • Updated EPL Network Flags and Parameters
        • Upload Absolute Position from a C3 to a ACR9000
      • IEC PLC (9600) (Legacy)+
      • PC Card Controllers (Discontinued)+
      • ACR Binary Parameter Access Examples
      • ACR Controllers: Excel Spreadsheet Example for ACR and IPA
      • ACR Memory usage and commands
      • AcroBasic Program Priority and Timing
      • AcroBasic program does not wait
      • Change axis positive/negative motion direction
      • Clear all memory in an ACR controller
      • Command Syntax for Variable Substitution
      • Commenting AcroBASIC Programs
      • Concerns when using DWL in programs
      • Concerns when using INH in programs
      • Creating Watchdogs for Ethernet Connections
      • Encoder Velocity
      • Error 17000 when attempting to communicate to ACR
      • Evaluation Underflow error
      • Evaluation overflow is line xxx
      • Free Online Training Videos: Parker AcroBasic - Programming Basics
      • Hardware Position Capture for Encoder 8 and 9
      • Homing Application note for ACR9xxx controllers
      • How can I check the axis PPU setting?
      • How do I set the frequency in an ACR SINE move?
      • How does motion work in the ACR products (ACR7xxx, ACR9xxx, IPA, Aries-CE)
      • How fast is my servo axis moving?
      • How to Calculate the Gear Offset Parameter?
      • How to Find Torque or Current commanded from ACR
      • How to Simulate Motion (without drives or motors)?
      • How to home to a limit in AcroBasic
      • How to receive ASCII data
      • How to retrieve the raw SSI position from encoder?
      • How to use CAM ON when source is moving
      • How to use the In Motion Bit
      • INT command not working properly
      • INTCAP
      • Is the ComACRsrvr thread safe?
      • LISTEN / LRUN - How to see line numbers
      • MFLOPS vs. MIPS
      • Output on Position Toggle Mode
      • PID Parameters when using Steppers
      • Position to a Torque / Current Mode
      • Programmable Limit Switch (PLS) feature in the ACR9xxx and IPA
      • prohibited names for Axis aliases
      • Range Error on download for IF ENDIF statements
      • Reboot in startup program
      • Stopping motion in ACR controllers
      • System Pointer Address of ACR Global Variables, P0-P4095
      • Use of AXIS format
      • User Variables
      • Using ACR9xxx or IPA with LabView
      • Using CAM with PPU in user units (not counts)
      • Using Encoder 8 or 9 as SRC
      • Using JOG commands with AXIS identifier
      • Using an encoder or analog input as JOG SRC
      • VB generates Runtime Error 91
      • Variable data types and transfer to AB plc via Ethernet/IP
      • What ACR Global variables should I use in HMI applications?
      • What is the Binary Host Interface
      • What is the axis velocity
      • How to Wire Limit Sensors to ACR9xxx and ACR7000 Controller
      • ACR7000 Controller and ACR9000 Xpress Jog Teach Sample
      • Axis Flag update rate
      • Range Error when commanding long moves - Distance limit 2^31
    • PAC120+
    • PAC340+
    • PAC320 (Discontinued)+
    • 6K (Discontinued)+
  • General Technology Information+
  • Virtual Engineer+
  • Visualization and Human Machine Interface (HMI)+
  • Servo Drives and Servo Drive/Controllers+
  • Stepper Drives and Stepper Drive/Controller+
  • Gearheads+
  • AC and DC Drives and Inverters+
  • Servo Motors+
  • Step Motors+
  • Linear and Rotary Positioners+
  • Electric Cylinders+
  • T-Slot Aluminum Framing+
  • C3 + Xpress + ETH+
  • How can I stay updated on Parker electromechanical and drives product news?
  • Legacy (Discontinued)+
  • Other+
  • Memorandum: Information on EPA ban of Persistent bioaccumulative toxin (PBT)
Wiki Actions
  • Share
  • More
  • Cancel
Community Quick Links
  • Home
  • Technologies
    • Aerospace
      • Supplier Resource Center
    • Climate Control
    • Electromechanical Group
    • Filtration
    • Fluid and Gas Handling
    • Hydraulics
    • IoT
      • Mobile IoT
    • Pneumatics
    • Process Control
    • Sealing and Shielding
  • Other Groups
    • Parker Indego
      • Parker Indego Instructors
      • Parker Indego Therapists
      • Parker Indego Distributors
  • Community Blogs
  • Community Forums
  • Community Knowledge Bases
Follow Us
  • Follow Parker Hannifin on social media

Follow Parker Hannifin on social media:

ACR9000 Ethernet Stream Connection Status Sample

Print Friendly and PDF

 

 

'This is an example of reading through the various "Command Connections" to
'determine which STREAM a device has connected through.  It will then open that
'STREAM to allow PRINT, INPUT, GETCH and other ASCII communication commands to be
'used by programs to control external devices

'This program uses FOR-NEXT loops to make the program very concise.

'Command Connection P-parameters
'Connection #                             0     1     2    3     4 
'----------------------------------------------------------
'Connection Status                    7680  7688  7696  7704  7712 
'Client's IP Address                   7681  7689  7697  7705  7713 
'Client's IP Port                          7682  7690  7698  7706  7714 
'Attached ACR Stream Number  7684  7692  7700  7708  7716 

#DEFINE CmdConn LV0
#DEFINE ConnStatus LV1
#DEFINE ClientIPOctet LV2     : REM last group of numbers of IP address
#DEFINE StreamUsed LV3       : REM which Stream is used for the device
#DEFINE ConnStream LV4      : REM used to reference the P-parameters for
#DEFINE ConnectedIP LV5
#DEFINE DeviceNumber LV7


PROGRAM
DIM LV10
_start
IF (BIT24) THEN GOSUB Connect
IF (BIT25) THEN GOSUB Disconnect
GOTO start

_Connect
DeviceNumber = 0 : REM reset the device number back to zero when connecting again
ClientIPOctet = 35 : REM I am looking for device with IP address xxx.xxx.xxx.35
FOR CmdConn = 0 TO 4 STEP 1
StreamUsed = 0
    ConnStatus  = 7680 + CmdConn * 8  : REM determine parameters to check for the desired command connection
    ConnectedIP = 7681 + CmdConn * 8
    ConnStream  = 7684 + CmdConn * 8

    IF ((P(ConnStatus) = 1) OR (P(ConnStatus) = 2))
        DeviceNumber = DeviceNumber + 1 : REM increment what device # we OPEN, this allows up to 3 devices to be used.
        PRINT "Command ";CmdConn;" Connected: ";
        IF (ClientIPOctet = (P(ConnectedIP) AND 255))
        print "IP Matched: ";
            StreamUsed = P(ConnStream)
            ENDIF
        ENDIF
    IF (DeviceNumber > 3) THEN PRINT "Too many devices opened, cannot open another, ending..." : BREAK
    IF (StreamUsed = 2) THEN OPEN "STREAM2:" AS #(DeviceNumber) : PRINT "Connected Stream 2"
    IF (StreamUsed = 3) THEN OPEN "STREAM3:" AS #(DeviceNumber) : PRINT "Connected Stream 3"
    IF (StreamUsed = 4) THEN OPEN "STREAM4:" AS #(DeviceNumber) : PRINT "Connected Stream 4"
    IF (StreamUsed = 5) THEN OPEN "STREAM5:" AS #(DeviceNumber) : PRINT "Connected Stream 5"
NEXT
INH -24 : REM debounce switch
RETURN
_Disconnect
PRINT "CLOSING #1" : CLOSE #1
PRINT "CLOSING #2" : CLOSE #2
PRINT "CLOSING #3" : CLOSE #3
INH-25 : REM debounce switch
RETURN
ENDP

  • Share
  • History
  • More
  • Cancel
Anonymous
Related
Follow Us
  • Follow Parker Hannifin on social media

Follow Parker Hannifin on social media:

Parker Hannifin Parker Hannifin

  • Products
  • About Parker
  • Investors
  • Community
  • Careers

Global Operations Global Operations

  • Divisions
  • Sales Companies
  • Worldwide Locations
  • Distribution Network
  • ParkerStoreā„¢ Network

Company Information Company Information

  • Newsroom
  • Event Calendar
  • Working with Parker
  • Product Brands
  • History

Global Support Center Global Support Center

  • Support
  • CAD
  • Where to Buy
  • Contact Parker
  • Manage Online Orders
Ā© Parker Hannifin Corp 2022
  • Site Map
  • Safety
  • Privacy Policies
  • Terms and Conditions
  • Community Terms of Use
ENGINEERING YOUR SUCCESS.