ACR-MOTIONMAX Installation Guide

20

Step 13. Editing the S Code Function

When ACR-MOTIONMAX Encounters a SCode … Example: S2000.

It will do the following Steps.

1). Check if the Requested Spindle Speed is different from the Current Spindle Speed.

2). If it is it then checks if the Speed is within the current Gear Range as defined in the Parameters.

3). If the new Speed requires a different Gear, ACR-MOTIONMAX will set the Binary code of the Gear Range to be in.

4). If Gear Change is Required then the AcroBasic shall stop the spindle and switch to the new Gear Range.

5). If the spindle was previously running (SpindleRunning Bit 190 =1) then the function will restart the spindle and wait till its running at the commanded speed.

6). If the spindle wasn’t previously running (SpindleRunning Bit 190 =0) the function should write the Dac value but not restart the spindle.

7). The function then Clears the S Strobe and sets the S Done bits to Signal ACR-MOTIONMAX to continue.

Parameters Gear Range Section of the Parameters File [SpindleOptions]

SpindleGears=3

SpindleMaxRPMGearRange0=1000

SpindleMaxRPMGearRange1=2000

SpindleMaxRPMGearRange2=4000

SpindleMaxRPMGearRange3=4000

Control Signals used with S Codes:

S Strobe

Bit 151

Set by ACR-MOTIONMAX to Trigger the SCode

 

 

Handler Function

S Done

Bit 148

Set by AcroBasic when S function is completed

SpindleRunning

Bit 190

Tells AcroBasic if spindle was Previously Running

GearChangeActive

Bit 176

Set in AcroBasic to Signal a Gear change is occurring

GearRangeBit0

Bit 177

LSB of 3 bit Binary code of Gear Range

GearRangeBit1

Bit 178

Binary code of Gear Range

GearRangeBit2

Bit 179

MSB of 3 bit Binary code of Gear Range

Axis5 Dac (Spindle Axis)

P6480

ACR-MOTIONMAX Writes this as the Spindle

 

 

Speed

REM ********************

REM *** S Strobe Sub ***

REM ********************

8000 IF (NOT CTLMDone) THEN GOTO 8990

8010 IF (NOT CTLTDone) THEN GOTO 8990

8011 IF (CTLTStrobe) THEN GOTO 8990

REM ~ STORE D/A, CLR SPINDLE ORIENTED SIGNAL, SAVE STATE OF SFWD/SREV

8013 P3 =P6480: P4= OUTSpindleForward: P5= OUTSpindleReverse: AXIS5 OFF

Insert Your S Code & Gear Change Logic Code Here

REM IF SPINDLE WAS RUNNING, RESTORE D/A AND DIRECTIONS & WAIT FOR UPTOSPEED

8351 IF (BIT 190) THEN P6480= P3: OUTSpindleForward= P4: OUTSpindleReverse= P5: INH 259: GOTO 8420

REM ~ ELSE CLR FWD & REV ENABLES & reset D/A 8352 OUTSpindleForward: OUTSpindleReverse: P6480= P3

REM ~CLEAN UP

8420 SET CTLSDone: CLR 183 : REM Set SDONE, clear spindle oriented bit

Page 20
Image 20
Parker Hannifin VERSION 1.0 manual Editing the S Code Function, Control Signals used with S Codes

VERSION 1.0 specifications

Parker Hannifin Corporation, founded in 1917, is a global leader in motion and control technologies. With over a century of experience, the company has established itself as a trusted provider of high-quality solutions across various industries, including aerospace, automotive, healthcare, and manufacturing.

One of Parker Hannifin's main features is its diverse product range, which encompasses a wide array of systems and components designed to enhance the efficiency and reliability of machinery and equipment. The company specializes in hydraulic, pneumatic, and electromechanical systems, demonstrating expertise in fluid and motion control. Their products include hydraulic pumps, valves, cylinders, filters, and various seals, all engineered for optimal performance under demanding conditions.

Parker Hannifin is known for its commitment to innovation and technology. The company invests significantly in research and development to stay at the forefront of technological advancements in its field. This dedication has led to the integration of smart technology in their products, enabling real-time monitoring and predictive maintenance capabilities. The incorporation of IoT (Internet of Things) technology allows customers to optimize their operations while reducing downtime and maintenance costs.

Another characteristic of Parker Hannifin is its emphasis on sustainability. The company has made it a priority to develop eco-friendly products that help reduce energy consumption and environmental impact. By leveraging advanced materials and manufacturing techniques, Parker Hannifin produces lightweight components that improve fuel efficiency in transportation applications, contributing to a lower carbon footprint.

Moreover, Parker Hannifin's global footprint allows it to serve customers in various regions while providing localized support. With manufacturing facilities, distribution centers, and sales offices strategically located worldwide, the company ensures quick response times and tailored solutions for specific market needs.

In summary, Parker Hannifin Corporation is a dynamic leader in motion and control technologies, with a commitment to innovation, sustainability, and customer satisfaction. Their extensive range of high-performance products, coupled with advanced technologies and a global presence, positions Parker Hannifin as a reliable partner for industries seeking to enhance operational efficiency and reliability.