ࡱ> SURq ;bjbjt+t+ !pAA7(]"""""""66668n6 **@@@@@@X Z Z Z K y M $|pq "@@@@@q ""@@*@"@"@X 66""""@X X ""X @$u66X GIDDINGS & LEWIS PiC Application Note Document Number: AN000040 Topic: SERCOS SCALING Introduction The SERCOS scaling tools allow the user to configure the weight of the operation data that is transferred between the control and the drive. The control can define the scaling at startup or it may query the current scaling and adapt to the existing scaling of a drive. This document addresses the intent of SERCOS scaling, how it is used in the PiC and shows some of the scaling variations that can be used. In the PiC product, there is a slight difference in how these scaling tools are used in the ladder versus how they are used with the online tools that run on the workstation. Examples: Examples are used to illustrate the different configurations and how the control uses information obtained from the drive to scale position information. Preferred Rotational Scaling at the motor A common scaling is to configure the position scaling of the drive such that one unit equals 0.0001 of a degree of motor rotation. With this scaling, to cause the motor to move 1 degree, a command value of 10,000 would be sent to the drive. This configuration would be defined by setting the value of IDN76 to 0x02. An 0x02 in IDN 76 defines rotational, preferred (defined as 1 unit = 0.0001 degree), in degrees. The scaling between the drive and control is independent from the resolution of the feedback device mounted on the drive. In this example, we can assume there are 60,000 hardware counts of the feedback device per revolution of the motor shaft. The following table shows how the drive would interpret a command from the control of 10,000 to represent 1 degree of physical motion. Value on the fiber linkScaling to convert to degrees (based on IDN 76)Resulting number of degreesNumber of feedback counts per degreeNumber of counts the device moved10000x 0.0001 1x 60,00060,000 Note that the number of feedback device counts per degree is a drive/motor implementation issue. The IDN that is used to command the drive position is IDN47. To determine the drive position scaling, the control can read the attribute and units of IDN47. In the above example, the drive would respond with degrees when the units were read and the value of 0x04220001 when the attribute was read. The attribute is expanded as follows. 0 4 2 2 0 0 0 1 | | | \ / | | | +---+------ multiplier = 1 | | +------------- 4 byte data | +--------------- signed integer +----------------- display four places after decimal point The units string states that the position is to be programmed in degrees, and the attribute states that there are four digits to the right of the decimal point. The multiplier in this case is one. By reading the units and attribute, the control can present the units to an operator, and then properly convert the entered values for transmission to the drive. The above example can be expanded as follows: In the controlIn the driveValue entered by the userScaling to convert to drive unitsValue on the fiber linkScaling to convert to degreesResulting number of degreesFeedback counts per degreeNumber of counts the device moved1.000x 1000010000x 0.0001 1x 60,00060,000 The scaling of 0.0001 degree per count is special in that the SERCOS spec allows this scaling to be defined by setting only one bit the preferred bit of IDN76. Parameter Rotational Scaling at the motor The next example shows a scaling of 0.005 degree of motor shaft per count of transmission data. This scaling is defined as parameter instead of the preferred scaling in the above example. For parameter scaling, IDN76 is programmed as: 0x0A (10 in decimal). Note that bits 0-2 still indicate rotary scaling. With rotary parameter scaling IDN79 must also be written in order to define the number of counts in 360 degrees of rotation. For our example, of 0.005 degree per count, 72000 would be written to IDN 79. After writing this value to the drive, reading the attribute of IDN 47 from the drive would result in 0x03220005: 0 3 2 2 0 0 0 5 | | | \ / | | | +---+------ multiplier = 5 | | +------------- 4 byte data | +--------------- signed integer +----------------- display three places after decimal point In the controlIn the driveValue entered by the userScaling to convert to drive unitsValue on the fiber linkScaling to convert to degreesResulting number of degreesFeedback counts per degreeNumber of counts the device moved1.000x 1000 / 5200x 0.001 x 5 1x 60,00060,000 Note that the user would see no difference in how data is entered even though the scaling between the control and drive changed. The following table shows how the scaling is used to display data read from the drive. In the driveIn the controlNumber of counts the device movedFeedback counts per degreeResulting number of degreesScaling to convert to degreesValue on the fiber linkScaling to convert to drive unitsValue viewed by the user60,000/ 60,0001x 100 / 5 200x 5 / 10001.000 degrees How the PiC900 architecture interacts with the scaling. Data between the control and drive can be sent and received using one of two tools; the ladder diagram and the SERCOS online tools. Each of these two use scaling differently. Sending and receiving using SERCOS online tools Prior to using the SERCOS on line tools, the user is strongly encouraged to first upload all IDNs with their units, and attributes. This complete list of IDNs with all the attributes is stored in a file on the workstation with a .CSV extension. Once this is done, the online tools take advantage of the attributes and units read from the drive to do the scaling on the entered and displayed data. In the workstationIn the driveValue entered by the userScaling to convert to drive unitsValue on the fiber linkScaling to convert to degreesResulting number of degreesFeedback counts per degreeNumber of counts the device moved1.000x 1000 / 5200x 0.001 x 5 1x 60,00060,000 The workstation makes the conversion of units based on the .CSV file and sends this data to the PiC900, which then sends the data on the fiber link to the drive. In the driveIn the workstationNumber of counts the device movedFeedback counts per degreeResulting number of degreesScaling to convert to degreesValue on the fiber linkScaling to convert to drive unitsValue viewed by the user60,000/ 60,0001x 100 / 5 200x 5 / 10001.000 degrees The read of data from the drive is scaled and displayed in the workstation This internal scaling of data requires that the attribute stored in the .CSV file be the same as the scaling done inside the drive. If the drive scaling changes, the changes must also be made to the .CSV file. Care must be taken here. Changing the data value of some IDNs in the drive can change the attributes, and therefor the scaling of related IDNs. Note that if attributes or units are changed in the drive, that the information must be uploaded again in order for the online tools to properly scale the data. The IDN list must always be uploaded after scaling changes are made in the drive. Changing the data of the following IDNs will affect the scaling (and attributes) other IDNs. Because this list is not complete, refer to the drive documentation. 76, 77, 78, 79, 44, 45, 46, 160, 161, 162, 86, 93, 94 Sending and receiving in ladder. In the ladder diagram, scaling the number before transmission is the responsibility of the ladder logic. The values on the fiber link are the same values that are in the data structures contained in the ladder data variables. These values must be scaled in accordance to how the drive interprets the data. There are two fundamental ways the ladder can be written to correctly scale data. The ladder can read the units and attributes of the drive to make this determination (in a similar manner as the online tools), or the ladder can be written with knowledge of the units. The scaling applies to data written to the drive and data read from the drive. In the ladderIn the driveValue in the ladder variableValue on the fiber linkScaling to convert to degreesResulting number of degreesFeedback counts per degreeNumber of counts the device moved200200x 0.001 x 5 1x 60,00060,000 The workstation makes the conversion of units based on the .CSV file and sends this data to the PiC900, which then sends the data on the fiber link to the drive. In the driveIn the ladderNumber of counts the device movedFeedback counts per degreeResulting number of degreesScaling to convert to degreesValue on the fiber linkValue stored in ladder variable60,000/ 60,0001x 100 / 5 200200 Scaling relationship between servo setup and SERCOS setup. In Servo setup, when an axis is configured as SEROCS, a feedback unit is equivalent to the units sent on the fiber link. Advanced Position Scaling The examples shown above illustrate rotary scaling as seen by the motor shaft. Additional IDNs are used to define position scaling as seen at the load shaft connected by belts or gears and scaling as seen by the linear motion of a ball screw or pinion. Other parameters such as velocity and acceleration can be scaled. Drive products will vary in their support of these different scaling tools. Rotational Scaling at the load. To scale units as seen by the load, bit 6 of IDN 76 is set. If this bit is set, and bits 0-2 indicate rotary, IDN121 and IDN 122 define the gear relationship between the motor and the load. The units programmed will then be in terms of load rotation rather than motor rotation. This additional ratio will be applied by the drive when scaling incoming and outgoing position data. When scaling at the motor shaft, the drive and motor manufacturer defines the number of counts per degree of motion and can therefore state the units string of the position IDNs. In contrast, when scaling at the load, virtually any numerical scaling can be defined by the user, and the units string provided by the drive may not have meaning. Preferred Linear scaling There are two preferred linear scaling definitions, 1 unit = 10-7 meters and 1 unit = 10-6 inches. Linear is specified by setting bits 0-2 to 001. Metric is specified by setting bit 4 = 0 and inches are specified by setting bit 4 = 1. Note also that for a rotary motor in linear scaling, only at the load makes sense. Linear motors in rotary scaling would not likely be used, but also would only make sense at the load In order for the linear scaling to be correct, the mechanical system of transferring rotary motion to linear motion must be designed in accordance to the drive/motor specifications. Parameter Linear scaling For linear scaling that is not one of the two standard choices, IDN77 and IDN 78 are provided. IDN 77 is the integer scaling multiplier and IDN78 is a signed exponent of 10 multiplier. These two allow the linear distance of the ball screw or pinion to be defined. As with rotary scaling, when the user defines the numerical scaling, the units string provided by the drive for position IDNs may not have meaning. Velocity, Acceleration & Torque Scaling Velocity , acceleration and torque can be scaled in a similar manner as position. The IDNs for these are as follows: velocity - 44, 45,46 acceleration 160, 161, 162 torque 86, 93, 94 Effects on attributes of velocity and position IDNs L.D H. June 26,1998 This is data taken using the Indramat DDS2.1 Values indicated by bold were written to the drive to determine the effect on other IDNs. The units and attributes of position and velocity IDNS are affected by the appropriate scaling IDNs. velocity IDN 44 IDN 45 IDN 46 IDN36 attribute IDN36 units 2#0001010 1 -4 16#04220001 U/min 2#0001010 2 -4 16#04220002 2#0001010 2 0 16#00220002 2#0000010 1 -4 16#04220001 U/min??? 2#0000010 error 28677 occurs when attempt to change IDN 45 2#0100010 1 -6 16#06220001 U/s notes: Change in 45 and 46 are reflected in attribute of 36 if in parameter scaling. Units really dont necessarily have meaning if in parameter scaling. position IDN 76 IDN 77 IDN 78 IDN 79 IDN47 attribute IDN 47 units 2#0000010 1 -4 3600000 16#4220001 grad 2#0000001 (error 28680 occurred) 2#1000001 1 -4 3600000 16#4220001 mm 2#1010001 1 -6 3600000 16#6220001 inch 2#0001010 1 -4 3600000 16#4220001 grad 2#0000010 1 -4 3600 16#1220001 grad 2#0000010 2 -4 3600 16#1220001 grad 2#0000010 2 -4 3600000 16#4220002 mm 2#1001001 1234 -4 3600000 16#42204d2 mm notes: If in linear, at the motor is also required. Change in 77 and 78 are reflected in attribute of 47 only if in linear and parameter scaling. Change in 79 are reflected in attribute of 47 only if in rotary and parameter scaling. 1234 in decimal is 4d2 in hex. Examples of Attributes IDN 1 cycle time 0 0 1 1 0 0 0 1 | | | \ / | | | +---+------ conversion = 1 | | +------------- 2 bytes of data and Not a PCF | +--------------- unsigned integer +----------------- zero places after decimal point IDN 17 list of all idns 0 0 5 5 0 0 0 1 | | \ / | | +---+------ conversion = 1 (a list) | +------------- variable length of 2 byte data and Not a PCF +--------------- display as an IDN list IDN 36 velocity command - if data read is 217, display as 0.0217 0 4 2 2 0 0 0 1 | | | \ / | | | +---+------ conversion = 1 | | +------------- 4 bytes of data and Not a PCF | +--------------- signed integer +----------------- display four places after decimal point IDN 47 position command - if data read is 123, display as 0.246 0 3 2 2 0 0 0 2 | | | \ / | | | +---+------ conversion = 2 | | +------------- 4 bytes of data and Not a PCF | +--------------- signed integer +----------------- display three places after decimal point Revision History Date: 26-OCT-99 Author: Larry Den Hartog/ Don Seichter Changes: Original Date: [For each revision, enter the date revised,] Author: [the name of the person revising the document,] Changes: [and indicate what changes were made.] scaling notes.doc  DATE 10/21/99 &;EM_`m[) Oy!!6!U&& '&'((++,,,,".;./000Q1V112:2i2j222222223334 4,454M4V4w44444455!5*5U5Y5677i88>*>*CJH*OJQJCJ5 CJOJQJ5CJOJQJ CJOJQJ CJOJQJR&'()DE\]^_`mz{Z[ $ ! !$&d$$d$d$&'()DE\]^_`mz{Z[  ' I J P ] _ i p q r ) 9 I n 5Prsyy5X}/Mi b  ' I J P ] _ i p q r ) 9 I n ڜ !$$lFN P!$ !5Prsyy0 !$$l8$ &l $ !$$l4 $$ !y5X}/Mi0$$l4 $ \ f!$ ! $$ ! !de,$$l4 4f! $$ ! !$ !$$l8$ \ 4 f!de4Rj!"%A\~\]jk~0IJQ[]jn| !!6!#######$5$Q$ b4Rj!"$ ! !$$l8$ \ 4 f!$ !%A\~0$$l8$ \ 4 f!$$l4 $ \ f!$ ! $$ !\]jk~0IJQ[]jn,$$l8$ \ 4 f!$$l4 4f!$ ! $$ ! !n| !!6!#######$$l4   $$ ! !$$l8$ \ 4 f!$ !#$5$Q$l$$$$$$$$$$$]%^%k%l%z%{%٬$$l4 4z $$ ! !$$l ,dP$ !Q$l$$$$$$$$$$$]%^%k%l%z%{%%%%% &*&+&2&<&>&K&O&S&T&U&& ' '&'''(((O*P*+++i-j-!.".;.C/D///0v0000001=1112:2_2|222233&3t33334,4M4w4444!5K5x5y555 6d66666 b{%%%%% &*&+&2&<&>&K&O&S&T&U&& ' '&'''(((٤$ ! !$$l$ \ 4z$ !(O*P*+++i-j-!.".;.C/D///0v0000001=1112:2_2$ !_2|222233&3t33334,4M4w4444!5K5x5y555 6d6666$666666666,7S77777777788e8h8i888888(9 !$66666666,7S77777777788e8h8i888888(9M99999999:K:p:::::::;;;E;~;;;;;;;;; 9(9M99999999:K:p:::::::;;;E;~;;;;;;&d$ !899:::::::;;;E;N;~;;;;;;;;;;mH jU CJOJQJ5CJOJQJ5CJOJQJOJQJ;;;; !0/ =!"#$% [$@$NormalmH 4@4 Heading 1 $$@&CJ<A@<Default Paragraph Font,@,Header  !, @,Footer  !7 p'''*8;"6 yn#{%(_26(9;;#%&'(*+,-.012357Q$6;$)/4$*/ 0 3 4 5 6 _c48QU##&'++W,[,,,--5-----222222223333333333444444555555667778Cgq  \ i 5 = d k eh#0HLkttu$$*'d'''$(R(T(|(, ,v,~,,,,,,,-.../$///y1~1 222222 33?3J3f3m3333344K4U4m4z4445 5;5D5`5j55566*6.6^6g6667777Larry J. Den Hartog.C:\TEMP\AutoRecovery save of scaling notes.asdLarry J. Den Hartog.C:\TEMP\AutoRecovery save of scaling notes.asdLarry J. Den Hartog.C:\TEMP\AutoRecovery save of scaling notes.asdLarry J. Den Hartog.C:\TEMP\AutoRecovery save of scaling notes.asdLarry J. Den Hartog.C:\TEMP\AutoRecovery save of scaling notes.asdLarry J. Den Hartog#D:\WINDOCS\SERCOS\scaling notes.docLarry J. Den Hartog#D:\WINDOCS\SERCOS\scaling notes.docDonald H Seichter!C:\WINDOWS\TEMP\scaling notes.docDonald H Seichter C:\Word\SERCOS\scaling notes.docDonald H SeichterC:\Word\SERCOS\AN000040.doc@HP LaserJet Word Proc\\Controlsfs1\wp_hp3dHPPCL5MSHP LaserJet Word ProcHP LaserJet Word Proc@w ,,@MSUDNHP LaserJet IIIDd HP LaserJet Word Proc@w ,,@MSUDNHP LaserJet IIIDd 77$t777@GTimes New Roman5Symbol3& Arial?5 Courier New"qh':F':Fe:-a$20de8SERCOS Scaling mechanismGIDDINGS AND LEWIS - MILITARYDonald H SeichterOh+'0 ( D P \ ht|ERCGIDDINGS AND LEWIS - MILITARYMiIDDIDD Normal.dotDDonald H Seichter -2naMicrosoft Word 8.0-@F#@@xu@xu-Giddings & Lewis - Downloads՜.+,D՜.+,p, px  GIDDINGS AND LEWIS - MILITARYaae81 SERCOS Scaling mechanism Title 6> _PID_GUIDAN{6F12C23A-86D6-11D3-9A18-AA0004001C04}  !"#$%&'()*+,-./012345678:;<=>?@AKLMNOPQTWRoot Entry FuYiZѿV1TableG*DDD9&,DWordDocumentDDVhH!pSummaryInformation(\DHDocumentSummaryInformation8)JDCompObj\ \ DjObjectPoolLuLuD` D<@D00   FMicrosoft Word Document MSWordDocWord.Document.89qOh+'0 ( D P \ ht|ERCGIDDINGS AND LEWIS - MILITARYMiIDDIDD Normal.dotDDonald H Seichter -2naMicrosoft Word 8.0-@F#@@xu@xu-Giddings & Lewis - Downloads