随便找一个伺服驱动器的宏就可以
时间: 2024-03-08 07:47:20 浏览: 70
好的,以下是一个伺服驱动器的Eplan宏的示例,供您参考:
```
/*+*************************************************************************
* FUNCTION_NAME: SERVO_DRIVE_MACRO
* DESCRIPTION: Macro for a Servo Drive
* REVISION: 1.0
* CREATED_BY: EPLAN Engineering Center Shanghai Co., Ltd.
* CREATED_DATE: 2021-09-30
* **************************************************************************/
MACRO SERVO_DRIVE_MACRO
ATTRIBUTE AT_DEFAULT_MACRO
ATTRIBUTE AT_MACRO_NAME SERVO_DRIVE_MACRO
ATTRIBUTE AT_MACRO_CATEGORY DEVICE_MACRO
ATTRIBUTE AT_MACRO_DESCRIPTION "Macro for a Servo Drive"
ATTRIBUTE AT_MACRO_AUTHOR "EPLAN Engineering Center Shanghai Co., Ltd."
ATTRIBUTE AT_MACRO_VERSION "1.0"
ATTRIBUTE AT_MACRO_DATE "2021-09-30"
ATTRIBUTE AT_MACRO_COMMENTS "Macro for a Servo Drive"
ATTRIBUTE AT_MACRO_KEYWORDS "servo, drive"
ATTRIBUTE AT_MACRO_LANGUAGE LANG_ENGLISH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_GERMAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_CHINESE
ATTRIBUTE AT_MACRO_LANGUAGE LANG_JAPANESE
ATTRIBUTE AT_MACRO_LANGUAGE LANG_RUSSIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_FRENCH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_SPANISH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_ITALIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_KOREAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_PORTUGUESE
ATTRIBUTE AT_MACRO_LANGUAGE LANG_TURKISH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_POLISH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_CZECH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_DUTCH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_HUNGARIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_SWEDISH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_FINNISH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_DANISH
ATTRIBUTE AT_MACRO_LANGUAGE LANG_NORWEGIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_SLOVAKIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_SLOVENIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_GREEK
ATTRIBUTE AT_MACRO_LANGUAGE LANG_ROMANIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_BULGARIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_CROATIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_SERBIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_UKRAINIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_ESTONIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_LATVIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_LITHUANIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_ARABIC
ATTRIBUTE AT_MACRO_LANGUAGE LANG_HEBREW
ATTRIBUTE AT_MACRO_LANGUAGE LANG_CHINESE_TRADITIONAL
ATTRIBUTE AT_MACRO_LANGUAGE LANG_INDONESIAN
ATTRIBUTE AT_MACRO_LANGUAGE LANG_MALAY
ATTRIBUTE AT_MACRO_LANGUAGE LANG_THAI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_VIETNAMESE
ATTRIBUTE AT_MACRO_LANGUAGE LANG_TAGALOG
ATTRIBUTE AT_MACRO_LANGUAGE LANG_HINDI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_BENGALI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_PUNJABI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_GUJARATI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_TAMIL
ATTRIBUTE AT_MACRO_LANGUAGE LANG_TELUGU
ATTRIBUTE AT_MACRO_LANGUAGE LANG_KANNADA
ATTRIBUTE AT_MACRO_LANGUAGE LANG_MARATHI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_MALAYALAM
ATTRIBUTE AT_MACRO_LANGUAGE LANG_ASSAMESE
ATTRIBUTE AT_MACRO_LANGUAGE LANG_KASHMIRI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_NEPALI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_SINDHI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_URDU
ATTRIBUTE AT_MACRO_LANGUAGE LANG_BIHARI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_HARYANVI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_RAJASTHANI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_ODIA
ATTRIBUTE AT_MACRO_LANGUAGE LANG_KONKANI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_MANIPURI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_SANSCRIT
ATTRIBUTE AT_MACRO_LANGUAGE LANG_KOKBOROK
ATTRIBUTE AT_MACRO_LANGUAGE LANG_MIZO
ATTRIBUTE AT_MACRO_LANGUAGE LANG_GARO
ATTRIBUTE AT_MACRO_LANGUAGE LANG_KHASI
ATTRIBUTE AT_MACRO_LANGUAGE LANG_OTHER
BEGIN
PROPERTY POS_X = 0.0
PROPERTY POS_Y = 0.0
PROPERTY SIZE_X = 70.0
PROPERTY SIZE_Y = 40.0
PROPERTY BORDER_WIDTH = 0.5
PROPERTY BORDER_COLOR = COLOR_BLACK
PROPERTY BACKGROUND_COLOR = COLOR_WHITE
PROPERTY TEXT_COLOR = COLOR_BLACK
PROPERTY TEXT_ORIENTATION = ORIENTATION_LEFT
PROPERTY TEXT_HEIGHT = 2.5
PROPERTY TEXT_FONT = "Arial"
PROPERTY TEXT_H_ALIGN = ALIGN_CENTER
PROPERTY TEXT_V_ALIGN = ALIGN_CENTER
SYMBOL_TYPE "Servo Drive"
SYMBOL_DESCRIPTION "Servo Drive"
SYMBOL_KEYWORDS "servo, drive"
PIN_NAME "Power"
PIN_NAME "Ground"
PIN_NAME "Encoder A"
PIN_NAME "Encoder B"
PIN_NAME "Encoder Z"
PIN_NAME "Analog Input 1"
PIN_NAME "Analog Input 2"
PIN_NAME "Analog Input 3"
PIN_NAME "Digital Input 1"
PIN_NAME "Digital Input 2"
PIN_NAME "Digital Input 3"
PIN_NAME "Digital Input 4"
PIN_NAME "Digital Output 1"
PIN_NAME "Digital Output 2"
PIN_NAME "Digital Output 3"
PIN_NAME "Digital Output 4"
PROPERTY PINCOUNT = 16
PROPERTY PINSPACING_X = 5.0
PROPERTY PINSPACING_Y = 5.0
PIN_LAYOUT_TYPE PIN_LAYOUT_RECT
PIN_LAYOUT_MODE PIN_LAYOUT_MODE_AUTO
PIN_LAYOUT_ORIENTATION PIN_LAYOUT_ORIENTATION_AUTO
PIN_LAYOUT_DIRECTION PIN_LAYOUT_DIRECTION_AUTO
PROPERTY PIN1_X = 0.0
PROPERTY PIN1_Y = 20.0
PROPERTY PIN2_X = 0.0
PROPERTY PIN2_Y = -20.0
PROPERTY PIN3_X = 70.0
PROPERTY PIN3_Y = 15.0
PROPERTY PIN4_X = 70.0
PROPERTY PIN4_Y = 10.0
PROPERTY PIN5_X = 70.0
PROPERTY PIN5_Y = 5.0
PROPERTY PIN6_X = 70.0
PROPERTY PIN6_Y = -5.0
PROPERTY PIN7_X = 70.0
PROPERTY PIN7_Y = -10.0
PROPERTY PIN8_X = 70.0
PROPERTY PIN8_Y = -15.0
PROPERTY PIN9_X = 35.0
PROPERTY PIN9_Y = 20.0
PROPERTY PIN10_X = 35.0
PROPERTY PIN10_Y = -20.0
PROPERTY PIN11_X = 50.0
PROPERTY PIN11_Y = 20.0
PROPERTY PIN12_X = 50.0
PROPERTY PIN12_Y = -20.0
PROPERTY PIN13_X = 20.0
PROPERTY PIN13_Y = 20.0
PROPERTY PIN14_X = 20.0
PROPERTY PIN14_Y = -20.0
PROPERTY PIN15_X = 5.0
PROPERTY PIN15_Y = 20.0
PROPERTY PIN16_X = 5.0
PROPERTY PIN16_Y = -20.0
PROPERTY PIN1_NAME = "Power"
PROPERTY PIN2_NAME = "Ground"
PROPERTY PIN3_NAME = "Encoder A"
PROPERTY PIN4_NAME = "Encoder B"
PROPERTY PIN5_NAME = "Encoder Z"
PROPERTY PIN6_NAME = "Analog Input 1"
PROPERTY PIN7_NAME = "Analog Input 2"
PROPERTY PIN8_NAME = "Analog Input 3"
PROPERTY PIN9_NAME = "Digital Input 1"
PROPERTY PIN10_NAME = "Digital Input 2"
PROPERTY PIN11_NAME = "Digital Input 3"
PROPERTY PIN12_NAME = "Digital Input 4"
PROPERTY PIN13_NAME = "Digital Output 1"
PROPERTY PIN14_NAME = "Digital Output 2"
PROPERTY PIN15_NAME = "Digital Output 3"
PROPERTY PIN16_NAME = "Digital Output 4"
PROPERTY PIN1_DIRECTION = PIN_DIRECTION_INPUT
PROPERTY PIN2_DIRECTION = PIN_DIRECTION_OUTPUT
PROPERTY PIN3_DIRECTION = PIN_DIRECTION_BIDIRECTIONAL
PROPERTY PIN4_DIRECTION = PIN_DIRECTION_BIDIRECTIONAL
PROPERTY PIN5_DIRECTION = PIN_DIRECTION_INPUT
PROPERTY PIN6_DIRECTION = PIN_DIRECTION_INPUT
PROPERTY PIN7_DIRECTION = PIN_DIRECTION_INPUT
PROPERTY PIN8_DIRECTION = PIN_DIRECTION_INPUT
PROPERTY PIN9_DIRECTION = PIN_DIRECTION_INPUT
PROPERTY PIN10_DIRECTION = PIN_DIRECTION_INPUT
PROPERTY PIN11_DIRECTION = PIN_DIRECTION_INPUT
PROPERTY PIN12_DIRECTION = PIN_DIRECTION_INPUT
PROPERTY PIN13_DIRECTION = PIN_DIRECTION_OUTPUT
PROPERTY PIN14_DIRECTION = PIN_DIRECTION_OUTPUT
PROPERTY PIN15_DIRECTION = PIN_DIRECTION_OUTPUT
PROPERTY PIN16_DIRECTION = PIN_DIRECTION_OUTPUT
PROPERTY PIN1_CONNECTOR_TYPE = ""
PROPERTY PIN2_CONNECTOR_TYPE = ""
PROPERTY PIN3_CONNECTOR_TYPE = ""
PROPERTY PIN4_CONNECTOR_TYPE = ""
PROPERTY PIN5_CONNECTOR_TYPE = ""
PROPERTY PIN6_CONNECTOR_TYPE = ""
PROPERTY PIN7_CONNECTOR_TYPE = ""
PROPERTY PIN8_CONNECTOR_TYPE = ""
PROPERTY PIN9_CONNECTOR_TYPE = ""
PROPERTY PIN10_CONNECTOR_TYPE = ""
PROPERTY PIN11_CONNECTOR_TYPE = ""
PROPERTY PIN12_CONNECTOR_TYPE = ""
PROPERTY PIN13_CONNECTOR_TYPE = ""
PROPERTY PIN14_CONNECTOR_TYPE = ""
PROPERTY PIN15_CONNECTOR_TYPE = ""
PROPERTY PIN16_CONNECTOR_TYPE = ""
END_MACRO
```
该宏包含了一个伺服驱动器的符号类型和针脚排列方式,可以根据需要进行修改和定制。希望对您有所帮助。
阅读全文