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
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
    Blogs Forums Knowledge Bases
  • User
  • Site
  • Search
  • User
Home Technologies Electromechanical Group Electromechanical - Industrial Electromechanical Industrial Knowledge Base ACR9000 Ethernet Stream Connection Status Sample
Electromechanical - Industrial
  • Technologies
  • Electromechanical Group
  • Electromechanical - Industrial
  • More
  • Cancel
Electromechanical - Industrial
Electromechanical Industrial Knowledge Base ACR9000 Ethernet Stream Connection Status Sample
  • Electromechanical – Industrial Support Forum
  • Electromechanical Industrial Knowledge Base
  • Members
  • Sub Groups
  • More
  • Cancel
  • New
Electromechanical - Industrial requires membership for participation - click to join
  • Electromechanical Knowledge Base & Frequently Asked Questions
  • Motion and Machine Controllers-
    • ACR Controllers-
      • 7000+
      • ACROBasic Programming (IPA/7000/9000)+
      • 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 Wire Limit Sensors to ACR9xxx and ACR7000 Controller
        • 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)+
    • 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+
  • AC/DC Industrial Drives+
  • Gearheads+
  • 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
      • Electromechanical - Industrial
      • Electromechanical – Mobile
    • Filtration
    • Fluid and Gas Handling
    • Hydraulics
    • IoT
      • Mobile IoT
    • Pneumatics
      • Pneumatic Industrial
      • Pneumatics Mobile
    • Process Control
    • Sealing and Shielding
  • 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
  • Sign in to reply
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 2023
  • Site Map
  • Safety
  • Privacy Policies
  • Terms and Conditions
  • Community Terms of Use
ENGINEERING YOUR SUCCESS.