' Basic_APC_Speed_Vector ' Set Telgram type to 999 Parameters(922, 0) = 999 'PROFIBUS PZD telegram selection ' Configure Profibus SEND TELEGRAM ' r2050[0] PROFIBUS SEND Word 1 PZD BICO Control Word 1 --FP 2503 ' p2090 Extra Bits not terminated in STW1 (Standard CW1) Parameters (840,0) = "2090:0:63" 'OFF1 Parameters (844,0) = "2090:1:63" 'OFF2 Parameters (848,0) = "2090:2:63" 'OFF3 Parameters (852,0) = "2090:3:63" 'Enable Parameters (1140,0) = "2090:4:63" 'Enable RFG Parameters (1141,0) = "2090:5:63" 'Un-Freeze RFG --Start RFG Parameters (1142,0) = "2090:6:63" 'Enable Speed Controller Parameters (2103,0) = "2090:7:63" 'Fault Acknowledgement Parameters (854,0) = "2090:10:63" 'Profibus Bit 10 High for Control Parameters (1113,0) = "2090:11:63" 'Reverse Setpoint Parameters (1055,0) = "2090:12:63" 'JOG1 Parameters (1035,0) = "2090:13:63" 'MOP Raise Parameters (1036,0) = "2090:14:63" 'MOP Lower Parameters( 1056,0) = "2090:15:63" 'JOG2 ' r2050[1] PROFIBUS SEND Word 2 PZD (CO) for Main Speed Setpoint ' Commented Out as this is PreProgramed with Telegram 352 Parameters(1070,0) = "2050:1:63" 'Main Speed Setpoint ' r2050[2] PROFIBUS SEND Word 3 PZD BICO Control Word 2 --FP 2505 & FP2520 ' p2092 Uses FP 2505 and FP 2520 (Droop & Torque Control) Parameters(1020,0) = "2092:0:63" 'Fixed Setpoint selection, bit 0 Parameters(1021,0) = "2092:1:63" 'Fixed Setpoint selection, bit 1 Parameters(1022,0) = "2092:2:63" 'Fixed Setpoint selection, bit 2 Parameters(1023,0) = "2092:3:63" 'Fixed Setpoint selection, bit 3 Parameters(1110,0) = "2092:4:63" 'Inhibit Negative direction Parameters(1111,0) = "2092:5:63" 'Inhibit Positive direction Parameters(1492,0) = "2092:11:63" 'Droop Enable = 1 (FP2520) Parameters(1501,0) = "2092:12:63" 'Torque Control = 1 (FP2520) ' r2050[3] PROFIBUS SEND Word 4 PZD (CO) Parameters(1075,0) = "2050:3:63" 'Addition Speed Setpoint ' r2050[4] PROFIBUS SEND Word 5 PZD WORD (CO) Parameters(1503,0) = "2050:4:63" 'Torque Setpoint ' r2050[6] PROFIBUS SEND Word 6 PZD (CO) 'Parameters(0,0) = "2050:5:63" 'Optional Word***Could be Torque Limit ' Send Binector to Connector out Profibus for ZSW1 Parameters (2080,0) = "899:0:63" 'Ready to Power UP Parameters (2080,1) = "899:1:63" ' Ready to Operate Parameters (2080,2) = "899:2:63" ' Operation Enabled Parameters (2080,3) = "2139:3:63" ' Fault Present Parameters (2080,4) = "899:4:63" ' No OFF2 Parameters (2080,5) = "899:5:63" ' No OFF3 Parameters (2080,6) = "899:6:63" ' Power ON Inhibit Active Parameters (2080,7) = "2139:7:63" 'Alarm Present Parameters (2080,8) = "2197:7:63" 'Speed Deviation OK Parameters (2080,9) = "899:9:63" 'Control Requested Parameters (2080,10) = "2199:1:63" 'Frequency or Speed Reached or Exceeded Parameters (2080,11) = "1407:7:63" 'I, M, or P Limit Reached Parameters (2080,12) = "899:12:63" 'Open Holding Brake Parameters (2080,13) = "2135:14:63" 'No Motor Overtemp Alarm Parameters (2080,14) = "2197:3:63" 'Motor FWD (N act > 0) Parameters (2080,15) = "2135:15:63" 'No Alarm on Power Unit ' Configure Profibus Receive TELEGRAM for Status Word 1 to Receive via PLC ' Below Status Word 1 (r899) PROFIBUS Receive Word 1 PZD Parameters(2051,0) = "2089:0:63" 'Send Status Word 1 'R0063 is Speed Actual Filtered --PROFIBUS Receive Word 2 PZD 'Parameters (P2000)= nominal machine speed --RPM Parameters(2051,1) = "63:1:63" 'PROFIBUS PZD send word, PZD 2 'Send Mtr Current filtered (100ms) out Profibus Word 3 PZD 'SETUP P2002 to be Nominal Mtr. Current of Application 'Parameters (2002,0) = Application Max. Motor Current Parameters (2051,2) = "27:0:63" 'Filtered Abs Current Actual Value 'Send Mtr Torque filtered (100ms) out Profibus Word 4 PZD 'This is Pre-Configured via Using Telegram 352 'SETUP P2003 to be Nominal Mtr. Torque of Application 'Parameters (2003,0) = Application Max. Motor Torque Parameters (2051,3) = "80:1:63" 'Filtered Torque Utilization 'Send Warning Word to PLC for Diagnostics--Out Profibus Word 5 PZD 'This is Pre-Configured via Using Telegram 352 'r2132 is Actual Warning -Profibus Receive Word 5 Parameters (2051,4) = "2132:0:63" 'Actual Warning Code 'Send Fault Word to PLC for Diagnostics--Out Profibus Word 6 PZD 'This is Pre-Configured via Using Telegram 352 'r2132 is Actual Fault Code -Profibus Receive Word 6 Parameters (2051,5) = "2131:0:63" 'Actual Fault Code '***************End of Script File