Baixe o app para aproveitar ainda mais
Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original
CLP_Apresentação_MD03_CP5.pdf Programação LADDER Exemplo "Tampando Latas" Exemplo de uso de temporizador em processo “tampando latas” INPUTS (ENTRADAS) Descrição TAG Endereço Sensor de peça Peça I0.0 Bi manual Botao1 I0.1 Bi-manual Botao2 I0.2 Retorno do processo Retorno I0.3 Sensor de atuador avançado A_Avançado I0.4 Sensor do atuador recuado A_Recuado I0.5 OUTPUTS (SAÍDAS) Descrição TAG Endereço Solenóide de Avanço Avança Atuador Q0.0 Solenóide de Retorno Recua Atuador Q0.1 Definindo os Rótulos/Símbolos para a programação Criando a lógica LADDER Introdução a Programação LADDER Exemplo tampando latas.smbp 1.5.0.0 FunctLevelMan6_0 Exemplo tampando latas C:\Users\evert\Desktop\Aulas CLP - M03\CP05\Exemplo tampando latas.smbp New POU NormalContact %I0.6 Botão S0 tipo cogumelo - operador EMERGÊNCIA 0 0 Left, Right NormalContact %I0.1 Botão S1 - Bimanual - Prensa BOTÃO1 0 2 Left, Right NormalContact %I0.2 Botão S2 - Bimanual - Prensa BOTÃO2 0 3 Left, Right Coil %Q0.0 Solenóde k10 - avanço do atuador pneumatico AVANÇA_ATUADOR 0 10 Left Line 0 9 Left, Right Line 0 7 Left, Right Line 0 6 Left, Right Line 0 5 Left, Right Line 0 1 Down, Left, Right NormalContact %I0.0 Sensor S1 - Identifica peça posicionada na Prença PEÇA 0 4 Left, Right NegatedContact %I0.4 Sensor S11 de identificação de Atuador avançado A_AVANÇADO 0 8 Left, Right NormalContact %I0.3 Botão S3 - Reinício do processo RETORNO 2 2 Down, Left, Right Coil %Q0.1 Solenóde k11- recuo do atuador pneumatico RECUA_ATUADOR 2 10 Left Line 2 3 Left, Right Line 2 4 Left, Right Line 2 5 Left, Right Line 2 6 Left, Right Line 2 7 Left, Right Line 2 9 Left, Right VerticalLine 2 1 Up, Down, Right VerticalLine 1 1 Up, Down NegatedContact %I0.5 Sensor S10 de identificação de Atuador Recuado A_RECUADO 2 8 Left, Right NormalContact %Q0.1 Solenóde k11- recuo do atuador pneumatico RECUA_ATUADOR 3 2 Up, Left VerticalLine 3 1 Up, Right LD %I0.6 MPS AND %I0.1 AND %I0.2 AND %I0.0 ANDN %I0.4 ST %Q0.0 MPP AND( %I0.3 OR %Q0.1 ) ANDN %I0.5 ST %Q0.1 true 1 false Manual 512 Manual 2000 %S0 0 SB_COLDSTART Indicates there was a cold start with loss of data %S1 1 SB_WARMSTART Indicates there was a warm start with data backup %S4 4 SB_TB10MS Time base of 10 ms generated by an internal clock %S5 5 SB_TB100MS Time base of 100 ms generated by an internal clock %S6 6 SB_TB1S Time base of 1 s generated by an internal clock %S7 7 SB_TB1MIN Time base of 1 min generated by an internal clock %S10 10 SB_IOCOMBUS The I/O communication is running correctly %S11 11 SB_WATCHDOG Watchdog overflow causes the controller to change to HALT %S12 12 SB_RUNMODE The controller is running %S13 13 SB_FIRSTRUN Indicates the first controller cycle in RUN mode %S14 14 SB_IOFORCED This bit indicates there is at least one input or output forced %S15 15 SB_INFORCED This bit indicates there is at least one input forced %S16 16 SB_OUTFORCED This bit indicates there is at least one output forced %S17 17 SB_LASTBIT It indicates the value of the last ejected bit %S18 18 SB_OPERROR It indicates an overflow when a 16 bit operation is performed %S19 19 SB_OVERRUN It indicates scan time greater than the period defined by the user %S20 20 SB_INDERROR This bit indicates an index overflow of the indexed object address when a 16 bit operation is performed %S21 21 SB_INITGRAFCET At state 1, this bit causes GRAFCET initialization. Active steps are deactivated and initial steps are activated %S22 22 SB_RESETGRAFCET At state 1, this bit causes the active steps of the entire GRAFCET to be deactivated %S23 23 SB_FREEZEGRAFCET Set to 1, this bit validates the pre-positioning of GRAFCET. Maintaining this bit at 1 freezes the GRAFCET (freezes the chart) %S33 33 SB_CONFETH This bit indicates if a new Ethernet configuration is changing %S34 34 SB_AUTOETH Set to 1, this bit allows to force some specific Ethernet configuration set in %S35 and %S36 %S35 35 SB_DUPLEXMODE This bit indicates Ethernet Duplex mode. Set to 0 if Half Duplex, Set to 1 if Full Duplex %S36 36 SB_SPEEDETH This bit indicates Ethernet speed. Set to 0 if 10 Mbps, Set to 1 if 100 Mbps %S38 38 SB_ALLOWEVENT This bit indicates if events are placed in the events queue as soon as they are detected %S39 39 SB_LOSTEVENT This bit indicates if there is a saturation of events queue %S49 49 SB_REARMOUTPUTS Set to 1, the automatic re-arming of outputs following a short circuit is enabled %S50 50 SB_RTCUPDATE Set to 1, this bit allows to update the date and time %S51 51 SB_RTCSTATUS Set to 1, the date and time must be initialized by the user. %S52 52 SB_RTCERROR At state 1, the date and time must be initialized. %S59 59 SB_DATEUPDATE Set to 1, the date and time are incremented or decremented according to the rising edges on the control bits set in %SW59. %S75 75 SB_BATSTATUS Set to 1, external battery power is low, or no external battery is detected. %S91 91 SB_MWERASE User sets this bit to 1 to erase all %MW variables in the flash memory %S92 92 SB_MWSAVED Set to 1 if there is valid data saved on flash. %S93 93 SB_MWBACKUP User set this bit to 1 to store the %MW variable in the flash (up to 1000). %S94 94 SB_MWRESTORE User set this bit to 1 to restore the saved data. %S96 96 SB_PROGBACKUP Set to 1, the backup program is valid. %S101 101 SB_MBADDRESS Set to 1, the address can be changed by changing the values of %SW101 (port 1) or %SW102 (port 2). %S103 103 SB_ASCIICOM1 Set to 1, this bit allows to configure ASCII protocol on Serial Line 1 %S104 104 SB_ASCIICOM2 Set to 1, this bit allows to configure ASCII protocol on Serial Line 2 %S119 119 SB_IOERROR This bit is set to 0 when an I/O communication interruption is detected on the base controller %SW0 0 SW_MASTERTASK Modifies controller scan period defined at configuration through the user program in the Animation Table Editor. %SW1 1 SW_PERTASK Modifies the cycle time [2...255 ms] of the Periodic task. %SW6 6 SW_CONTROLSTATUS Controller Status: NO CONFIG (0), STOP (2), RUN (3), HALT (4), POWERLESS MODE (5) %SW7 7 SW_STATE This word shows the state of the controller (refer F1 help for details) %SW11 11 SW_WATCHDOG Contains the maximum value of the watchdog. %SW13 13 SW_BOOTVERSION Contains the boot version of the controller %SW14 14 SW_COMVERSION Contains the commercial version of the controller %SW15 15 SW_FW1VERSION Contains the Firmware version of the controller (1st word) %SW16 16 SW_FW2VERSION Contains the Firmware version of the controller (2° word) %SW17 17 SW_FLOATSTATUS Default status when an error is detected in a floating arithmetic operation (refer F1 help for details) %SW18 18 SW_TM1COUNTER Contains the absolute timer counter (1st word) %SW19 19 SW_TM2COUNTER Contains the absolute timer counter (2° word) %SW30 30 SW_LASTSCAN1 Shows execution time of the last controller scan cycle (in ms).If the scan time is 2,250 ms, %SW30 = 2 and %SW70 = 250. %SW31 31 SW_MAXSCAN1 Shows execution time of the longest controller scan cycle since last cold start (in ms). If the scan time is 2,250 ms, %SW31 = 2 and %SW71 = 250. %SW32 32 SW_MINSCAN1 Shows execution time of shortest controller scan cycle since the last cold start (in ms). If the scan time is 2,250 ms, %SW32 = 2 and %SW72 = 250. %SW33 33 SW_IP1ADDRESS For IP address AA.BB.CC.DD: %SW33 = CC.DD and %SW34 = AA.BB (1st word) %SW34 34 SW_IP2ADDRESS For IP address AA.BB.CC.DD: %SW33 = CC.DD and %SW34 = AA.BB (2° word) %SW35 35 SW_SUBNET1 For Sub-network mask AA.BB.CC.DD: %SW35 = CC.DD and %SW36 = AA.BB (1st word) %SW36 36 SW_SUBNET2 For Sub-network mask AA.BB.CC.DD: %SW35 = CC.DD and %SW36 = AA.BB (2° word) %SW37 37 SW_GATEWAY1 For Gateway address AA.BB.CC.DD: %SW37 = CC.DD and %SW38 = AA.BB (1st word) %SW38 38 SW_GATEWAY2 For Gateway address AA.BB.CC.DD: %SW37 = CC.DD and %SW38 = AA.BB (2° word) %SW39 39 SW_PERTIME Shows the average execution time of the periodic task in µs (last 5 times) %SW40 40 SW_EV0TIME Shows the average execution time of the event 0 in us (last 5 times) %SW41 41 SW_EV1TIME Shows the average execution time of the event 1 in us (last 5 times) %SW42 42 SW_EV2TIME Shows the average execution time of the event 2 in us (last 5 times) %SW43 43 SW_EV3TIME Shows the average execution time of the event 3 in us (last 5 times) %SW44 44 SW_EV4TIME Shows the average execution time of the event 4 in us (last 5 times) %SW45 45 SW_EV5TIME Shows the average execution time of the event 5 in us (last 5 times) %SW46 46 SW_EV6TIME Shows the average execution time of the event 6 in us (last 5 times) %SW47 47 SW_EV7TIME Shows the average execution time of the event 7 in us (last 5 times) %SW48 48 SW_NBEVENTS Shows how many events have been executed since the last cold start. %SW49 49 SW_RTCDAY RTC Function: contains in BCD xN Day of the week (N=1 for Monday) %SW50 50 SW_RTCSEC RTC Function: contains in BCD 00SS Seconds %SW51 51 SW_RTCHHMM RTC Function: contains in BCD HHMM: hour and minute %SW52 52 SW_RTCMMDD RTC Function: contains in BCD MMDD: month and day %SW53 53 SW_RTCCCYY RTC Function: contains in BCD CCYY: century and year %SW54 54 SW_LS1TIME Time of the last power failure or controller stop (in BCD): SS Seconds %SW55 55 SW_LS2TIME Time of the last power failure or controller stop (in BCD): HHMM Hour and minute %SW56 56 SW_LS3TIME Time of the last power failure or controller stop (in BCD): MMDD Month and day %SW57 57 SW_LS4TIME Time of the last power failure or controller stop (in BCD): CCYY Century and year %SW58 58 SW_LASTSTOP Displays code giving cause of last stop: Run/Stop input edge,Stop at software detected fault, Stop command, Power outage,Stop at hardware detected fault %SW59 59 SW_ADJUSTDATE Contains two sets of 8 bits to adjust current date.The operation is always performed on rising edge of the bit. This word is enabled by bit %S59. %SW62 62 SW_ETHERROR Shows the Ethernet error code (0 No error, 1 Duplicate IP, 2 DHCP in Progress, 3 BOOTP in Progress, 4 Invalid parameters, 5 Fixed IP in progress, 6 Ethernet com in Fail) %SW63 63 SW_EXCH1ERROR Contains EXCH1 error code, see online help for details. %SW64 64 SW_EXCH2ERROR Contains EXCH2 error code, see online help for details. %SW65 65 SW_EXCH3ERROR Contains EXCH3 error code for Ethernet controllers, see online help for details. %SW67 67 SW_CONTID Contains the logic controller code ID. For more information, refer to the M221 Logic Controller Code ID table. %SW70 70 SW_LASTSCAN2 Shows the microseconds of the execution time of the last controller scan cycle. If the scan time is 2,250 ms the %SW30 will be 2 and the %SW70 = 250. %SW71 71 SW_MAXSCAN2 Shows the microseconds of the execution time of the longest controller scan cycle since the last cold start. If the scan time is 2,250 ms the %SW31 will be 2 and the %SW71 = 250. %SW72 72 SW_MINSCAN2 Shows the microseconds of the execution time of shortest controller scan cycle since the last cold start. If the scan time is 2,250 ms the %SW32 will be 2 and the %SW72 = 250. %SW75 75 SW_CPULOAD Shows percentage of processing load. %SW76 76 SW_COUNTD1 Down Counter 1, decremented individually by the system every ms %SW77 77 SW_COUNTD2 Down Counter 2, decremented individually by the system every ms %SW78 78 SW_COUNTD3 Down Counter 3, decremented individually by the system every ms %SW79 79 SW_COUNTD4 Down Counter 4, decremented individually by the system every ms %SW80 80 SW_ANASTATUS Each bit indicate status of the embedded analog inputs. %SW94 94 SW_SIGNATURE Contains the signature, changes in case of an application change, in terms of configuration or programming data. %SW95 95 SW_SIGNATURE1 Contains the signature, changes in case of an application change, in terms of configuration or programming data. %SW96 96 SW_SAVERESTORE Contains the command and/or diagnostics for save/restore function of application program (refer F1 help for details) %SW98 98 SW_SL1POSTST Post configuration status of Serial Line 1. The bits are set to 1 when the post configuration was applied for the parameter. %SW99 99 SW_SL2POSTST Post configuration status of Serial Line 2. The bits are set to 1 when the post configuration was applied for the parameter. %SW100 100 SW_ETHPOSTST Post configuration status of Ethernet port. The bits are set to 1 when the post configuration was applied for the parameter. %SW101 101 SW_SL1ADDRESS Address of port 1, when bit %S101 is set to 1, you can change the Modbus address. %SW102 102 SW_SL2ADDRESS Address of port 2, when bit %S101 is set to 1, you can change the Modbus address. %SW103 103 SW_SL1CONF1 Configuration for use of the ASCII protocol of port 1 when bit %S103 (refer F1 help for details) %SW104 104 SW_SL2CONF1 Configuration for use of the ASCII protocol of port 2 when bit %S104 (refer F1 help for details) %SW105 105 SW_SL1CONF2 Configuration for use of the ASCII protocol of port 1 when bit %S103 (refer F1 help for details) %SW106 106 SW_SL2CONF2 Configuration for use of the ASCII protocol of port 2 when bit %S104 (refer F1 help for details) %SW107 107 SW_MACAD1 For MAC address AA:BB:CC:DD:EE:FF %SW107 = AA:BB (1st word) %SW108 108 SW_MACAD2 For MAC address AA:BB:CC:DD:EE:FF %SW108 = CC:DD (2° word) %SW109 109 SW_MACAD3 For MAC address AA:BB:CC:DD:EE:FF %SW108 = EE:FF (3° word) %SW114 114 SW_SCH_ENABLE Enables or disables operation of schedule blocks by the user program or operator display. %SW118 118 SW_CONTROLIOBUS Shows IO bus controller status (refer F1 help for details) %SW119 119 SW_IOOPTION Shows optional expansion module configuration (refer F1 help for details) %SW120 120 SW_IOSTATUS Shows expansion I/O module status (refer F1 help for details) %SW121 121 SW_SL1CONF3 Configuration for use of the ASCII frame size of port 1 when bit %S103 (refer F1 help for details) %SW122 122 SW_SL2CONF3 Configuration for use of the ASCII frame size of port 2 when bit %S104 (refer F1 help for details) %SW128 128 SW_CAR1STATUS Shows the status code for the Cartridge 1 (refer F1 help for details) %SW129 129 SW_CAR2STATUS Shows the status code for the Cartridge 2 (refer F1 help for details) %SW130 130 SW_EXE1MICROS Shows the last execution time of the event input %I0.2 in µs %SW131 131 SW_EXE2MICROS Shows the last execution time of the event input %I0.3 in µs %SW132 132 SW_EXE3MICROS Shows the last execution time of the event input %I0.4 in µs %SW133 133 SW_EXE4MICROS Shows the last execution time of the event input %I0.5 in µs %SW134 134 SW_EXE5MICROS Shows the last execution time of the event Threshold 0 of HSC0 in µs %SW135 135 SW_EXE6MICROS Shows the last execution time of the event Threshold 1 of HSC0 in µs %SW136 136 SW_EXE7MICROS Shows the last execution time of the event Threshold 0 of HSC1 in µs %SW137 137 SW_EXE8MICROS Shows the last execution time of the event Threshold 1 of HSC1 in µs %SW138 138 SW_PERLAST Shows the last execution time of the periodic task in µs. %SW139 139 SW_OUTPROT Shows the protection error status of output blocks %SW148 148 SW_NBPERS Number of persistent variables (maximum 1,000) %SW149 149 SW_EXE1MS Shows the last execution time of the event input %I0.2 in ms. %SW150 150 SW_EXE2MS Shows the last execution time of the event input %I0.3 in ms. %SW151 151 SW_EXE3MS Shows the last execution time of the event input %I0.4 in ms. %SW152 152 SW_EXE4MS Shows the last execution time of the event input %I0.5 in ms. %SW153 153 SW_EXE5MS Shows the last execution time of the event threshold 0 of HSC0 in ms. %SW154 154 SW_EXE6MS Shows the last execution time of the event threshold 1 of HSC0 in ms %SW155 155 SW_EXE7MS Shows the last execution time of the event threshold 0 of HSC1 in ms. %SW156 156 SW_EXE8MS Shows the last execution time of the event threshold 1 of HSC1 in ms. %SW157 157 SW_PERLASTMS Shows the last execution time of the PERIODIC task in ms. %SW158 158 SW_PERAVGMS Shows the average execution time (last 5 times) of the PERIODIC task in ms. %SW159 159 SW_EV0AVGMS Shows the average execution time (last 5 times) of event 0 in ms. %SW160 160 SW_EV1AVGMS Shows the average execution time (last 5 times) of event 1 in ms. %SW161 161 SW_EV2AVGMS Shows the average execution time (last 5 times) of event 2 in ms. %SW162 162 SW_EV3AVGMS Shows the average execution time (last 5 times) of event 3 in ms. %SW163 163 SW_EV4AVGMS Shows the average execution time (last 5 times) of event 4 in ms. %SW164 164 SW_EV5AVGMS Shows the average execution time (last 5 times) of event 5 in ms. %SW165 165 SW_EV6AVGMS Shows the average execution time (last 5 times) of event 6 in ms. %SW166 166 SW_EV7AVGMS Shows the average execution time (last 5 times) of event 7 in ms. %SW168 168 SW_NBETHCON Shows the number of Ethernet Modbus TCP server connections in use %SW170 170 SW_NBSL1FRAMES Counts the number of frames transmitted by the Serial Line 1. %SW171 171 SW_NBSL2FRAMES Counts the number of frames transmitted by the Serial Line 2. %SW172 172 SW_NBUSBFRAMES Counts the number of frames transmitted by the USB channel. %SW173 173 SW_NBTCPFRAMES Counts the number of frames transmitted by Modbus TCP on Ethernet. %SW174 174 SW_NBSL1OK Counts the number of frames correctly received by the Serial Line 1. %SW175 175 SW_NBSL2OK Counts the number of frames correctly received by the Serial Line 2. %SW176 176 SW_NBUSBOK Counts the number of frames correctly received by the USB channel. %SW177 177 SW_NBTCPOK Counts the number of frames correctly received by Modbus TCP on Ethernet. %SW178 178 SW_NBSL1ERROR Counts the number of frames received in error by the Serial Line 1. %SW179 179 SW_NBSL2ERROR Counts the number of frames received in error by the Serial Line 2. %SW180 180 SW_NBUSBERROR Counts the number of frames received in error by the USB channel. %SW181 181 SW_NBTCPERROR Counts the number of frames received in error by Modbus TCP on Ethernet. %MSG1 0 Serial1 %MSG3 2 Ethernet 255 true 10 StartAsPreviousState true 250 Time5Sec 0 0 0 0 TM200CE24T MyController 360 320 86 86 86 86 86 86 86 86 40 40 40 40 40 40 40 40 40 40 16 16 16 16 0 0 4 84148994 96 0 64 4 512 8000 0 102 10 9999 14 160 234 16 0 255 0 0 8 255 8 184320 184320 117538816 512 130560 1024 32 16 8 0 false true true 6 %I0.0 0 PEÇA Sensor S1 - Identifica peça posicionada na Prença %I0.1 1 BOTÃO1 Botão S1 - Bimanual - Prensa %I0.2 2 BOTÃO2 Botão S2 - Bimanual - Prensa %I0.3 3 RETORNO Botão S3 - Reinício do processo %I0.4 4 A_AVANÇADO Sensor S11 de identificação de Atuador avançado %I0.5 5 A_RECUADO Sensor S10 de identificação de Atuador Recuado %I0.6 6 EMERGÊNCIA Botão S0 tipo cogumelo - operador %I0.7 7 %I0.8 8 %I0.9 9 %I0.10 10 %I0.11 11 %I0.12 12 %I0.13 13 %Q0.0 0 AVANÇA_ATUADOR Solenóde k10 - avanço do atuador pneumatico %Q0.1 1 RECUA_ATUADOR Solenóde k11- recuo do atuador pneumatico %Q0.2 2 %Q0.3 3 %Q0.4 4 %Q0.5 5 %Q0.6 6 %Q0.7 7 %Q0.8 8 %Q0.9 9 %HSC0 0 0 0 1 2 3 0 false false false false 1 false false false false 0 NotUsed 7 1 NotUsed 7 OneSecond %HSC1 1 0 0 1 2 3 0 false false false false 1 false false false false 0 NotUsed 7 1 NotUsed 7 OneSecond %HSC2 2 0 0 1 2 3 0 false false false false 1 false false false false 0 NotUsed 7 1 NotUsed 7 OneSecond %HSC3 3 0 0 1 2 3 0 false false false false 1 false false false false 0 NotUsed 7 1 NotUsed 7 OneSecond %PLS0/%PWM0/%PTO0 0 0 1 %PLS1/%PWM1/%PTO1 1 1 1 1964 false M200 FixedAddress 0.0.0.0 0.0.0.0 0.0.0.0 TransfertRateAuto ProtocolEthernet2 0.0.0.0 true 2 502 0 0 false false 0 0 0 0 true true true true 1 300 100 0 0 158 187 0 0 Baud19200 No Modem ParityEven DataBits8 StopBits1 10 10 false true false false false false 0 10 0 0 0 PhysicalMediumRs485 TransmissionModeModbusRtu 1 2 SlaveAddressing 0 No 360 320 0 0 0 0 0 0 New project false true false false 1 true A4 false HundredthsOfAnInch 100 100 100 100
Compartilhar