Home

User`s Manual of ISaGRAF Embedded Controllers

image

Contents

1. Output pulse mode configuration l 8091 card provide two kind output method a CW CCW mode b Pulse Direction mode The command M_s_mode card_NO_ modeX_ modeY_ provide parameters 0 CW_CCW and 1 PULSE_DIR to define output pulse mode CW Mode 0 CW_CCW CCW Pulse Mode 1 PULSE_DIR Direction Fig 7 Output pulse mode Direction configuration Sometimes the output direction of X axis Y axis is not in the desired direction due to the motor s connection or gear train It is recommended to unify the output direction as shown in Figure 5 6 The CW FW direction is defined as toward outside from motor and the CCW BW direction is defined as toward inside to motor The M_s_dir card_NO_ defdirX_ defdirY_ command provides parameters 0 NORMAL_DIR and 1 REVERSE_DIR to define the rotating direction of motor User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 8 Turn Servo ON OFF Hold ON OFF To turn servo motor into servo ON OFF state or turn stepping motor into hold ON OFF state the command M_s_serv card_NO_ sonX_ sonY_ provide parameters 1 0N and 0 OFF to turn ON or OFF Automatic protection The l 8091 card has a automatic protected system a If X aixs command is executing and moving toward CW FW direction X axis will immediately stop when LS14 is touched To release this prot
2. SlotO Slot1 Slot2 Slot3 Slot4 Slot5 Slot6 Slot 7 1 8000 4 slot 0x080 OxOAO Ox0CO Ox0EO address l 8000 8 slot 0x080 OxOAO Ox0CO OxOEO 0x140 0x160 0x180 Ox1A0 address Fig 3 l 8000 hardware address User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 6 18 3 2 LED Indicator power ORG1 X axis s original limit switch for machine home position LS11 LS14 X axis s negative and positive limit switches ORG2 Y axis s original limit switch for machine home position LS21 LS24 Y axis s negative and positive limit switches EMG system s emergency signal input ORG1 LS11 LS14 ORG2 LS21 LS24 EMG Fig 4 l 8091 LED indicator 18 3 3 Hardware Configuration Limit switch configuration Because the profile generation and protection is executed by the CPU on l 8091 card the limit switches must configure as following diagram The motion command just can work properly CCW BW CW EW Motor on zz LS11 ORGI ai LS11 JORG ILS14 EXT GND_ a ENG i X axis Emergency Fig 5 Limit switch configuration of X axis User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 7 CCW BW CW FW lt lt gt Motor on ORG2 7 LS21 ORG2 LS24 EXT GND _ os l Y axis Fig 6 Limit switch configuration of Y axis
3. User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 1 Chapter 18 Motion 18 1 Install motion driver Limitation 1 8437 8837 CAN NOT do ethernet communication when using l 8091 to do motion control while W 8337 8737 doesn t have this limitation 2 Only one l 8091 board in I 8417 8817 8437 8837 amp W 8337 8737 can do X Y dependent motion other I 8091s should be moving independent Or all 8091s are moving independent The 8417 8817 8437 8837 amp Wincon 8337 8737 can integrate with the l 8091 to do Motion control The default ISaGRAF driver burned in the Flash memory of the I 8417 881 7 8437 8837 controller is for general usage not for motion control Please update it to the motion driver by yourself While user don t need to upgrade the driver of Wincon 8337 8737 if its driver version is 3 08 or higher The motion driver of I 8417 8817 8437 8837 can be found in the ICP DAS CD ROM napdos isagraf 8000 driver motion or can be downloaded from ftp icodas com pub cd 8000cd napdos isagraf 8000 driver motion Please refer to the ReadMe txt in the folder of motion for ex Motion2 45 Restriction of the motion driver of 1 8417 8817 8437 8837 The motion driver for I 8417 8817 8437 8837 doesn t support the Ethernet communication however W 8337 8737 desen t have this limitation The ISaGRAF demo projects of motion for I 8417 8817 8437 8837 are demo_27 demo
4. pin name pin Description number 5V SV_ _ temal 5V power Max output current 50mA_ ICW_PULSE1 2 X axis CW Pulse output pin CCW_DIR1 3 X axis CCW Direction output pin HOLDI 4 X axis HOLD servo on output pin _ CND p E Siona ground of pin 23 4 rA VCC External power 12 24V for limit switches fORG1 r ais original home limit switch LS11 8 X axis limit switch oo O 0 ie EXT_GND___f43 External ground for limit switch ___ A e internal E E CW_PULSE2 Y axis CW Pulse output pin ICCW_DIR2 16 Y axis CCW Direction output pin HOLD2 fiz Y axis HOLD servo on output pin exa vee fps External power 12 24V for limit switches Y axis original home limit switch ORG2 LS21 21 axis limit switch z 123 LS24 z axis limit switch EXT_GND External ground for limit switch User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 10 The internal circuit of CW_PULSE CCW_DIR HOLD When output these signal as 1 it can source 15mA max When output these signal as 0 it can sink 50mA max CW_PULSE1 CCW_DIR1 HOLD1 CW_PULSE2 CCW_DIR2 HOLD2 i8091 Fig 9 internal circuit of pulse output pin The internal circuit of limit switch input Initially the limit switch inputs of l 8091 board are normal open N O the l 8091 board will automatic protect when limit switch pin connect to EXT_GND The user can use the command M_s_nc card_NO_ 1 to let those limit
5. wdemo_28 wdemo_29 TMP M_s var 1 5 2 10 150 DDA_cycle 5 gt DDA period 5 1 1 024ms 6 144ms Acc_Dec 2 gt Acc Dec speed 2 6 144ms 42 52981 p s 2 Low_Speed 10_ gt low speed 10 6 144ms 1628pps High_Speed 150 gt high speed 150 6 144ms 24414pps User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 17 M_s dir Define output direction of axes Sometimes the output direction of X axis Y axis is undesired direction due to the motor s connection or gear train In order to unify the output direction as shown in Fig 5 and Fig 6 Where CW FW direction is defined as toward outside from motor CCW BW direction is defined as toward inside from motor This command provide parameters to define the rotating direction of motor Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 defdirxX _ integer X axis direction definition valid is O 1 defdirY _ integer Y axis direction definition valid is O 1 0 normal direction 1 reverse direction Return Q_ boolean always return TRUE Example 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 M_s_ mode Set output mode Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 modeX_ integer X axis mode valid is O 1 modeY_ integer Y axis mode valid is O 1 0 CW_CCW 1 PULSE_DIR Return Q_ boolean always re
6. command Two or more l 8091 cards in the same controller to use M_intIn2 M_intcL2 M_intar2 at the same time is not possible User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 31 1 8090 encorder commands M_r_enco Reset I 8090 s encorder value to 0 Parameters slot_ integer the slot No where the i8090 is plugged 0 7 axis_ integer 1 x axis 2 y axis 3 Z axis Return Q_ boolean always return TRUE Example demo_27 demo _28 demo_46 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 32
7. deceleration curve as long as the speed resolution is acceptable Example Stepping Motor The spec of stepping motor is 500 pulse rev max speed 500 rpm speed resolution 2 rpm The required max pulse rate PRmax 500 rpm 500 60 4166 67 pps The maximum output pulse Np 500rpm 2rpm 250 pulse number User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 5 The DDA cycle can be calculated by follow equation Np PRmax DDAcycle 1 1 024ms 250 4166 67 DDAcycle 1 1 024ms DDA cycle 58 High Speed 247 pulse 4166 67 58 0 001024 The above results means that maximum speed is 500rpm when send command i8091_SET_VAR 0 58 2 2 247 to l 8091 card Example Pulse type input Servo Motor The spec of servo motor is 8000 pulse rev max speed 3000 rpm speed resolution 2 rpm The required max pulse rate PRmax 3000 rpm 8000 60 400 000 pps The maximum output pulse Np 3000rpm 2rpm 1500 pulse number The DDA cycle can be calculated by follow equation Np PRmax DDAcycle 1 1 024ms 1500 400 000 DDAcycle 1 1 024ms DDA cycle 3 High Speed 1638 pulse 400 000 4 0 001024 The above results means that maximum speed is 3000rpm when send command i8091_SET_VAR 0 3 2 2 1638 to I 8091 card 18 3 Hardware 18 3 1 1 8000 hardware address The hardware address of l 8000 main system is fixed as following table There are 4 slots l 8000 and 8 slots l 8000
8. integer center point of circle relate to present position dir_ integer moving direction 0 CW 1 CCW speed __ integer 0 2040 acc_mode_ integer 0 enable acceleration deceleration profile 1 disable acceleration deceleration profile Return Q_ boolean always return TRUE Y X Y CW X CCW where radius sqrt X 2 Y 2 NOTE 1 Only one of M_intIn2 M_intcl2 amp M_intar2 command can be called at one time the other motion moving commands related to the same l 8091 card should not be called unless it is completed Please use M_intstp to test command of M_intIn2 M_intcl2 amp M_intar2 completed or not 2 One controller can only drive one l 8091 to move by M_intIn2 M_intcL2 M_intar2 command Two or more l 8091 cards in the same controller to use M_intIn2 M_intcL2 M_intar2 at the same time is not possible User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 29 M_intar2 Move a arc on X Y plane m_intar2 card_ This command will generate an interpolation arc on X Y plane It will automatically generate a trapezoidal speed profile of X axis and Y axis by state machine type calculation method Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 x_ y_ integer end point of arc relate to present position R_ integer radius of arc if gt 0 the arc lt 180 degree if lt 0 the arc gt 180 degree R_must gt square root of X_ X_ Y_ Y_ 2 dir_ integ
9. should be set again Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 Return Q_ boolean always return TRUE Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 16 M_s_ var Set motion system parameters To set DDA cycle accelerating decelerating speed low speed and high speed value Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 DDA_cycle_ integer DDA cycle valid is 1 254 Acc_Dec_ integer Acc Dec speed valid is 1 200 Low_Speed_ integer low speed valid is 1 200 Low_Speed_ gt Acc_Dec_ High _Speed_ integer high speed Low_Speed_ lt High_Speed lt 2047 Return Q_ boolean always return TRUE Note The lower DDA_cycle_ is given the smaller delay time between ORG1 ON and X_STOP ON or ORG2 ON and Y_STOP ON when using M_hsporg amp M_lsporg command For ex DDA_cycle_ set to 4 the delay time is about 5 to 13 ms High Speed Acc _ Dec Acc _ Dec Low_Speed Restriction Default value 1 lt DDA_ cycle lt 254 DDA_cycle 10 1 lt Acc _ Dec lt 200 Acc_Dec 1 Low_Speed 10 lt lt 1 lt Low_ Speed lt 200 High Speed 100 Low_ Speed lt High Speed lt 2047 Low_Speed gt Acc_Dec Example 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27
10. speed pulse move High speed move a specified pulse Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 AXIS_ integer 1 X axis 2 Y axis Pulse __ integer number of pulse to move if gt 0 move toward CW FW dir if lt 0 move toward CCW BW dir Return Q_ boolean always return TRUE high speed pulseN Example 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 22 M_nsppmv Normal speed pulse move Normal speed move a specified pulse Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 AXIS_ integer 1 X axis 2 Y axis Pulse __ integer number of pulse to move if gt 0 move toward CW FW dir if lt 0 move toward CCW BW dir SPEED _ integer Speed low speed lt SPEED_ lt high speed Return Q_ boolean always return TRUE Normal speed ApulseN Example 1 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 M_Ispmv Low speed move Low speed move toward the direction specified It can be stop by M_stpx or M_stpy or M_stpall command Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 DIR_ integer direction 0 CW 1 CCW AXIS_ integer 1 X axis 2 Y axis Return Q_ boolean always return TRUE Low speed TEA Exa
11. switch input as normal close condition at the beginning of the user s program EXT_VCC 12V 24V 4 7K ORG1 LS11 LS14 ORG2 LS21 LS24 i8091 EMG Fig 10 internal circuit of limit switch input pin User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 11 Example of connection KAA Fig 12 Sink type driver User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 12 CN2 DB25M 90 ex vogo Erici 12V 24V PHOME1 gt PHOME2 gt PLs gt pLs21 gt pist14 S pLs24 gt PEMG gt EXT GND S8091 card Fig 13 The connection between l 8090 and l 8091 for function testing or pulse feedback by 1 8090 encoder card User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 13 18 4 Software I O connection The I 8091A connectted on the I O connection window contains 11 digital input channels wn ISAGRAF WDEMO_26 I O connection E loj xi File Edit Tools Options Help a PBrO TI FAIS Input Channel EE Pj ref CH1 EMG emergency stop m i_8091A ne mwl NO_OR_NC CH2 FFEF FIFO is empty or not TRUE empty N d CH3 FFFF FIFO is full or not TRUE full IN CH4 LS11 Left limit swtch of X axis L511 Cte CH5 LS14 Right limit swtch of X axis CH6 ORG1 Original position swtch of X axis CH7 XSTOP Stop or not of X axis TRUE st
12. they are ignored The card_NO of I 8091A is equal to its slot No I 8xx7 0 7 W 8xx7 1 7 Parameters card_NO___ integer valid is 0 19 address _ integer the plugged slot address of the i8091 card slot 0 16 80 slot 1 16 A0 slot 2 16 CO slot 3 16 E0 slot 4 16 140 slot 5 16 160 slot 6 16 180 slot 7 16 1A0 Return Q_ boolean TRUE Ok FALSE Fail Example 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 declaration INIT as boolean lt internal gt and has initial value of TRUE TMP as boolean lt internal gt cardNO as integer lt internal gt and has intial value of 1 Do some init setting at 1st scan cycle if INIT then INIT FALSE TMP M_regist cardNO 16 80 plug i8091 in slot O TMP M_r_sys cardNO reset i8091 s setting TMP M_s _var cardNO 4 2 5 100 TMP M_s_dir cardNO 0 0 Normal direction TMP M_s_mode cardNO 1 1 pulse_dir mode X amp Y server ON Normal open TMP M_s_serv cardNO 1 1 TMP M_s_nc cardNO 0 end_if User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 15 M_r_sys Reset all setting To reset l 8091 card this command will terminate the running command in m_r_sys l 8091 card User can use this command as software emergency stop This me Q command also will clear all of setting so all l 8091 card s parameter
13. User s Manual of ISaGRAFe Embedded Controllers By ICP DAS CO LTD amp ICP DAS USA May 2003 All Rights Reserved The User s Manual of ISaGRAF Embedded Controllers is intended for integrators programmers and maintenance personnel who will be installing and maintaining an l 8417 881 7 8437 8837 7188EG amp I 7188XG series controller system featuring the ISaGRAF Workbench software program ICP DAS CO LTD would like to congratulate you own your purchase of our ISaGRAF controller The ease to integration of the controller system and the power of the IEC 61131 3 ISaGRAF software program combine to make a powerful yet inexpensive industrial process control system Legal Liability ICP DAS CO LTD assumes no liability for any and all damages that may be incurred by the user as a consequence of this product ICP DAS CO LTD reserves the right to change this manual at any time without notice ICP DAS CO LTD constantly strives to provide our customers with the most reliable and accurate information possible regarding our products However ICP DAS CO LTD assumes no responsibility for its use or for any infringements of patents or other rights of third parties resulting from its use Trademark amp Copyright Notice The names of products are used for identification purposes only and are the registered trademarks of their respective owners or companies Copyright January 2002 by ICP DAS CO LTD All Rights Reserved
14. _ 28 amp demo_46 They are located in the 8000 CD ROM napdos isagraf 8000 demo or from ftp icpdas com pub cd 8000cd napdos isagraf 8000 demo The ISaGRAF demo projects of motion for W 8337 8737 are wdemo_26 wdemo_27 wdemo_ 28 amp wdemo_29 They are located in the Wincon CD ROM napdos isagraf wincon demo or from ftp ftp icodas com pub cd winconcd napdos isagraf wincon demo User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 2 All functions that trigger l 8091 amp 1 8090 are named as M_ Please refer to the On line help from the ISaGRAF Help Library C functions for names starting with M_ A ISaGRAF Project Management ol x File Edit Project Tools Options Help echnical notes E x daol net g Terss 7 5 m ebus s1 Language reference C functions z om 10 boards a n s256 test 5256 i Reference t107 kser s manual Author o Date of creation 2002 9 26 ac m onana indaga 1 ake sure the motion driver is well installed Da tea eh Seen 3 46 Please refer to Napdos ISaGRAF 8000 Driver motion pdf Demo please refer to demo_27 demo_28 High SPeed move and stop when ORG1 ORG2 limit switch is toug Beside please refer to l 8091 amp 1 8090 User s Manual It can be found in the package box of the i 8091 or CD ROM napdos 8000 motion i8091 manual ftp
15. ane m_intIn2 This command will move a long interpolation line on X Y plane It will automatically generate a trapezoidal speed profile of X axis and Y axis by state machine type calculation method Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 x y_ integer end point relate to present position speed __ integer 0 2040 acc_mode__ integer 0 enable acceleration deceleration profile 1 disable acceleration deceleration profile Return Q_ boolean always return TRUE X Y 0 0 NOTE 1 Only one of M_intIn2 M_intcl2 amp M_intar2 command can be called at one time the other motion moving commands related to the same l 8091 card should not be called unless it is completed Please use M_intstp to test command of M_intIn2 M_intcl2 amp M_intar2 completed or not 2 One controller can only drive one l 8091 to move by M_intIn2 M_intcL2 M_intar2 command Two or more l 8091 cards in the same controller to use M_intIn2 M_intcL2 M_intar2 at the same time is not possible User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 28 M_intcl2 Move a circle on X Y plane m_intel2 card_ This command will generate an interpolation circle on X Y plane It will automatically generate a trapezoidal speed profile of X axis and Y axis by state machine type calculation method Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 x_ y_
16. been set by M_regist valid is 0 19 sw_ integer 0 N O default 1 N C Return Q_ boolean always return TRUE Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 19 Stop commands M_stpx Stop X axis m_stpx card Q Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 Return Q_ boolean always return TRUE Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 M_stpy Stop Y axis m_stpy Parameters card G card_NO_ integer the card No has been set by M_regist valid is 0 19 Return Q_ boolean always return TRUE Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 m_stpall card Q This command will stop X amp Y axes and clear all of commands pending in the FIFO M_stpall Stop X amp Y axes Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 Return Q_ boolean always return TRUE Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 20 Simple motion commands m_lsporg M_Isporg Low speed move to ORG ae Low speed move and stop when ORG1 ORG2 limit switch is to
17. ection as long as X axis move toward CCW BW direction b If X aixs command is executing and moving toward CCW BW direction X axis will immediately stop when LS11 is touched To release this protection as long as X axis move toward CW FW direction c If Y aixs command is executing and moving toward CW FW direction Y axis will immediately stop when LS24 is touched To release this protection as long as Y axis move toward CCW BW direction d If Y aixs command is executing and moving toward CCW BW direction Y axis will immediately stop when LS21 is touched To release this protection as long as Y axis move toward CW FW direction e If the signal of the emergency limit switch EMG was found in CPU firmware all motion will be terminated and stop Set limit switch as normal close condition The limit switches EMG LS11 LS14 LS21 LS24 ORG1 ORG2 is initially normal open condition that is these signal is active when connect it to ground In industrial application it might be recommended normal close condition that is these signal is active when open from ground The M_s_nc card_NO_ sw_ command can be set sw 0 default for normal open condition When set sw 1 for normal close condition User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 9 18 3 4 Pin assignment of connector CN2 CN2 DB25M 90 CW_PULSE2 Fig 8 CN2 connector of l 8091 Table of CN2 connector s pin assignment
18. ed until M_stpx or M_stpy or M_stpall is executed Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 AXIS_ integer 1 X axis 2 Y axis Return Q_ boolean always return TRUE Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 M_slwstp Slow down to stop m_slwstp To decelerate to stop vani AXIS Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 AXIS_ integer 1 X axis 2 Y axis Return Q_ boolean always return TRUE SLOW_STOP Example 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 25 Interpolation commands M_intp Move a short distance on X Y plane This command will move a short distance interpolation short line on X Y plane This command provided a method for user to generate an arbitrary curve on X Y plane Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 Xpulse_ integer 2047 lt Xpulse_ lt 2047 Ypulse_ integer 2047 lt Ypulse_ lt 2047 Return Q_ boolean always return TRUE Xpulse Ypulse 9 Example 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 NOTE For a lot of M_intp call set at the same time please check if the FIFO is n
19. er moving direction 0 CW 1 CCW speed __ integer 0 2040 acc_mode ___ integer 0 enable acceleration deceleration profile 1 disable acceleration deceleration profile Return Q_ boolean always return TRUE NOTE 1 Only one of M_intIn2 M_intcl2 amp M_intar2 command can be called at one time the other motion moving commands related to the same l 8091 card should not be called unless it is completed Please use M_intstp to test command of M_intIn2 M_intcl2 amp M_intar2 completed or not 2 One controller can only drive one l 8091 to move by M_intIn2 M_intcL2 M_intar2 command Two or more l 8091 cards in the same controller to use M_intIn2 M_intcL2 M_intar2 at the same time is not possible User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 30 M_intstp Test X Y plane moving command To test the below 3 commands completed or not M_intIn2 M_intcL2 M_intar2 It will return FALSE for interpolation command completed while return TRUE for busy not completed yet Return Q_ boolean TRUE busy FALSE completed NOTE 1 Only one of M_intIn2 M_intcl2 amp M_intar2 command can be called at one time the other motion moving commands related to the same l 8091 card should not be called unless it is completed Please use M_intstp to test command of M_intIn2 M_intcl2 amp M_intar2 completed or not 2 One controller can only drive one l 8091 to move by M_intIn2 M_intcL2 M_intar2
20. mple l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 23 M_hspmv High speed move High speed move toward the direction specified It can be stop by M_stpx or M_stpy or M_stpall command Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 DIR_ integer direction 0 CW 1 CCW AXIS_ integer 1 X axis 2 Y axis Return Q_ boolean always return TRUE high speed p Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 M_cspmv Change speed move This command will accelerate decelerate the selected axis s motor to the move_speed This command can be continuously send to l 8091 to dynamicly change speed The rotating motor can be stop by the command M_stpx M_stpy M_stpall or M_slwstp Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 dir_ integer direction 0 CW 1 CCW axis _ integer 1 X axis 2 Y axis move_speed_ integer 0 lt move_speed_ lt 2040 Return Q_ boolean always return TRUE move speed Acc_Dec Example 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 24 M_slwdn Slow down to low speed To decelerate to slow spe
21. mum output pulse rate will be 1Mpps The minimum output pulse rate is 3 83pps when set DDA cycle 254 DDA period 254 1 x1 024ms 261 12ms DDA period DDA cycle I X pulse Y pulse 6 Z pulse 4 Fig 2 DDA mechanism User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 4 Table 1 The Relation among DDA cycle DDA period and output pulse rate DDA cycle DDA period Max pulse Min pulse rate n 1 rate n 2047 14 2 048ms 999511pps 488pps 2 8 072ms 666341pps 325pps 3 4 096ms be E N 1 1 024ms 2047 DDA period 1 DDA period ee ee eed 254 261 12ms 7839pps 3 83pps The DDA cycle can be set by i8091_SET_VAR command which decribed in charpter 3 The selection criterion of DDA cycle was described as following 1 The required max output pulse rate PRmax Vmax N 60 2047 PRmax DDAcycle 1 1 024ms PRmax max output pulse rate Vmax max speed rpm N the pulse number of stepping motor per revolution pulse rev 2 The required speed resolution The maximum output pulse number is Np 0 2047 therefore the speed resolution is Vmax max speed Np The DDA cycle can be obtained by following equation Np PRmax DDAcycle 1 1 024ms 3 When choose large DDA cycle DDA period it will occur vibration between different pulse input which generally can be observed during acceleration or deceleration So the small DDA cycle the smooth acceleration
22. op CH8 LS21 Left limit swtch of Y axis CH9 LS24 Right limit swtch of Y axis CH10 ORG2 Original position swtch of Y axis CH11 YSTOP Stop or not of Y axis TRUE stop z l 8090 contains 3 analog input channels ww ISaGRAF TESTO1 I O connection l 0 x File Edit Tools Options Help Parameter me PO to RA E x_mode integer counting mode of X axis m naa Eai GEN y_mode integer counting mode of Y axis Eee GN jo NU z 10 z mode integer counting mode of Z axis a Sr 00 quadrant counting mode 5 a 10 CW CCW counting mode a 20 pulse direction counting mode Le 4 Input Channel CH1 encorder value of X axis 3 CH2 encorder value of Y axis CH3 encorder value of Z axis x CH1 to CH3 are signed 32 bit integer format User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 14 Setting commands M_regist Register one l 8091 m_regist In order to distinguish more than one l 8091 card in 8417 8817 8437 8837 card_ platform the l 8091 cards should be registrated before using it This command Mladdre will assign a card number card_NO_ to l 8091 card at that address _ If there is no l 8091 at the given address this command will return FALSE Note If using I _8091A rather than I_ 8091 on the I O connection window user don t need to call m_regist amp m_s_nc
23. ot full Call it if FIFO is not full FIFO indicator is a Digital Input resides at CH3 of i 8091 i 8091 D I channel on ISAaGRAF I O connection window CH1 EMG emergency stop CH2 FFEF FIFO is empty or not TRUE empty CH3 FFFF FIFO is full or not TRUE full CH4 LS11 Left limit swtch of X axis CH5 LS14 Right limit swtch of X axis CH6 ORG1 Original position swtch of X axis CH7 XSTOP Stop or not of X axis TRUE stop CH8 LS21 Left limit swtch of Y axis CH9 LS24 Right limit swtch of Y axis CH10 ORG2 Original position swtch of Y axis CH11 YSTOP Stop or not of Y axis TRUE stop User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 26 M_intin Move a long distance on X Y plane m_intin This command will move a long distance interpolation line on X Y plane The CPU on l 8091 card will generate a trapezoidal speed profile of X axis and Y axis and execute interpolation by way of DDA chip Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 Xpulse _ integer 524287 lt Xpulse_ lt 524287 Ypulse _ integer 524287 lt Xpulse_ lt 524287 Return Q_ boolean always return TRUE Xpulse Ypulse 0 0 Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 27 M_intin2 Move a long distance on X Y pl
24. site ftp ftp icodas com pub cd 8000cd napdos 8000 motion i8091 manual User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 3 18 2 Introduction 18 2 1 System Block Diagram The l 8091 stepping motor control card is a micro computer controlled 2 axis pulse generation card It includes a 2Kbytes FIFO to receive motion command from host a micro computer for profile generation and protection 2 axis DDA chip to execute DDA function when interpolation command is used 2500Vrms optical isolation inserted for industrial application 2K FIFO CPU DDA Chip k Profile Generation gt m X axis Interface Protection CN ii DDA Chi ip Optical Isolation Y axis l Limit Switch Input Port Ne Connector Limit Switch ini Limit Switch Signal Input Port Fig 1 block diagram of l 8091 card 18 2 2 DDA Technology The DDA chip is the heart of l 8091 card it will generate equal space pulse train corresponding to specific pulse number during a DDA period This mechanism is very useful to execute pulse generation and interpolation function The DDA period can be determined by DDA cycle Table 1 shows the relation among DDA cycle DDA period and output pulse rate When DDA cycle set to 1 the DDA period is equal to 1 1 x1 024ms 2 048ms The output pulse number can be set to 0 2047 therefore the maxi
25. turn TRUE CW Mode 0 CW_CCW CCW Pulse Mode 1 PULSE_DIR Direction Example 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 18 M_s_serv Set servo ON OFF Parameters card_NO_ integer the card No has been set by M_regist valid is 0 19 sonX_ integer X axis servo hold on switch valid is 0 1 sonyY_ integer Y axis servo hold on switch valid is 0 1 0 OFF 1 ON Return Q_ boolean always return TRUE Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 M_s_nc Set N O N C To set all of the following limit switches as N C normal close or N O normall open If set as N O those limit switches are active low If set as N C those limit switches are active high The auto protection will automatically change the judgement whatever it is N O or N C Limit switches ORG1 LS11 LS14 ORG2 LS21 LS24 EMG Note If using I _8091A rather than I_ 8091 on the I O connection window user don t need to call m_regist amp m_s_nc they are ignored The card_NO of I 8091A is equal to its slot No I 8xx7 0 7 W 8xx7 1 7 Parameters card_NO___ integer the card No has
26. uched DIR_ AXIS Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 DIR_ integer 0 CW 1 CCW AXIS_ integer 1 X axis 2 Y axis Return Q_ boolean always return TRUE ORG Low speed V M_hsporg High speed move to ORG High speed move and stop when ORG1 ORG2 limit switch is touched Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 DIR_ integer 0 CW 1 CCW AXIS_ integer 1 X axis 2 Y axis Return Q_ boolean always return TRUE ORG high speed V Example 1 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 Note The lower DDA_cycle_ is given the smaller delay time between ORG1 ON and X_STOP ON or ORG2 ON and Y_STOP ON when using M_hsporg amp M_Isporg command For ex DDA_cycle_ set to 4 the delay time is about 5 to 13 ms User s Manual Of ISaGRAF Embedded Controllers Jun 2004 Rev 4 0 ICP DAS 21 M_lIsppmv Low speed pulse move Low speed move a specified pulse Parameters card_NO___ integer the card No has been set by M_regist valid is 0 19 AXIS_ integer 1 X axis 2 Y axis Pulse _ integer number of pulse to move if gt 0 move toward CW FW dir if lt 0 move toward CCW BW dir Return Q_ boolean always return TRUE pulseN Loo E Example l 8417 8817 8437 8837 demo_46 demo_27 demo_28 W 8337 8737 wdemo_26 wdemo_27 wdemo_28 wdemo_29 M_hsppmv High

Download Pdf Manuals

image

Related Search

Related Contents

installation introduction limited warranty if your co  Display di testo TD 200  Transcend 2GB JetFlash 2A Silver        INSTRUÇÕES DE OPERAÇÃO  Edbak VWFS65-L flat panel wall mount  Installation Instructions ATTENTION: Read this before    

Copyright © All rights reserved.
Failed to retrieve file