Home
Manual Print Standard Add
Contents
1. Application ErrorSensor Error FBController LR FBController SR DRD Error Insetting LifeSign Error ID Error ID Error ID Error ID Decoupling Shift Error ID Error PU 1 0 0 0 0 0 0 0000 reset PU 2 0 0 0 0 0 0 0000 reset PU 3 0 0 0 0 0 0 0000 reset PU 4 0 0 0 0 0 0 0000 reset PU 5 0 0 0 0 0 0 0000 reset PU 6 0 0 0 0 0 0 0000 reset Puz o Il o I o Il o J o I l o Jf ooo reset PU 8 0 0 0 0 0 0 0000 reset PU 9 0 0 0 0 0 0 0000 reset PU 10 0 0 0 0 0 0 0000 reset PU 11 0 0 0 0 0 0 0000 reset PU 12 0 0 0 0 0 0 0000 reset PU13 0 0 0 0 0 0 0000 reset job PU 14 0 To 0 L o 0 0 _0000_ reset PU 15 0 0 0 0 0 0 0000 reset scope PU 16 0 ie 0 0 0 0 0000 reset PU 17 0 0 0 0 0 0 0000 reset overview PU 18 0 0 0 0 0 0 0000 reset PU i9 0 Lo 0 fo Jj 0 0 0000 reset wa o if o ii o Jil o JIL o 0 0000 ee Print Standard Add On TRC1000 SIOS ID 59753224 V3 3 0 2015 08 10 111 Copyr
2. master AGS auto limit 1 oo 2000 i INN SS WD xm ate ia machine A 618 000 mm 2 2000 ooo MHE IANCS CN e an n 3 1 4000 2000 Bit EINNA L xm ne R mark field P e coco a ENE a re al TRC1000_Standard_Wedge s ef 1 sw 20 MENNE xm ee wl e 00 20 MENNE e eta mak A reli PU7 stream colour preview PUS Pus Job Bme TRC1000_Standard_Wedge PUii Ga m BICC PU14 ama mis oO Pul6 scope PU17 _ PU18 star Wie screen PU20 a lf a mark stream is available a job can be prepared e Create select a new job 1 Table 5 7 mark stream edit buttons Button 3 Generate a new job Description Save the actual job setting All data will be saved in the panel x Delete the selected job 96 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 5 Use of the example application Copyright Siemens AG 2015 All rights reserved e Select an existing mark stream 2 Select a stored mark stream from the drop down menu NOTE Before a new job can be used the respective mark stream need to be created in the mark stream picture which can be reached by pressing the button mark stream e Copy mark stream to the job 3
3. ab8Sensor1 AnalogCurve ARRAY OF analog curve values channel 1 BYTE sensor output copied in TRC1000Background ab8Sensor2AnalogCurve ARRAY OF analog curve values channel 2 BYTE sensor output copied in TRC1000Background ai16Sensor1 DigitalCurve ARRAY OF digital curve values channel 1 INT sensor output copied in TRC1000Background ai16Sensor2DigitalCurve ARRAY OF digital curve values channel 2 INT sensor output copied in TRC1000Background ai16Sensor1GateCurve ARRAY OF gate curve channel 1 INT ai16Sensor2GateCurve ARRAY OF gate curve channel 2 INT r32Gate1StartPos REAL start position gate 1 calculated in ff RC1000Background r32Gate1EndPos REAL end position gate 1 calculated in ff RC1000Background r32Gate2StartPos REAL start position gate 2 calculated in ff RC1000Background r32Gate2EndPos REAL end position gate 2 calculated in ff RC1000Background Print Standard Add On TRC1000 58 V3 3 0 2015 08 10 SIOS ID 59753224 4 Function description 4 3 2 sHMI_Command The HMI screens will be connected via the sHMI_Command variables to the sTRC1000 interface The function block FBHMIDataTransfer copies the HMI_Command variables to the StdclO variables and other way round In case of using the Application without HMI it is also possible not to use this structure and the conversion function block FBHMIDataTransfer In this way the application will be controlled via the S
4. Name Type Description i16SensorCycleTime_P3 INT AO DO detection refresh cycle r32CylinderCircumference_P10 REAL Printing cylinder circumference r32SetValueWebWeb_P11 REAL Printing mark distance set point WebWeb WebWeb2 r82GateWidth_P12 REAL Gate width r32GateOffset_P13 REAL Gate shift offset r32GatePosition_P14 REAL Gate position r32OffsetLengthregister_P15 REAL Correction offset length register r32OffsetSideregister_P16 REAL Correction offset side register sSensor1 TriggerVaule sTriggerValue Data structure sensor 1 trigger values r382ThresholdLevel_RefMark REAL Threshold level trigger level reference mark sensor 1 r32ThresholdLevel_RegMark REAL Threshold level trigger level printing mark sensor 1 r32Offset REAL Offset reference mark sensor 1 r32SpeedCompensationValue REAL TRC dead time compensation not used sSensor2TriggerVaule sTriggerValue Data structure sensor 2 trigger values r382ThresholdLevel_RefMark REAL Threshold level trigger level reference mark sensor 2 r32ThresholdLevel_RegMark REAL Threshold level trigger level printing mark sensor 2 r32Offset REAL Offset reference mark sensor 2 sMarkGeometry sMarkDefine Data structure mark geometry r32Width_Blockmark REAL mm Width block mark r32Width_WedgeMark_Min REAL mm Width short side wedge mark 0 is poss
5. aspComLComParameter aspComLComParamet communication parameter erType abopComDataReceived ARRAY OFBOOL data received indication sTRC1000ScopeACData ARRAY OF BYTE analog curve data sTRC1000ScopeDOData ARRAY OF INT digital curve data sTRC1000ScopeGateData ARRAY OF INT gate curve data 4 3 4 sTRCConfig The TRCConfig structure contains the data information for the acyclic data transfer to the TRC1000 hardware The parameter numbers will be pre allocated in the startup program by the function FCTRC1000DefValPresetting This function call is essential otherwise the parameter data transfer to the TRC1000 is not working The actual parameter values will be added by the application to the structure Further information about the TRC1000 parameters itself can be looked up in the Wiedeg documenation IDS PN User Manual en V2 0 Table 4 17 TRCConfig Name Type Description DataSetUpdate1 sTypeDataSetWrite Data set 1 for complete parameter download to TRC1000 DataSetUpdate2 sTypeDataSetWrite Data set 2 for complete parameter download to TRC1000 DataSetUpdate3 sTypeDataSetWrite Data set 3 for complete parameter download to TRC1000 DataSetReadActivePara sTypeDataSetRead Data set read actual TRC configuration data DataSetReadStatus1 sTypeDataSetRead Data set 1 read TRC actual status DataSetReadStatus2 sTypeDataSetRead Data set 2 read TRC actual status DataSetReadError sTypeDataSetRe
6. Date AddOn PrintStandard Change Version Version 08 2012 V2 2 1 2 1 V2 2 1 Preliminary version 27 06 2013 V2 2 1 2 2 V2 2 1 First official version As of now New versioning 28 02 2014 V3 0 0 V2 2 1 HMI Control Updates 26 01 2015 V3 1 0 V2 2 1 corrections and updates 20 04 2015 V3 2 0 V2 2 1 V3 1 0 corrections and updates 10 08 2015 V3 3 0 V3 1 1 Reverse markfield Graphical adaptions to the HMI screens Calibration to mirroring background 132 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 15 Contact 15 Contact Application Center SIEMENS Siemens AG DF FA PMA APC Frauenauracher Str 80 91056 Erlangen Fax 09131 98 1297 mailto tech team motioncontrol siemens com Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 133
7. yplnsetting optional Insetting functionality V3 3 0 Print Standard Add On TRC1000 2015 08 10 SIOS ID 59753224 4 Function description Copyright Siemens AG 2015 All rights reserved 4 2 Constants Generally the basic application is able to catch the requirements of a complete machine without big changes However a few adaptions for optimization are useful by adapting the application to the needs of the respective printing machine project The basic application is prepared for a range of 20 printing units It is not recommendable to change the length of the arrays for the HMI connection Otherwise the whole HMI application needs to be changed An adaption of the SIMOTION internal variables to the real machine range is possible The variables are preset for the example project To adapt the application to a real machine project only the variable NUMBER_OF_ACTIVE_PUS S_Var_GL need to be changed Table 4 7 Constants in the library LTRC1000 xTypeDef Name Type Description Preset KONST_INT16 LREAL Value INT16 32767 0 Do not change KONST_USINT8 REAL Value USINT8 256 0 Do not change SCOPE_DATA_LENGTH_DO INT Array length of digital scope edges 399 from TRC Do not change SCOPE_DATA_LENGTH_AO INT Array length of analog scope from 799 TRC Do not change HMI_CURVE_LENGTH_DO INT Array length of digital scope for HMI 719 Do not change HMI_CURVE
8. Para1 Description function result function internal error 16 00007001 Must be repeated in the next program cycle Initial call initiation of reading of parameters okay only when command is issued asynchronously 16 00007002 Must be repeated in the next program cycle Intermediate call reading of parameter description is still active only when command is issued asynchronously 16 00007003 Reading of parameters aborted 16 FFFF8190 Internal error job aborted Specified logical base address invalid No assignment is available in SDBs or there is no base address 16 FFFF8191 Internal error job aborted The _readDriveMultiParameter function cannot reach the specified logical base address 16 FFFF8192 Internal error job aborted Error in response identifier 16 FFFF8193 Internal error job aborted The number of parameters to be read is not permissible 16 FFFF819D Internal error job aborted An slave device interface is unable to issue a parameter job to the higher level master controller 16 FFFF819E Internal error job aborted Attempt to abort a non active function 16 FFFF819F Internal error job aborted Function not executable 16 FFFF81C3 Error can be repeated in the next program cycle Required resources are presently occupied In the _readDriveMultiParameter function In the module 16 FFFF81C5 Error can be repeated in the next program cycle Distributed I O not available 16 F
9. Name Parameter description Change LastFiredCustomEvent This event is triggered if of the following events were done GateChanged 2 CursorXChanged 3 CursorYChanged 4 ConnectionStateChanged 5 ZoomRangeChanged 6 Touched 10 To react to this event a corresponding function list can be deposited at the control properties under events for change Sensor 1 Eigenschaften Allgemein EE WA gt vwvv a Sonan 1 OCX LastFiredCustomEvent Ereignisse SS ee _ i m Aktivieren ControlName MCPMControlAOv2 m Deaktivier 2 lt Keine Funktion gt PY change Table 5 5 change events of print mark control Name Param values description eter ZoomRangeChanged 6 void This event is triggered if position or size of the zoom area was changed To react to this event a corresponding function list can be deposited in script OCX_LastFiredCustomEvent in select case 6 GateChanged 2 void This event is triggered if the position of one gate was changed To react to this event a corresponding function list can be deposited in script OCX_LastFiredCustomEvent in select case 2 CursorXChanged 3 void This event is triggered if the position of the X cursors was changed To react to this event a corresponding function list can be deposited in script OCX_LastFiredCustomEvent in select case 3 CursorYChanged 4 void This event is triggered if the position of the Y cursors
10. We do not accept any liability for the information contained in this document Any claims against us based on whatever legal reason resulting from the use of the examples information programs engineering and performance data etc described in this Application Example shall be excluded Such an exclusion shall not apply in the case of mandatory liability e g under the German Product Liability Act Produkthaftungsgesetz in case of intent gross negligence or injury of life body or health guarantee for the quality of a product fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract wesentliche Vertragspflichten The damages for a breach of a substantial contractual obligation are however limited to the foreseeable damage typical for the type of contract except in the event of intent or gross negligence or injury to life body or health The above provisions do not imply a change of the burden of proof to your detriment Any form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without the expressed consent of Siemens Industry Sector Siemens provides products and solutions with industrial security functions that support the secure operation of plants solutions machines equipment and or networks They are important components in a holistic industrial security concept With this in mind Siemens products and solutions
11. printing mark 9 WebWeb WebWeb2 r32RegisterErrorLength_P210 REAL Printing mark Difference set value act value r32CommandPosition_P214 REAL Display setpoint position r32CommandPosition_P215 REAL Gate positions at gate setting WebCylinder reference mark WebWeb WebWeb2 printing mark r32CommandPositionRefMark_P21_ REAL Gate position reference mark at gage setting 6 WebWeb WebWeb2 i16MarkCounter_P217 INT Printing mark counter r32MarkWidthMax_P223 REAL PM width maximum value depends on P2 PM type r82MarkWidthMin_p224 REAL PM width minimum value depends on P2 PM type 56 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description r32MarkEdgeLength_P225 REAL PM edge length depends on P2 PM type r32ConversionFactor_P226 REAL Slope factor Ab lt gt As u32StatusSideRegister_P227 UDINT State side regsiter r32MarkCommandWidthWebcylidne REAL PM width setpoint WebCylinder r_P22 ear WEB InGTP REAL PM width actual value WebCylinder r E REAL Reference mark actual value WebWeb 230 WebWeb2 r32RegMarkActualWidthWebWeb_ REAL Printing mark actual value WebWeb P231 WebWeb2 r32RegisterErrorSide_P232 REAL PM width register deviation P ee REAL Correction offset side register axial i32EncoderPosition_P235 DINT A
12. P975_ Struct Data structure drive object identification ProducerCode UINT Manufacturer code Typ_DriveUnit UINT Type drive object FirmwareVersion UINT Firmware version FirmwareDatumY UINT Firmware date year FirmwareDatumMD UINT Firmware date day month DOTypeClass UINT Drive Object Type class DOSubClass UINT Drive Object Sub class sPDDiagClockSync_P2064 P2064 Struct Data structure diagnostics clock synchronous mode ClockSynchModeActive DINT Clock synchronous mode activated BuscyclicTime DINT Bus cycle time MasterCyclicTime DINT Master cycle time Ti_Time DINT Instant of value acquisition To_Time DINT Instant of setpoint acquisition Tdx_Time DINT Data exchange interval PLL_WindowTime DINT PLL window PLL_DelayTime DINT PLL delay time sgSensorName_P61000 STRING 20 TRC name sSensorlP_P61001 P61001_ Struct TRC IP address sActualParaValue sRParaValue Data structure actual TRC parameter u32MeasuringStatus_P201 UDINT Wiedeg internal parameter u32MeasuringStatus_P202 UDINT Wiedeg internal parameter r32MarkActualValue_P205 REAL Printing mark actual position WebCylinder r32RefMarkActualPos_P206 REAL Reference mark actual position WebWeb WebWeb2 r32RegMarkActualPos_P207 REAL Printing mark actual position WebWeb WebWeb2 r32ActualRefRegMarkDistance_p20 REAL Actual distance reference mark
13. ifdef LPrintv300 afTrigRegistrationDone 2 gsRA_PC_O2AxisSTDcIO OUT boRegistrationDone THEN IF gsRA_PC_OZAxisSTDcIO OUT ul ActualModeNumber 60 HMI_axis_4 stdcIO IN boActivateRelRegister TRUE RA_PC_02_S8TDcI IF NOT boRegAktive AND gasTRCData 2 s8tdeIO in r32InchDistMMLR lt gt 0 0 THEN HMI_axis_4 stdcIO IN boNegativeRelRegister HMI_axis_4 stdcIO IN r 4RegisterSetpoint boRegAktive TRUE END_IF IF affrigRegistrationDone 2 q gasTRCData 2 sst 360 0 gasTRCDe Description Register Inching Depending on the register inching solution of the project the commands need to be connected In the example project the register inching will be done by using Print Standard relative inching The respective signals from HMI are connected to the Print Standard STDclO variables THEN HMI_axis_4 stdcIO IN r 6 4RegisterSetpoint 0 0 boRegAktive FALSE Copy the code and adapt gasTRCData 2 sStdcIO out boSetRefActive FALSE 3 gasTRCData 2 sS8tdcIO out boSetRegActive FALSE the indices END_IF END_IF add further TRCs here At endif Pog acs a ee FBTRC1000Backgr call FBTRC1OOOBackgr 1 2 IF TRUE THEN In this section the function ai32SensorLogAddress 2 324 block FBTRC1 000Backgr is ai32SensorLogAddress 3 xxx called ffadd further TRCs here The function bl
14. 3 Select the cable length for head 1 and head 2 even if head 2 is not existent select 2 5m 4 Press the OK button The actual selected data set is displayed in the boxes after selecting the respectively TRC number NOTE Together with the dataset for the fiber optic cable length the data set for the white adjustment is sent to the sensor See also chapter 7 2 7 1 2 Data set change via RS232 interface NOTE To use the RS232 command interface see chapter 9 The command to change the data set is 6010 Additionally to the command you have to enter the data set number to change the data set of the IDS and DS Possible value entries are 0 gt 2 5m data set 1 gt 5 0m data set Hyper Terminal command to change the data set 6010 lt DS_value gt lt IDS_value gt Example 6010 01 meaning DS 2 5m IDS 5 0m The actual selected data set is stored in P150 and can be read out via the RS232 interface command 1000 150 The result is a hexadecimal value 00000001h Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 123 Copyright Siemens AG 2015 All rights reserved 7 Sensor calibration 7 2 NOTE NOTE NOTICE 7 2 1 124 White adjustment The white adjustment is used to calibrate the voltage evaluation of the sensor in respect to different colors and fiber optic cables The factory setting of each sensor is calibrated to white background It is recommended to repeat the ca
15. Index value 0 will be used from the HMI as default data set to safe default values Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 77 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Figure 5 1 Example application structure PROFINET IO TRC3000 Mode mark 3 Doublehead MP 377 Pro 15 WinCC flexible 2008 SP3 44 AMI sHMI_Command SIMOTION Standard demo 3 A case with D445 2 Register Mark Field 78 FBHMIDataTr ansfer 1 pTRC1000Backgr background task pTRC1000Cyclic cyclic task IPO Servo I l l FBTRC1000 1 FBTRC1000 FBTRC1000 l al Backgr 1 Cyclic 1 RegCtriLR 1 v set Ys FBTechLR 1 sTRCData 1 l l l l l al Format RA_PC_02 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application 5 2 HMI screens Start screen From the start screen all other main screens are reachable Furthermore the runtime can be closed with exit button on bottom right Figure 5 2 Start screen cee SR me oe m omen ee e Print Standard Add On TRC1000 v3 3 0 2015 08 10 SIOS ID 59753224 79 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Machine control
16. With this button a defined mark stream data can be copied into the job definition e Mark stream preview 4 After copying a mark stream to the job button 3 the mark stream preview shows the actual view of the created job e Machine format length 5 Enter the machine format length usually print cylinder circumference e Activated printing units 6 After copying a mark stream to the job button 3 the for this job necessary printing units sensor devices will be shown activated Table 5 8 job settings buttons Button Description PUL Activate green deactivate grey TRC device ctrl master Selection for register mark and reference mark mark mark e ctrl mark own printing mark printed by this printing unit e master mark reference mark ECE ci mar The distance between reference mark and print unit mark will be master calculated dependent on the mark stream and shown in this fields o 00 20 00 Mark edge setting e Positive edge detection e Negative edge detection Sensor switch button front side back side Print mark assignment Sensor head1 head2 The assignment depends on the register control mode See table 26 on page 41 in the IDS PN User Manual en documentation Register control mode e Web cylinder Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 97 Copyright Siemens AG 2015 All rights reserved 5 Use of the example appl
17. 0 000 0 100 PUS 0 100 0000 0 100 Ay P NEERA PU6 0 100 0 000 0 100 config between Pu7 0 100 0 100 insetting sensor and ery aan Sani Pug 0 100 0 100 tension web length Y betw 2 printing units m puio 0 100 0 100 _ adaption gt PUL 0 100 0 000 PULO lt gt PULL 0 100 0 000 Pull 0 100 0 100 config PUL lt gt PU2 0 100 0 000 PULL lt gt PU12 0 100 0 000 Pui2 0 100 0 100 encol PU2 lt gt PU3 0 100 o PU12 lt gt PU13 0 100 0 000 Pu13 0 100 0 100 PUB lt gt PU4 0 100 0 000 PU13 lt gt PU14 0 100 o o00 Pu14 0 100 0 100 config ae 0 100 0 000 PU14 lt gt PUIS 0 100 PUIS 0 100 0 100 data 1 PUS lt gt PU6 0 100 PUIS lt gt PU16 0 100 0 000 Pu16 0 100 0 100 PU6 lt gt PUT 0 100 PU16 lt gt PUI 0 100 0 000 pui7 0 100 0 100 ae PU7 lt gt PUB 0 100 PUI7 lt gt PU18 puis 0 100 0 100 az Pus lt gt PUD 0 100 0 000 PU18 lt gt PU19 Pu19 0 100 0 100 start Pus lt gt PU10 0 100 o 000 PU19 lt gt PU20 Pu20 0 100 0 100 0 000 screen NOTE The values entered here are saved in the sT RCRetainDataSet structure too NOTE The WinCC flexible internal variables white fields are copied together with the configuration of config data 1 screen to the SIMOTION variables yellow fields Print Standard Add On TRC1000 84 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example applic
18. 1 1 1 1 1 1 1 DO tension 1 1 1 1 AO adaption 30 30 30 30 DO 30 30 30 30 Aal En fg 70 70 70 70 mol ceni 70 0 70 70 0 5 0 0 Ra config 16 16 16 16 _ daal AO 32 32 32 32 pa ee 16711680 16711680 16711680 16711680 dig 2 1000 2211 1000 1000 eee 5000 3211 5000 5000 1 i 1 1 ao sart 618 0 618 0 618 0 618 0 po Sereen set in script OCX_InitPictureAnalogControITRC e g Number Symbol Default value Description 1 Default settings for OCX PrintMarkControl 1b T 4 Select color from graphic list OC XColorList 2 Transfer default setting to OCX PrintMarkControl for sensor 1 to 20 3 settings for sensor1 OCX PrintMarkControl 4 5 settings for sensor20 OCX PrintMarkControl 6 TCP IP server IP and port address Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 85 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Number Symbol Default value Description Sensori amp 192 168 0 1 1024 Sensor2 192 168 0 1 1025 Sensor20 192 168 0 1 1043 Table 5 3 PrintMarkControl config parameter config screen most important parameter parameter default unit description value ReadCycle 1000 ms Cycle time to read curve values from SIMOTION AxisColor A8A8A8 Hex Color o
19. I symbol name matches address and data type are not relevant address and data type match symbol name is not relevant I Replace tag name with symbol name 5 In the Start screen at the SIMOTION TRC1000 event loaded the variable NumberOfPUs need to be set to the maximum number of print units which can be used in this machine control exit config statistic history eror scope overview job start 6 Safe and compile the project NOTE If there is already a HMI project existing these screens can be copied now to the TRC HMI project 3 4 3 Setting up OCX PrintMarkControl At the moment the WinCC flexible screen which contains the OCX PrintMarkControl element oscilloscope field is getting opened the OCX PrintMarkControl TCP IP client connects itself to SIMOTION TCP IP server For this OCX needs the IP and port address of TCP IP server SIMOTION It is configured in the WinCC flexible scripts OCX_InitPictureAnalogControlT RC and OCX_InitPictureDigitalControlTRC The IP address has to match with the SIMOTION IP address The default port is 1023 which is also set up in the pTRC1000Backgr program in the section pComServer The output filed TCP IP connection on the DOAO screens shows the connection state of the OCX PrintMarkControl Green connected Red not connected Print Standard Add On TRC1000 36 V3 3 0 2015 08 10 SIOS ID
20. Pre assigned TRUE in xTypeDef i16LifesignTolerence INT Tolerance of life sing monitoring Recommended value 0 boReadTRCStatus BOOL Start read TRC Status system info actual parameter etc boReadTRCConfig BOOL Start read TRC Config configuration parameter boWriteTRCParameter BOOL Start write TRC parameter job download boReadTRCError BOOL Start read TRC errorlD s boSetSensor1 TriggerValue BOOL Set new trigger values sensor 1 boSetSensor2TriggerValue BOOL Set new trigger values sensor 2 sSensorTriggerValues sSensorTrig Data structure TRC trigger values gerValuesAc tType r32SetSensor1 Offset_Ref REAL Offset reference mark sensor 1 r32SetSensor1 ThresholdLevel_Ref REAL Threshold level trigger level reference mark sensor 1 r32SetSensor1ThresholdLevel2_Reg REAL Threshold level trigger level printing mark sensor 1 r32SetSensor2Offset_Ref REAL Offset reference mark sensor 2 r32SetSensor2ThresholdLevel_Ref REAL Threshold level trigger level reference mark sensor 2 r32SetSensor2ThresholdLevel2_Reg REAL Threshold level trigger level printing mark sensor 2 boStartTriggerValueTeaching BOOL Start trigger value teaching travel measurement boChangeCommandDistance_WebW BOOL Register fine adjustment eb Change distance between reference and printing mark gate WebWeb WebWeb2 boChangeGateWidth BOOL Change gate width to r32GateWidth r32GateWidth REAL gate width set value boAGSStart BOOL Start AGS boChangeGatePosition B
21. REAL Edge length height wedge mark 54 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description r82Width_Min_DoubleWedgeMark_ REAL Width short side double wedge mark 0 is P804 possible r82Width_Max_DoubleWedgeMark REAL Width song side double wedge mark _P805 r382MiddleWidth_DoubleWedgeMark REAL Width middle double wedge mark P806 r32Width_DoubleWedgeMark_P807 REAL Width total double wedge mark r82EdgeLength_DoubleWedgemark REAL Edge length height double wedge mark _P808 r82Width_Min_DoubleBlockMark_P REAL Width total short side double block mark 809 r82Width_Max_DoubleBlockMark_P REAL Width total long side double block mark 810 r32WidthStraight_DoubleBlockmark REAL Width straight mark of double block mark _P811 r32WidthBevel_DoubleBlockMark_ REAL Width oblique mark of double block mark P812 r82EdgeLength_DoubleBlockmark_ REAL Edge length height double block mark P813 r32Distance_AGSMarktoRefMark_P REAL Distance AGS block mark to reference mark 288 r32Tolerence_AGSMark_P289 REAL Tolernace range of AGS mark r32Width_AGSMark_1_P290 REAL Width block mark first of three blocks r32Width_AGSMark_2_P291 REAL Width block mark second of three blocks r32Width_AGSMark_3_P292 REAL Width block mark thi
22. Task cycle time used for register controller FB sInsettingOut sInsettingOu tType Insetting sub structure see Insetting Add On documentation sDRDOut sLRegCtrlID DRD sub structure dynamic register RDOut decoupling see DRD Add On documentation boSetRegActive BOOL Indicates an active SetReg print cylinder adjustment Signal can be used to open and close the gap in rotogravure printing machines before starting the cylinder adjustment boSetRefActive BOOL Indicates an active SetRef print cylinder adjustment Signal can be used to open and close the gap in rotogravure printing machines before starting the cylinder adjustment Meaning of the status variables byte 0 idle 1 functionality activated 4 functionality successfully completed 5 error Print Standard Add On TRC1000 48 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description sData_cyclic Table 4 11 sTRCData sData_cyclic cyclic communication data Name Type Description Simotion_to_Sensor sControlWord_1 boFaultAcknowledge BOOL Fault acknowledge boControlbyPLC BOOL TRUE connection is fully established and valid setpoint values are transmitted from the controller to the sensor boSensor1 DOReading BOOL Handshake bit to achieve data consistency during oscilloscope data reading Bit TRUE during reading dataset boSens
23. aboAlarmMarkWidth ARRAY Bit Alarm PM Width StatusWord2 0 20 OF FALSE valid PM width within the gate and Alarm BOOL PM Position is FALSE Print Standard Add On TRC1000 66 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description TRUE no valid PM width for three printing cylinder revolutions width exceeds maximum minimum width limit Alarm PM Position TRUE aboGateActive ARRAY Bit Gate Setting Active StatusWord2 0 20 OF FALSE At least three valid PM positions are BOOL detected after a gate setting TRUE Shift Gate Position Set Gate Position aboAGSActive ARRAY Bit AGS Active StatusWord2 0 20 OF FALSE AGS block mark detected no AGS block BOOL mark detected after three print cylinder revolutions maximum minimum speed limit exceeded or stand still of the printing cylinder during AGS active TRUE AGS active ar32ActualSensorGatePosition ARRAY Actual gate position 0 20 OF REAL ar32ActualSensorGateWidth ARRAY Actual gate width 0 20 OF REAL ab8GateWidthChange ARRAY Status change gate width eee OF 1 gate width update started 4 gate width update done 5 gate width update failed ar32RegisterErrorHistoryLR ARRAY Array includes the last 200 register deviation values 0 199 OF REAL ar32RegisterErrorHistorySR ARRAY Array includ
24. adaption first gear 100 Filterdepth print repeat 1 L Adaptrate first gear 100 00 2 Filterdepth insetter calc 2 H Setpoint 1 0 00 10 yee T Abs adaption avg adj 100 Min filterdepth for value 3 E Setpoint 2 m Adaptrate avg adj 100 00 2 Factor measuring value 1 00 1 Setpoint 3 100 00 100 Accuracy first format 0 01 mm Max absolut adaption 2 H Setpoint 4 0 00 0 Minimum velocity 0 10 m s Adapt rate of gear 100 00 Setpoint 5 0 00 0 Number of meas first gear 1 H Max no of fail meas 2 fF Setpoint 6 0 00 0 Bordervalue stable reg zero 1 00 mm Circumference insetter 500 00 mm config Setpoint 7 0 00 0 Number of meas stable zero 3 inset Setpoint 8 0 00 0 Bordervalue avg adjustment 0 02 mm Mark error Setpoint 9 0 00 0 ByPass First Gear off Marks per modulo ere _ 1 00 i adaption Setpoint 10 0 00 0 RN aA Data for other circumference Safety factor config yeteres m min s Do not use print format off 1 50 control ree ene hoe Circumference insetter 0 00 mm Check fine correction Sead Scale factor register dev 1 00 D Number of values in tube gga Scale factor average adjust 1 00 1 3 E a 5 a x fi Regard material transport off Bordervalue of tube o g Comper isoniecmpletedd Weblength infeed printcyl 0 00 mm 0 02 mm _ data2 r Mode start Ball Zero position screen e Gearing level pre control 1 Speed depen
25. default 1mm per edge e jerk fast default 5mm per edge The jerk steps can be changed in the Configuration 1 screen Set fine correction offset back to zero Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 105 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Button Description Set fine correction offset to the actual register error e Register Control Faceplate 15 The following picture shows the register control faceplate which shows the actual register error of length vertical and side horizontal register The scale of the diagram can be changed in the lt 4 Configuration 1 screen with the input resolution factor reg control view ais a xD lt Register deviation length side register in mm OFF controller OFF lt Register controller status Print Standard Add On TRC1000 106 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Register overview screen On the register overview screen the operator gets an overview about all register controlled print units in one screen The screen shows all print units which are currently active By clicking inside one of the register control faceplates the respective print unit gets selected and can be controlled by the buttons on the right hand side B
26. s recommended to perform a reboot soft reset of the TRC device after a factory reset 11 1 2 Sensor reset via RS232 interface NOTE To use the RS232 command interface see chapter 9 Table 11 1 sensor reset commands RS232 commands IDS DS soft reset 9999 factory reset 8888 7777 NOTICE It s recommended to perform a reboot soft reset of the TRC device after a factory reset Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 129 Copyright Siemens AG 2015 All rights reserved 12 Abbreviations 12 130 Abbreviations Table 12 1 Abbreviations Abbreviation Description FOC Fiber optic cable TRC Technology module Register Control PN PROFINET AMR Automatic mark recognition vgl AGS AGS Automatic Gate Setting LR Length register SR Side register TO SIMOTION Technology object HW Hardware ATEX Atmosph re Explosive ATEX guideline IRT Isochronous Real Time RGB Red Green Blue color model FW Firmware PNU Parameter number IDS Intelligent detection sensor Head 1 DS Detection Sensor Head 2 OCX OLE custom controls is a TCP IP client which connects to the SIMOTION TCP IP server Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 13 Related literature 13 13 1 Related literature Bibliography This list is
27. 0 2015 08 10 SIOS ID 59753224 99 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Oscilloscope screen This screen is to show the sensor oscilloscope as well as operating the register functionalities and register controller Figure 5 12 Analog Digital oscilloscope screen PM trigger 1 20 1 20 offset 2 10 2 10 RM trigger 1 20 1 20 offset 2 10 2 10 z oe a start ED screen controller ON controller OFF Jj NOTE The request of the measured values will be started when changing to the scope screen For measuring the printing cylinder axis need to be angular synchronous Otherwise no values will be sent from the TRC to SIMOTION e TRC number selection 1 With the TRC number selection you can switch through the different scope screens of the active sensor devices e Analog oscilloscope with cursors 2 In this diagram the sensor analog signal curve will be displayed The X axis represents the format length millimeter the Y axis the sensor analog signal voltage NOTE If the register control mode web web 2 is selected the analog curve of the second sensor appears additionally red color in the analog oscilloscope filed Print Standard Add On TRC1000 100 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application e Sensor trigger value setting 3 Dependi
28. 100 1002 lt parameter number gt Parameter read PNU lt 100 1003 lt parameter number gt lt value gt Parameter write PNU lt 100 1004 lt parameter number gt lt value gt Parameter write PNU 100 For a more detailed list of all possible parameter see Wiedeg IDS PN User Manual or Wiedeg IDS PN Reference Manual Print Standard Add On TRC1000 126 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 9 Analog monitor DIAG interface Analog monitor DIAG interface With the analog monitor various actual values of the process respectively logical states of one or more bits of a status value can be read out as analog values with a refresh rate of 0 5 ms All parameter with a parameter number PNU gt 100 can be read out that way Necessary hardware software e Measuring adapter connect to the DIAG interface of the sensor e Oscilloscope e Hard and software for the RS232 interface to parameterize the analog monitor see chapter 9 The measuring adapter has two analog pins so it s possible two read out two parameters at the same time The parameterization which parameter should be displayed on the analog monitor output pins has to be done by the RS232 command interface The commands are listed in the following table Table 9 1 TRC1000 RS232 commands to parameterize the analog monitor 5001 Command Parameter Description lt channel gt lt parameter Parameterize
29. 3 White adjustment once more 6004 7004 1 Insert the objective above the white substrate up to the limit and hold it there Send command 6004 for automatic white adjustment 2 Insert the objective above the black substrate up to the limit and hold it there Send command 6005 for automatic black adjustment 3 Insert the objective above the white substrate up to the limit again and hold it there Send command 6004 for automatic white adjustment again NOTE The procedure for the DS is the same as described above but with command 7004 for white and 7005 for black adjustment Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 125 8 Command interface RS232 Copyright Siemens AG 2015 All rights reserved 8 Command interface RS232 With the RS232 interface of the sensor all parameter within the acyclic data can be read and written To connect your computer with the sensor the following hardware and software is necessary e RS232 cable e RS232 Port computer or USB to RS232 adapter e Windows Hyper Terminal or Tera Term free ware tool For a detailed description how to start the communication between computer and sensor device see Wiedeg IDS PN User Manual or Wiedeg IDS PN Reference Manual Read and write commands of the RS232 interface Table 8 1 TRC1000 RS232 read write commands Command Parameter Description 1000 lt parameter number gt Parameter read PNU 2
30. 300 0 500 PU3 5 0 050 0 100 0 200 0 300 0 500 PU 4 5 0 050 0 100 0 200 0 300 0 500 Pu 4 5 o oso 0 100 0 200 0 300 0 500 PUS 5 0 050 0 100 0 200 0 300 0 500 PUS 5 0 050 0 100 0 200 0 300 0 500 PU 6 5 0 050 0 100 0 200 0 300 0 500 PUB 5 0 050 0 100 0 200 0 300 0 500 PU7 5 0 050 0 100 0 200 0 300 0 500 PU7 5 0 050 0 100 0 200 0 300 0 500 PUS 5 0 050 0 100 0 200 0 300 0 500 Pug 5 0 050 0 100 0 200 0 300 0 500 PUS 5 0 050 0 100 0 200 0 300 0 500 PU9 5 0 050 0 100 0 200 0 300 0 500 PU 10 5 0 050 0 100 0 200 0 300 0 500 PU 10 5 0 050 0 100 0 200 0 300 0 500 PU 11 5 0 050 0 100 0 200 0 300 0 500 PU 11 5 0 050 0 100 0 200 0 300 0 500 PU 12 5 0 050 0 100 0 200 0 300 0 500 PU 12 5 0 050 0 100 0 200 0 300 0 500 PU 13 5 0 050 0 100 0 200 0 300 0 500 PU 13 5 0 050 0 100 0 200 0 300 0 500 PU 14 5 0 050 0 100 0 200 0 300 0 500 PU 14 5 0 050 0 100 0 200 0 300 0 500 PU 15 5 0 050 0 100 0 200 0 300 0 500 PU 15 5 aoso 0 100 0 200 0 300 0 500 PU 16 5 0 050 0 100 0 200 0 300 0 500 PU 16 5 0 050 0 100 0 200 0 300 0 500 PU 17 5 0 050 0 100 0 200 0 300 0 500 PU 17 5 0 050 0 100 0 200 0 300 0 500 PU 18 5 0 050 0 100 0 200 0 300 0 500 PU 18 5 0 050 0 100 0 200 0 300 0 500 PU 19 5 0 050 0 100 0 200 0 300 0 500 PU 19 5 0 050 0 100 0 200 0 300 0 500 PU 20 5 0 050 0 100 0 200 0 300 0 500 PU 20 5 0 050 0 100 0 200 0 300 0 500 single PU i gt 2 single c statistic e Copy single 1 3 This button copies the class definit
31. 59753224 73 Copyright Siemens AG 2015 All rights reserved 4 Function description 4 4 4 FBCom FBLComMachineCom Functionality The function block is used to establish a TCP IP connection between SIMOTION and WinCC flexible PrintWarkControl The function block is part of the LCom library NOTICE For every TRC device one separate FB call is necessary Task The function block has to run in a cyclic task Recommended task background task 4 4 5 FBLTRC1000TcplpHmi Functionality The function block sends the the curve and gate data to the WinCC flexible PrintWMarkControl To safe system performance only the data of the active print unit screen on the HMI scope screen opened will be transferred NOTICE For every TRC device one separate FB call is necessary Task The function block has to run in a cyclic task Recommended task background task Print Standard Add On TRC1000 74 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description 4 4 6 FBLRegCtrlController Functionality The FBLRegCirlController separate library LRegCtrl contains the register control functionality The function block is used for all register control solutions TRC1000 TRC3000 TRC5000 A separate documentation of this function block with detailed information is available The output signal of the function block is a speed setpoint signal The value will be coupl
32. Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 121 Copyright Siemens AG 2015 All rights reserved 7 Sensor calibration 7 7 1 NOTE NOTE 122 Sensor calibration Before using the TRC for printing mark detection the correct data set for the fiber optic cable length has to be selected In some cases a sensor white adjustment could be also useful Both settings can be done by the HMI or alternatively via the RS232 command interface Fiber optic length The fiber optic cable between head and sensor device is available in two lengths e 2 5m e 5 0m For these two lengths the sensor is delivered with two data sets In the factory settings data set 1 2 5m is selected For a 2 5m fiber optic cable length no data set change is necessary Using a 5 0m fiber optic cable data set 2 has to be selected For IDS head 1 and DS head 2 different data sets can be selected After changing the data set the new data set is taken over and saved permanently in the flash memory of the device At next power up the previously selected data set is loaded A factory reset of the sensor resets both data sets IDS and DS to data set 1 2 5m Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 7 Sensor calibration 7 1 1 Data set change via HMI 1 Go to the config data screen 2 Select the sensor TRC you want to change the data sets
33. All rights reserved 5 Use of the example application Statistic screen In the statistic screen the distribution of the register error in different classes can be displayed The measurement can be started stopped and reset for each print unit By clicking on the print unit number on the left hand side of the table the actual chart of the distribution can be displayed Figure 5 15 Statistic screen sE a e e rr a o0 oo ooo ooo ooo 0 00 2857 7143 0 00 0 00 0 00 conn E Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 109 5 Use of the example application Copyright Siemens AG 2015 All rights reserved Statistic configuration screen In this screen the classes can be defined for each print unit e g e Class 1 register error gt 0 05 mm e Class 2 register error gt 0 1 mm e Class 3 register error gt 0 2 mm e Class 4 register error gt 0 3 mm e Class 5 register error gt 0 5 mm Figure 5 16 Statistic Configuration screen 60 m min Intervall limits mm LR AE class1 class2 class3 class classS SR ay class1 class2 class3 class4 class5 PUL 5 0 050 0 100 0 200 0 300 0 500 PUL 5 ooso 0 100 0 200 0 300 0 500 Pu2 5 0 050 0 100 0 200 0 300 0 500 PU2 5 0 050 0 100 0 200 0 300 0 500 PU3 5 0 050 0 100 0 200 0
34. Document Version HIStOLY cceseeeceseeeeeeeseeeeeeeseeneeseseseenseseeneeseseenenenseeeeees 132 COMRACT acces cece cece ease sane ccnc ea deca s ae estg eueeee te teieennie sun ceteagtvesanes ceteeeauuneaneescuee 133 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 7 Copyright Siemens AG 2015 All rights reserved 1 Application description 1 1 Application description The basic functionality of the application Print Standard Add On TRC1000 is the handling of the print mark detector IDS PN from manufacturer Wiedeg Additionally the application shows how to integrate the functionality of register control and how visualization on a panel or PC can be realized Handling of TRC1000 is based on a cyclic and acyclic standard interface between sensor and SIMOTION Via these interface all necessary functionality is being managed E g parameterization reading of the oscilloscope data and much more Moreover to the basic communication functionalities it provides a lot of additional functions to make the handling of the device as easy as possible Print Standard Add On TRC1000 functionalities e Collection of parameterization data and handling of transfer the printing job data to the TRC hardware e Evaluation of the markfiled and mark error e Calculation of register errors depending on measuring mode and selected marks e Preparation of analogue oscilloscope curves for graphic display on the HMI
35. F HMI IE H IE General H CP PROFIBUS HMI J User Application oa A E E Find ni A il Profle Standad SSC Press F1 to get Help t Description Open Step7 with both projects and copy the HMI project from the example project to the user project IF there is no HMI IE Interface in the HMI Station available doubleclick on the HMI Station in NetPro to open the HW Config Select the HMI IE Interface in the library SIMATIC HMI Station CP Industrial Ethernet CP 1628 and put it to the rack via drag and drop Pais EES Somer a la mm a 4 Cancel Hep Subnet mack fs 2550 To display OPC server Subnet ror reies thaat 2 Open net pro of user project Set IP address of HMI and connect to the network which is also connected to the SIMOTION Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 35 3 Integration Copyright Siemens AG 2015 All rights reserved Description 4 EE m Open the HMI project in i WinCC flexible and reconnect all symbols by name lf all variables are existent in SIMOTION the reconnection should be successful T_e Options for Reconnecting Symbols Connect STEP SIMOTION symbols with WinCC flexible tags if symbol name address and data type match one ot more of the following conditions are true
36. TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 21 Copyright Siemens AG 2015 All rights reserved 3 Integration Description 9 Profinet TRC1000 PROFINET I0 System 100 eaten Define addresses sibs BO Siname TE 4 psi E M Define the TRC addresses ei Gaon by clicking on the telegram in Properties T300 slot 1 2 General Addresses r Inputs tart Process image Nore OP oua Start Address of input and a poar output data should be the E Franaa Ar E same 10 AA STRSTR Adjust the PROFINET IO Debt pgo e d MO W rz topology Right mouse click on the PROFIBUS Integrated DP Mastersystem 1 PROFINET IO system and go to PROFINET IO Topology Profinet TRC1000 PROFINET IO System 100 E Edit PROFINET 10 System IP addresses iy a i 11 Select graphical view and connect the TRC PROFINET interface to a free port of the SIMOTION controller Further TRC1000 devices has to be connected from po a aeaaee port 2 of the previous device ee a Ee ee Fee to port 1 of the following i device C Sona doiwtmebst Fa NOTE ra a Conner This wiring needs to match E D e _ ine with the physical wiring Ad 4 OK oK Cancel Hep 12 Right mouse click on the PROFINET IO system and p PRO
37. TRC1000_Workshop Insert 1 O System Gly Station Edit Inset PLC View Options Window Help DSS BS amp i MO ne If there is already an I O System existing step 3 can PROFIBUS Integrated DP Mastersystem 1 be skipped Right mouse click on the ae PROFINET I O Controller Chey Ta l2 Sinamic LE Insert PROFINET IO System Delete Be GoTo gt Alt Retum a a Cirle aleo 0 SIMOTION Assign Asset ID Product Support Information Ctrl F2 Q address Comment FAQs ChiKE Find Manual Start Device Tino 5 Now I O devices e g TRC1000 can be connected to the PROFINET I O PROFIBUS Integrated DP Mastersystem 1 DEAR System PNAENET B 3 SINAMIE E Ethemet 1 PROFINET I0 System 100 Print Standard Add On TRC1000 20 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 3 Integration 6 Bh Station Edit Insert PLC View Options Window Help DSP Mee da Hoe J O SIMOTION 0445 2 Profinet TRC1000 PROFINETIO System 100 PROFIBUS Integrated DP Mastereystem 1 PROFINET 10 Additional Field Devices B Sensors E Network Components E Precon gured Stations Description Insert TRC1000 device Premise GSD file has been installed step 2 Select the TRC1000 device from the hardware catalogue PROFINET IO additional field devices sensors DM E Ss i f Sensor I
38. Usage of pre processor command in the program code ifdef LPrintv300 gaFBTechLR ARRAY NUMBER_OF_FIRST_TRC NUMBER_OF_FIRST_TRC NUMBER_OF_ACTIVE_PUS 1 OF FBLPrint_TechaAxis endif ifdef LPrintv221 gaFBTechLR ARRAY NUMBER_OF_FIRST_TRC NUMBER_OF_FIRST_TRC NUMBER_OF_ACTIVE_PUS 1 OF FBTech endif Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 3 Integration Copyright Siemens AG 2015 All rights reserved 3 3 Adaption Extension of the SIMOTION program for used TRC s printing units To adapt the example project to an own machine project or extend the project by further TRC s the following steps need to be done S_Var_Gl Table 3 3 Adaptions in S_Var_Gl Adaption Description 1 eae Pre processor commands 23 select here between Print Standard library 25 _ define uprintv221 use Print Standard V2 2 1 0 AND earlier versions z z i define LPrintv300 use Print Standard V3 x x define LPrintV221 V300 With this pre processor command the version of the Print Standard library used in the project will be defined define LPrintV221 Print Standard lt V2 2 1 0 define LPrintV300 Print Standard gt V3 0 0 Number of Sensors NUMBER_OF_ACTIVE_PUS defines the number of register controlled printing units NUMBER_OF_FIRST_TRC defines the index of the first register controlled TRC The number of structures and function bl
39. aborted Function not executable 2306 16 FFFF80A1 Negative acknowledgment when writing to the module 2307 16 FFFF80A2 Protocol error in Layer2 Module not available 2308 16 FFFF80A3 Protocol error involving user interface user Module not available 2309 16 FFFF80A8 Error because of version conflict 2310 16 FFFF80A9 Function not supported by the module 2311 16 FFFF80B0 Data record unknown to module 2312 16 FFFF80B1 Incorrect length specified in LEN parameter 2313 16 FFFF80B2 Module reports access to an invalid slot subslot 2314 16 FFFF80B3 Module reports type conflict 2315 16 FFFF80B4 Module reports access to an invalid area 2316 16 FFFF80B5 Module is not ready 2317 16 FFFF80B6 Module rejects access 2318 16 FFFF80B7 Module reports an illegal range for a parameter or value 2319 16 FFFF80B8 Module reports an invalid parameter 2320 16 FFFF80B9 Module reports an invalid type 2321 16 FFFF80C1 Data of the preceding write job on the module for the same data set has not yet been processed by the module 2322 16 FFFF80C2 The module is currently processing the possible maximum of jobs 2323 16 FFFF80C3 Required resources are presently occupied 2324 16 FFFF80C4 Communication error 2325 16 FFFF80C5 Distributed I O not available 2326 16 FFFF80C6 Data set transfer has been aborted because of priority class abort 2327 16 FFFF80C7 The function block is currently processing another job Print Standard Add On TRC1000 V3 3 0 2015 08 10 SI
40. atta daa 70 4 4 2 FBT RC1 OOO CYCLIC iisen anin ra eed aeaa aia raaa 72 4 4 3 FBHMIData lranstere ran iaeaea a aaa aaa a aeaaea i aa 73 4 4 4 FBCom FBLComMachineCom ccccccceeceeeteeceeeeeseteeeeeaeeeeneeenaees 74 4 4 5 FBLTRC1000TCpIDHIMI 0 ccceeeceeeeeeeeeeeeeeeeeeeeseeeeeseaeeesaeeeeeeeenaees 74 4 4 6 FBLRegCtrlController sise iinei uea aiii anarei anae a is 75 4 4 7 AAKO EOE eds tries eal tenn eh itd le dle eta 75 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved Table of contents 10 11 12 13 14 15 4 5 Sensor telegrams ciiin iunii ayi ae ai iiaa aas 76 Use of the example application ccccsseeccsseteeeesseeeeenseeeeeenseeeeeenseeenenseeeees 77 5 1 OVGIVIOW EEE AT EE ATEA EE 77 5 2 HMESOO ONS oiera a eeraa aAA eA AEA IE EARI EATORRA RENA EREEREER EAR 79 Alarms and error Messages e ececeeeeeeeeeeeeeeeenseeeeeeeseeeeeenseeeeeenseeneeenseeeeeenss 111 6 1 Application Errors raneren ai r a 112 6 2 Sensor error MESSAGES cceceeececeeeeeceeeeeeaeeeeneeseeeeesaeeseaaeseeneeeeaees 119 6 3 Register FB error Messages sseessesissreissrrrrssrrirssrrrnnsrrrnssrnns 120 6 4 Insetting DRD error MESSAGES ce ceeeeeteceee sete eset eeeeeeetaeeeeeeaeeeene 121 6 5 LiIfESIQN eof inenga i ities eee 121 6 6 Error history and fault Duff er eee eeeeeeeeeeneeeeeeneeeeeeaeeeeeeaeeeeeee 121 Sensor Calibration ssiri cssecesece
41. control mode web web 2 is selected and the trigger value setting for sensor 2 has been done the digital curve of the second sensor appears additionally on top in the digital oscilloscope filed e Zoom curve 5 The zoom curve can be used for a better diagnostic of a specific area of the format length The zoom area can be shifted left and right in this area only the arrow is inserted in the screenshot To increase or decrease the zoom area just grab the right or left edge and shift it Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 101 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application 102 NOTE NOTE NOTE NOTE With a double click in the zoom area this area can be enlarged The standard view will become smaller than With a double click in the standard view the standard view will be enlarged again The proportion between the two areas can be defined in the control config screen with the value RangeFactor default 60 60 40 standard view zoom area Gate adjustment 6 Inside the so called gate the measuring of the print mark takes place To calculate the register deviation the printing marks on which the calculation is based on has to be within the gate The TRC differs between two different gates o Blue gate for the register printing mark o Red gate for the reference printing mark For web cylinder mode only the red g
42. data reading and evaluation The scope data transfer from the TRC to SIMOTION is realized by acyclic communication one time per format print cylinder rotation After receiving the data from the TRC device the FB saves the data in the sHMIControlData structure The data transfer to the WinCC flexible PrintWarkControl is realized by the FBs FBCom connection establishment and FBTRC1000TcpIpHMI transfer data 6 Acyclic communication TRC parameterization The whole job parameterization on the TRC will be done by acyclic communication Moreover some operation values e g gate changes and status values need to be written or read by acyclic communication The whole acyclic handling will be done in the background function block The commands of the LDPV1 SIMOTION standard library are used for the acyclic communication NOTICE For every TRC device one separate FB call is necessary Print Standard Add On TRC1000 70 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Input and Output Parameters Table 4 18 scheme of FBTRC1000Backgr USINT DINT sTypeTRCConfig sTRCDataType FBTRC1000Backgr PrintUnitNr SensorLogAdress TRCConfig TRCData Table 4 19 interface parameters FBTRC1000Backgr I O Name Type Description IN PrintUnitNr USINT Number of printing unit TRC number IN SensorLogAdress DINT Address of TRC device IN TRCC
43. e u1l6RegisterFBErrorlDLR e ui6RegisterFBErrorIDSR Table 6 7 Register FB error messages ErrorlD Description 2050 T_A out of range 2051 sPu v_setpoint gt CONST_V_MAX 2052 sPu s_web_Length out of range 2053 T_mot out of range 2054 sPu s_format out of range 2055 r32T WebWeb out of range 2056 transport delay error 2057 input or output filter error 2058 controller disabled amplitude x1_k exceeds bounds 2059 controller disabled amplitude x3_k exceeds bounds 2060 Prediction output invalid x4 2061 fast rate differentiation of predictor output error 2062 paramError OR oF iltOutputLimited OR iFiltOutputLimited 2063 Output filter invalid value x6 2064 warning integrator overflow 2065 warning buffer size transport delay gt check web speed lt gt 0 check distance PU lt gt Sensor 2066 warning negative time transport delay 2067 warning initial ramp up 2068 output filter k_outLtd x5 is out of range and was limited 2069 output P controller k_intLtd x_int out of range and was limited 2070 requested ramp time is active after controller enable 2071 predictEnabled Print Standard Add On TRC1000 120 V3 3 0 2015 08 10 SIOS ID 59753224 6 Alarms and error messages Copyright Siemens AG 2015 All rights reserved 6 4 Insetting DRD error messages NOTE A list of all error and warning messages can be found in the respective Add On documentation 6 5 Lif
44. gen MCC Quelle einf gen gt KOP FUP Quelle einf gen DCC Plan einf gen B dHMI B dMGlobal D pFaut__ _ B plnsetting _ 1 B pMShtdwn B pMStartup B pRAPC01 B pRAPC_02 P pTRC1000 B pvA_GM_Web B pv4_LM_Format S_H_Var_Gl B SVar_GL G i e LCom D LConLib e LConLib D LDPV1 e LDPVi1 A LPrint e LRegCtrl H A LRegCtrl e LSafeCast LSafeCast e LTRC1000 LTRC1000 e LPrint resp SPrint Possibly the used hardware and the version needs to be selected at all library s first Accept and compile each library after integration 2 PROGRAMME Integrate necessary program sources Units with global variables e S H Val Gli e S Var Gl No changes of these sources are necessary Program sources e pTRC1000 need to be adapted to your specific project e plnsetting if required 26 V3 3 0 Print Standard Add On TRC1000 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 3 Integration B TR LO00V2_30_20110203 Msert SIMOTION device Insert single drive unit D445_2_MA E x142 inputs outputs 4 EXECUTION SYSTEM 4S ADDRESS LIST e GLOBAL DEVICE VARIABLES a axes 2 EXTERNAL ENCODERS E PATH OBJECTS B CAMS TECHNOLOGY E PROGRAMS Insert ST source file Insert MCC unit gt Insert LAD FBD unit gt Insert DCC chart B H ar_al B M_comm B M_S_Axes B M_Startp B _var_cl B plnsetting G pinsettingStartU
45. id 0 20 OF parameter number DINT aboSensorError ARRAY TRC device error 0 20 OF BOOL au16SensorErrorlID ARRAY TRC device error ID 0 20 OF UINT aboRegisterFBErrorLR ARRAY Register controller function block LR error 0 20 OF BOOL aboRegisterFBErrorSR ARRAY Register controller function block SR error 0 20 OF BOOL au16RegisterFBErrorIDLR ARRAY Register controller function block LR error ID 0 20 OF UINT au16RegisterFBErrorIDSR ARRAY Register controller function block SR error ID 0 20 OF UINT b32GlobalError DWORD Bit 0 global error one of the print units Bit 2 x local error print unit x i32MachineSpeed DINT Actual web speed sCommissioningDataToSimotion sActualSensorConfig sActualConfig Actual TRC configuration data sActualSensorStatus sSensorStatu Actual TRC status data sinfo sActualSensorError sSensorError Actual TRC error information End sCommissioningDataToSimotion b8TRCCalibrationStatus BYTE Actual TRC calibration status 0 inactive 1 use RefBox input white Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 65 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description 2 use RefBox input black 3 use RefBox input white 2nd 4 finished 5 error i16FiberOpticLengthHead1 INT Actual fiber optic length
46. not complete and only represents a selection of relevant literature Table 13 1 Related literature Subject Title Wiedeg IDS PN User Manual IDS PN_User_Manual_en_V2 0 2 Wiedeg IDS PN IDS PN_Reference_Manual_de_V2 0 Reference Manual more detailed user manual only German version available 3 Wiedeg firmware IDS PN Firmware Update PIC32 mit ICD 3 only German update manual version available 4 SIMOTION Print Print Standard V2210 en pdf Standard 5 Insetting Print Standard AddOn Insetting 6 DRD Print Standard AddOn DRD 7 SIMOTION SIMOTION Manual 02 2012 8 SINAMICS SINAMICS Manual 06 2012 13 2 Internet link specifications This list is not complete and only represents a selection of relevant information Table 13 2 Subject Title 1 Reference to the http support automation siemens com WW view en EntryID entry 2 Siemens Industry http support automation siemens com Online Support 3 Siemens Industry htip www siemens com printing Printing 4 Siemens Industry http Avww siemens com motioncontrol apc APC SIMOTION http www siemens com simotion SINAMICS http www siemens com sinamics Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 131 Copyright Siemens AG 2015 All rights reserved 14 Document Version History 14 Document Version History Table 14 1 Version History
47. screens and gate settings e Evaluation of cyclic communication monitoring of TRC sign of life fault handling e TRC mode handling Basic information and data System requirements This application was developed and tested using Software e SIMOTION SCOUT 4 4 HF 2 e WinCC flexible 2008 SP3 Upd5 e SIMATIC STEP 7 V5 5 SP4 HF5 e Wiedeg sensor firmware V2 2 0 e GSD file date 2014 11 14 Hardware e SIMOTION D445 2 on training case TK SIM D435 built to be connected to 1 AC 230 V or 1AC 115 V with transformer e SLM 5kW e Double Motor Module 3A e 2 additional Synchronous Motors 1FK7060 3BF71 1BA0 Encoder AS24DQI P03 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 1 Application description 1 2 e Wiedeg print mark detector IDS PN Supported Panels HMI e SIMATIC IPC 277D e PC Runtime Integrated register control with SIMOTION Print Standard In modern printing presses each print unit is individually driven by servo motors and the synchronism is achieved by an electronic line shaft ELS with virtual master The register is adjusted by the offset value angle of the synchronism Thus the synchronized drive is the actuator of the register adjustment The register controller needs to manipulate the synchronism between the virtual master and the real axis of the print unit drive In order to control the register in a closed loop a
48. the characteristic for soeed depending shift and also the value for acceleration shift is the same except for an factor between the different units there is only one characteristic The characteristic of the following units is adjusted by the adaption factors Configuration download upload 6 Button Description N x With these buttons a WinCC flexible recipe can be created and the configuration can be saved into it mu With the download button the inputs in the white fields WinCC flexible internal variables will be copied to the SIMOTION variables yellow fields a0 The upload button copies the SIMOTION variables to the internal WinCC flexible variables Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Mark stream screen In the mark stream screen a mark stream for the printing job can be defined Figure 5 10 Mark stream screen Data record name Nr TRC1000_MarkStream a alale x C SIBAKAAK SIEAKAAL mi mur NNN Ik 10 00 mm Brin bmax 7 00 mm bmin 0 00 mm wi WIN TOE ae add single job start screen e Create mark stream 1 Table 5 6 mark stream edit buttons Button Description H Generate a new mark stream dataset Save the actual mark stream dataset All data will be saved in the panel
49. was changed Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 87 5 Use of the example application Copyright Siemens AG 2015 All rights reserved To react to this event a corresponding function list can be deposited in script OCX_LastFiredCustomEvent in select case 4 ConnectionStateChanged void This event is triggered if the status of TCP IP connection to 5 SIMONTION changed To react to this event a corresponding function list can be deposited in script OCX_LastFiredCustomEvent in select case 5 Touched 10 void This event is triggered if the after property NotifyNextTouchPosition 1 was set With Property TouchPosition the selected gate position can be read out To react to this event a corresponding function list can be deposited in script OCX_LastFiredCustomEvent in select case 10 Print Standard Add On TRC1000 88 V3 3 0 2015 08 10 SIOS ID 59753224 5 Use of the example application Copyright Siemens AG 2015 All rights reserved Insetting configuration screen In this config screen Insetting settings can be done Figure 5 8 Insetting Configuration screen 0 m min S E insetting configuration Pre Control Web cylinder insetting Key insetting Characteristic Velocity G ffset ae amn f velocity gear offset m min an Set Abs
50. x Delete the selected mark stream dataset e Printing mark number selection 2 o AGS AGS block mark o 1 20 Printing mark number maximum 20 marks stream e Printing mark type definition 3 o Wedge o Double wedge o Block o Double block Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 93 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application 94 NOTE A detailed description of the mark type definitions especially of the active edges can be found in the Wiedeg manual IDS PN User Manual en pdf e Printing mark geometry setting 4 Geometry settings dependent on the selected mark type e Distance setting 5 Distance to previous printing mark e Add single print mark 6 Add printing mark to the mark stream e Add multiple print marks 7 Shows the actual view of the created mark stream e Mark stream preview 8 Shows the actual view of the created mark stream Schaltflache Beschreibung The button can be used to reset one of the inverse mark stream This button changes the mark stream to mirrored stream in side direction selections to the standard orientation BIAKAAK BIW VVVV print unit With this button the mark stream can be switched to a stream which BIAKAAAA results after mounting the cylinder in opposite direction 180 into the NNNSN TAIE If there is a mirrored mark field in web direction printed to the web BIBKLA
51. 1 offset 1 P19 Lo ee colour 1 E 0 70 colour 9 o fiber optic length H1 offset 2 P49 o ee colour 2 w 0 50 colour 10 0 70 TRC 2 x ok H1 trigger1 P17 2 E aan colour 3 es 1 00 colour 11 0 50 sensor H1 trigger2 P18 oa ES colour 4 E 100 colour 12 0 20 calibration a2 2sm white fad rapist ses T colours 100 coiouri3 030 z i r config head 2 25m_ white white colour 6 1 00 colour 14 0 80 p j H2 offset 2 P50 1 00 1 00 insetting i H2 trigger1 P21 oso eee colour 7 lias 1 00 colour 15 0 90 haehae Doi i TH H2 trigger2 P22 0 50 0 50 Register Error sampling LR tension Confi Mo number of cylinder revolutions E o Life Sign Tole P925 0 0 adaption PUL 1 Pus 1 1 Hu x aD sens teach min P45 0 20 0 20 fi pu2 1 a PU 1 1 contig sens teach max P46 0 20 0 20 control Pu3 1 1 Pus 1 1 esolution factor req ctrl view tolerance AGS mark 1 50 1 50 detection P39 pu4 i i Pug 1 i fi 10 000 10 000 contig Reg Ctrl settings p 1 1 Pu10 1 1 data 1 i i Favor Length register Side regis 0o l1 factor cylinder inching 4 gis 2 ontrol algorithm symmetricalOpti gt symmetricalOptimur Length Side Inset 1 000 1 000 Technology a oravure Ca A n a slow 0 100 0 100 0 100 0 100 mm 1 1 e 1 000 1 000 1 000 1 000 Integral ratio LR ON ON Lee Da 2 z 2 2 fast 5 000 5 000 5 000 5 000 mm 10 10 Mak coniroler Pos 1 50 1 50 mm s start Ti ms 10 10 E Neg 1 50 1 50 mm s screen e Pane
52. 2365 16 FFFF80B3 Module reports type conflict 2366 16 FFFF80B4 Module reports access to an invalid area 2367 16 FFFF80B5 Module is not ready 2368 16 FFFF80B6 Module rejects access 2369 16 FFFF80B7 Module reports an illegal range for a parameter or value 2370 16 FFFF80B8 Module reports an invalid parameter 2371 16 FFFF80B9 Module reports an invalid type 2372 16 FFFF80CO The module has the data set but no read data is available 2373 16 FFFF80C2 The module is currently processing the possible maximum of jobs 2374 16 FFFF80C3 Required resources are presently occupied 2375 16 FFFF80C4 Communication error 2376 16 FFFF80C5 Distributed I O not available 2377 16 FFFF80C6 Data set transfer has been aborted because of priority class abort 2378 16 FFFF80C7 The function block is currently processing another job Print Standard Add On TRC1000 118 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 6 Alarms and error messages 6 2 Table 6 6 TRC1000 error messages Sensor error messages sStdclO out variables e boSensorError e u16SensorErrorlD ErrorlD Error code Description Sensor internal 2010 0x0004 4 Address error load or command call 2011 0x0005 5 Address error store 2012 0x0006 6 Bus error command call 2013 0x0007 7 Bus error load or store 2014 0x0008 8 System call 2015 Ox000A 10
53. 3 4 3 it is described how to set up the OCX PrintMarkControl oscilloscope in WinCC flexible Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 33 3 Integration 3 4 1 Install and register PrintMarkControl NOTE To update the PrintMarkerControl install the latest SetupPrintMarkerControls exe file No further steps are necessary Table 3 7 Installation of PrintWarkerControls 1 unzip SetupPrintMarkerControls zip e g C Program Files Siemens PrintMarkerControls run SetupPrintMarkerControls exe 3 Open WinCC flexible Open My Controls in Tools Select Controls gt right mouse click in white area opens context menu Select MCPMControlAnalog V2 Class and MCPMControlDigital V2 Class ik 23 Simple Objects Enhanced Objects My Controls A WinCC flexible ES C HHCtl Object Copyright Siemens AG 2015 All rights reserved O InstallEngineCti Object O ListPad class C LM Runtime Control C MCPMControlAnalog Class age g V2 Class O MCPMControlDigital Class C Microsoft DDS 80 O Microsoft Directdnimation Control O Microsoft DirectAnimation Windowed Control O Microsoft Forms 2 0 CheckBox O Microsoft Forms 2 0 ComboBox Microsoft Forms 2 0 CommandButton MCPMControlAnalog V2 Class Version 1 0 See Language Unknown CAWINDOWS system32 Imrt dll C temp Druckmarkenregelung Druckmarkenre C ruckm gelung 1 AOurg C temp Druck
54. 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description 4 Function description 4 1 Overview The Print Standard Add On TRC1000 Application consists of the following parts LTRC1000 library LRegCtrl library pTRC1000 program unit S_ Var_Gl global variable source S_H_Var_Gl global variable source Content of the libraries Table 4 1 Content of the LTRC1000 library Unit Conient Description aVersion Library changelog xTypeDef Global type definitions constants enumerators structures fTRC1000 Cyclic and acyclic communication between SIMOTION and TRC FBTRC1000Backgr acyclic communication FBTRC1000Cyclic cyclic communication Functions used in both FB s fTRC1000HMI Data copy sTRCData gt HMI_Command Interface sStdclO structure gt HMI FBHMIDataTransfer Functions used in FBHMIDataTransfer fTRC1000TcpIpHMI TCP IP communication between SIMOTION and HMI PrintmarkControl FBTRC1000TcplpHMI Functions used in FBTRC1000TcpIpHMI Table 4 2 Content of the LRegCtrl library aVersion Library change log cProtected protected constants cPublic public onstants dPublic global type definitions and variables fCommunication UDP Communication function blocks used in TRC5000 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 37 Copyright Siemens AG 2015 All rights reserved 4 Function descrip
55. AAA the mark stream can be switched to reverse with this button AAAA e Mark stream preview 9 Shows the actual view of the created mark stream Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application To create a new mark stream or insert a new mark to the stream the following steps need to be done Press the new button and forgive a name Enter the machine format length top right Select the mark number that should be added to the stream AGS 1 2 s4 Selection of mark type block wedge Entering of mark geometry values length width Entering the distance to previous mark Press the add button to shift the mark to the stream Save the finished mark stream to use it in the job screen Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 95 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Job configuration screen In the screen job configuration the printing job specific settings will be done Figure 5 11 Job configuration screen mi m KOL 3 E a 5 6 ctrl master ctrl mark Master active mark mark gt Side mode manual Error detect head1 pos neg F B Control Teaching Reg mackle signal amplification Use colour head2 uploaded data
56. Act Velocity Deviation SR Reference mark A A position ao _ Correction Reference mark Offset LR width a o L41 Correction Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application 5 1 NOTE Use of the example application The example application contains the configuration and parameterization for one TRC device The following part shows how to use the application explaining the HMI masks and the velocity setpoint cascade inside the program Overview The following figure 5 1 shows an overview about the example program for TRC1000 control and the setpoint cascade of the printing cylinder simulating axis The data for job parameterization will be copied from the HMI SsHMI_Command in the background task to the TRC data structure sTRCData of the respective print unit number The data values will be used by the TRC1000 function blocks The velocity correction output of the register controller is converted and transferred to the additional object of the printing cylinder axis and added to the main setpoint from the local master axis The array start index in the TRC data structures and function block instances should be 1 Generally the index number should correspondent to the respective printing unit If print unit number one is not equipped with a measuring device the arrays can start with index number 2 3
57. DS PN and shift it with drag amp drop to the PROFINET IO System 7 RC1000 no i n TIL T EA sensors ral Define the TRC name and Genet the IP address Short description IDSpns PROFINET IRT 10 Device i OrdPNg fimware 4706704 1 0 Family DM Sensa Device name E D usole GSDML V2 2 WIEDEG DSPN DMSensor 20110217 xml Change Release Number Node in PROFINET 10 System i Device number i z PROFINETA0 System 100 192 168 013 Ethemet AA Comme Assign IP address via 10 controller Comment a ig Profle Standard E PROFIBUS DP 4S PROFIBUS PA E PROFINET I0 E Additional Field Devices B Sensors E DM Sensor qm IDS PN 16 09 2010 9 IDS PN T300 id IDS PN T301 5 E Network Components SHE Preconfigured Stations i 1 1DSpne Slot J M Order number address eE Sensors Ed Switching devices SIMATIC 300 AA E o DS 4706708 sy Av AIA Ard m f SIMOTION Drive based T Select telegram for projected sensor unit Select the telegram in the hardware catalogue and shift it to Slot 1 of the sensor device Two telegrams are available 300 contains all available cyclic data of the sensor device 24 Bytes input and output data 301 contains only 20 Bytes input and 24 Bytes output data Telegram 301 can be used if the external encoder isn t used Print Standard Add On
58. Einf gen Zielsystem Ansicht Extras Fenster Hilfe Deia B S oe dada Einstellungen CtrtAkt E Bauauppe spezifizieren Netz konfigurieren Symboltabelle CtrlsAlteT ay stemrenlet melden Katalogprofile bearbeiten Katalog aktualisieren H w Updates installieren GSD Dateien installieren Suche in Service amp Support GSD Date fur Device ersteller K 0 SIMOTION D435 2 PROFIBUS Integrated DP Mastersystem 1 To integrate the TRC1000 into the hardware configuration the GSD File of the TRC1000 has to be installed in the engineering tool SIMOTION Scout Go to Options install GSD file Browse to the GSD file and press install Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 19 Copyright Siemens AG 2015 All rights reserved 3 Integration Description 3 _ III Insert Profinet Vo O8828 6 SH amp e HO Ew Controller If there already exists an I O Controller step 2 can be skipped Select the suitable I O Controller from the hardware catalogue on the right side and assign it to a free slot in the SIMOTION hardware rack Rewer oAneumaretio ti 4 HW Config D435_Master Configuration
59. FFF81C7 Error can be repeated in the next program cycle Another parameter job has already been issued to the DP station based on the user program from a system internal component 16 FFFF81CF Error can be repeated in the next program cycle Another parameter job call is currently active under this commandld 16 FFFF8290 Internal error job aborted Specified logical base address invalid No assignment is available in SDBs or there is no base address 16 FFFF8291 Internal error job aborted The _readDriveMultiParameter function cannot reach the specified logical base address 16 FFFF82A2 Error during data set transfer job aborted Error in Layer2 Station failure Timeout 16 FFFF82A3 Error during data set transfer job aborted Error in user interface user Protocol error Station failure Timeout 16 FFFF82B0 Error during data set transfer job aborted Parameter jobs are not supported by the addressed module 16 FFFF82B2 Error during data set transfer job aborted Module reports access to an invalid slot subslot Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 115 Copyright Siemens AG 2015 All rights reserved 6 Alarms and error messages Paral Description 16 FFFF82B5 Error during data set transfer can be repeated in the next program cycle The system function cannot be executed due to an internal operating s
60. FIBUS Integrated DP Mastersystem 1 go to PROFINET IO Domain Wee Management PNME NET Profinet TRC1000 PROFINET IO System 100 Copy Ctrl C PQ e rai 10 System IP addresses PROFINET I0 Domain Management PROFINET I0 Topolagy Specify Module Delete Del Print Standard Add On TRC1000 22 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 3 Integration Description 13 Define the synchronization S re Domain MRP Domsin role for every PN device r Syne Domain Sync domain synedomain defaul z N Edi eo Kil ee SIMOTION Sync master To re f co0 Z Details IDS PN Sync slave IRT high performance m Nodes Station 10 syster D435 Master PROFINETIO Spaen 100 192 168 0 0724 Select the send clock time of the I O controller to the I O devices The TRC1000 sensor device Saon evnentane Syctrersaion oe RT Cass AT Opamn T supports the following send 1D435_Master PNIOSystem Syne master RT IRT high performance clock times D435_Master 1 DSpns Syne slave IRT high performance 1 000 ms 1 500 ms 2 000 ms 2 500 ms 3 000 ms 3 500 ms 4 000 ms OK Cancel Help This setting has to match with the DP slave properties of the SINAMICS _Integrated step 14 14 DP slave properties q a PROFIBUS Integrated DP Mastersystem 1 il inte re aa Double
61. ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description r32DeviationValueMax_P46 REAL TRC teaching travel measurement max web voltage deviation i16SignofLifeTolerence_P925 INT Number of tolerable sign of life interruptions End sSensor_Set_Parameter sSensor_Change_Parameter sSensor1 TriggerValue sTriggerValue Data structure sensor 1 trigger values r32ThresholdLevel_RefMark REAL Threshold level trigger level reference mark sensor 1 r32ThresholdLevel_RegMark REAL Threshold level trigger level printing mark sensor 1 r32Offset REAL Offset reference mark sensor 1 sSensor2TriggerValue sTriggerValue Data structure sensor 2 trigger values r382ThresholdLevel_RefMark REAL Threshold level trigger level reference mark sensor 2 r32ThresholdLevel_RegMark REAL Threshold level trigger level printing mark sensor 2 r32Offset REAL Offset reference mark sensor 2 r32CommandDistance_WebWeb REAL mm Set distance print marks web web web web 2 r32GatePosition REAL Gate position End sSensor_Change_Parameter r32Sensor1_POS_ Offset REAL mm Web length between printing unit and sensor head r32Sensor2_POS_ Offset REAL mm Web length between printing unit and sensor head Sensor_to_Simotion sActualSensorConfig sSensorCo
62. IMOTION StartUp task It contains the parameter values and type descriptions of the TRC1000 and will be needed for the acyclic data transfer sTRCData The structure sTRCData contains all the data values of a single TRC To provide a clear and useable structure the main structure is divided into the following parts e sStdclO TRC interface e sData_cyclic cyclic communication data e sData_acyclic acyclic communication data e sHMIControlData analog digital curve gate curve gate start end positions sTRCData sStdclO IN Table 4 9 sTRCData sStdclO IN TRC Input data Name Type Description u16PrintUnitNr UINT Number of assigned printing unit boSensorActive BOOL Print unit TRC active boUseCommandPosition BOOL TRUE The axis command position will be used as reference position FALSE The axis actual position will be used as reference position r32SensorDelayCompTime REAL s Dead time compensation boReadSensor1 DOAO BOOL Read analog and digital oscilloscope data sensor 1 boReadSensor2DOAO BOOL Read analog and digital oscilloscope data sensor 2 42 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description boActivateLifesignMonitoring BOOL Activation of life sign monitoring
63. OOL Change gate position to r32GatePosition r32GatePosition REAL gate position set value boCenterGate BOOL Start center gate function boSensorReset BOOL Start sensor reset eResetMode eSensorRes Sensor_reset reboot TRC device etENUM Factory_reste reset factory settings boErrorReset BOOL Fault acknowledge sTRCCalibration sTRCCalibra Data structure TRC calibration tionInData boStartTRCCalibration BOOL Start sensor calibration boNextStep BOOL Go to next calibration step i16TRCNumber INT Select sensor number to calibrate Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 43 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description i16TRCHead INT Select head1 head2 to calibrate sFiberOpticLength sFiberOpticL Data structure fiber optic length engthInData i16TRCNumber INT Select sensor number to change fiber optic length i16SetLengthHead1 INT Select fiber optic length head1 25 2 5 m 50 0 0 m i16SetLengthHead2 INT Select fiber optic length head2 25 2 5 m 50 0 0 m boSetLength BOOL Set selected length boReadLength BOOL Read actual fiber optic length boRegCtrlEnableLR BOOL Activate register controller length register boFBRegCtrlResetLR BOOL Fault acknowledge FB register controller length register boRegCtrlSpdPreCtrlLR BOOL Enable velocity precontrol leng
64. OR HMI C d t b32GlobalE 15 299 OR HMT_Conmand out b32Gl obalBrror 16 Copy the code and adapt 300 d b32Global yd 301 E E A ae the indices 302 OR HMI_Command out b32GlobalError 19 303 OR HMI_ Command out b32GlobalError 20 304 Print Standard Add On TRC1000 SIOS ID 59753224 2015 08 10 31 Copyright Siemens AG 2015 All rights reserved 3 Integration pTRC1000Cyclic Table 3 6 Adaptions in the IPO program ifdef LPrintv300 Alt asAxisSTDecIOInternal 2 fasAxis8TDcIOInternal 3 gsRA_PC_O2AxisSTDcIO gsRA_PC_O3AxisSTDcIO asAxisDataInternal 2 asAxisDataInternal 3 gsRA_PC_O2AxisData gsRA_PC_O3AxisData asAxisTOConfigDataInternal 2 asAxisTOConfigDataInternal 3 gsRA_PC_O2AxisTOConfigData gsRA_PC_O3AxisTOConfigData send format to Print Standard sTDe gsRA_PC_O2AxisSTDcIO IN r64ActualCylinderFormatLength gsRA_PC_O3AxisSTDcIO IN r 4ActualCcylinderFormatLength gasTRCData 2 gasTRCData 2 add further TRCs here endif Adaption Description a detest ae ER FBTRC1000Cyclic PBTRCLOOOCyclic J Janna nnn nnn nn nnn 22 22222 2222 2222 2 IF TRUE THEN r gaFBTRC1000Cyclic 2 Axis RA PC 02 In this section the function CyclicDataToSimotion TRCZ_to_simotion_24bytes i Bice a wagscpece nal block FBTRC1000Cyclic cyclicDataToSensor gt simotion_to_TRC2_24bytes called ve add further TRCs here Copy t
65. OS ID 59753224 117 Copyright Siemens AG 2015 All rights reserved 6 Alarms and error messages Table 6 5 shows errors of the system function block _readVariableRecord HMI Application ErrorlD The function FCGetReadDOError of the LTRC1000 library generates the decimal errorlD dependent on the hexadecimal errorlD of the system function block Table 6 5 System function block _readVariableRecord errors ErrorlD Description 2350 16 FFFF8090 Specified logical base address invalid 2351 16 FFFF8091 Specified logical base address cannot be reached 2352 16 FFFF809B The target memory provided is not large enough 2353 16 FFFF809C Internal temporary collision of DPV1 jobs 2354 16 FFFF809D An slave device interface cannot read any data sets 2355 16 FFFF809E Error job aborted Attempt to abort a non active function 2356 16 FFFF809F Error job aborted Function not executable 2357 16 FFFF80A0 Negative acknowledgement when reading from the module 2358 16 FFFF80A2 Error during data set transfer job aborted Protocol error in Layer2 Module not available 2360 16 FFFF80A8 Error because of version conflict 2361 16 FFFF80A9 Function not supported by the module 2362 16 FFFF80B0 Data record unknown to module 2363 16 FFFF80B1 Incorrect length specified in dataLength parameter 2364 16 FFFF80B2 Module reports access to an invalid slot subslot
66. Print Standard Add On TRC1000 SIMOTION amp SINAMICS Application description August 2015 Applikationen amp Tools Answers for industry S i E Mi E N S Copyright Siemens AG 2015 All rights reserved Siemens Industry Online Support This article is taken from the Siemens Industry Online Support The following link takes you directly to the download page of this document http support industry siemens com cs de de view 59753224 Caution The functions and solutions described in this article confine themselves to the realization of the automation task predominantly Please take into account furthermore that corresponding protective measures have to be taken up in the context of Industrial Security when connecting your equipment to other parts of the plant the enterprise network or the Internet Further information can be found under the Item ID 50203404 http support industry siemens com cs de de view 50203404 You can also actively use our Technical Forum from the Siemens Industry Online Support regarding this subject Add your questions suggestions and problems and discuss them together in our strong forum community http www siemens com forum applications Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved SIEMENS SIMOTION Print Standard Add On TRC1000 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Applica
67. Reserved instruction 2016 Ox000B 11 Coprocessor unusable 2017 Ox000C 12 Arithmetic overflow 2018 0x000D 13 Trap e g division by 0 2019 0x0103 259 R W parameter command unknown 2020 0x0104 260 R W parameter command buffer overflow 2021 0x0105 261 R W parameter command system error 2022 0x0106 262 I O data loss of Controller life sign 2023 0x0107 263 I O data timeout 2024 0x0108 264 I O data read error netX 2025 0x0109 265 I O data write error netX 2026 0x0200 512 AGS speed limit or standstill 2027 0x0201 513 AGS block mark not detected 2028 0x0202 514 Sensor head 1 Sensor Automatic error sensor teaching Check P45 and P46 unequal 0 2029 0x0203 515 Sensor head 2 Sensor Automatic error sensor teaching Check P45 and P46 unequal 0 selected printing mark within the gate 2030 0x0300 768 Sensor head 1 input voltage OV 2031 0x0301 769 Sensor head 2 input voltage OV 2032 0x0302 770 Sensor head 1 calibration threshold value exceeded 2033 0x0303 771 Sensor head 2 calibration threshold value exceeded Print Standard Add On TRC1000 V3 3 0 2015 08 10 For the conversion from the sensor internal error code to the user ErrorlD the function FCGetP947Error is used SIOS ID 59753224 119 Copyright Siemens AG 2015 All rights reserved 6 Alarms and error messages 6 3 Register FB error messages sStdclO out variables e boRegisterFBErrorLR e boRegisterFBErrorSR
68. Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description 3 use calibration gauge input white again 4 calibration successfully 5 error sFiberOpticLength sFiberOpticL Data structure fiber optic length engthOutDat a i16LengthHead1 INT Actual fiber optic length sensor 1 25 2 5m 50 5 0m i16LengthHead2 INT Actual fiber optic length sensor 2 25 2 5m 50 5 0m b8FiberOpticLengthStatus BYTE Status set fiber optic length b8ChangeGatePos BYTE Status gate position change b8ChangeGateWidth BYTE Status gate width change b8CentreGate BYTE Status gate center b8AGSStatus BYTE Status AGS auto gate setting b8MarkfieldUpdateActive BYTE Status markfield update function to change TRC parameter b8SetTriggerSensor1 BYTE Status set new trigger values sensor 1 b8SetTriggerSensor2 BYTE Status set new trigger values sensor 2 sSensorTriggerValues sSensorTrig Data structure TRC trigger values gerValuesAc tType r32ActSensor1 Offset_Ref REAL Offset reference mark sensor 1 r32ActSensor1 Offset2_Reg REAL Offset printing mark sensor 1 r32ActSensor1 ThresholdLevel_Ref REAL Threshold level trigger level reference mark sensor 1 r32ActSensor1ThresholdLevel2_Reg REAL Threshold level trigger level printing mark sensor 1 r32ActSe
69. T DRD decoupling error number aboShiftError BOOL DRD shift error au16ShiftErrNo UINT DRD shift error number sStatistic sLRegCtrlStati_ Substructure for register error statistic sticOut ar32FBRegCtrlOutputMmLR ARRAY OF mm register controller output length register REAL ar32FBRegCtrlOutputMmSR ARRAY OF mm register controller output side register REAL ar32FBDRDOutputMm ARRAY OF mm DRD output just speed accel depending REAL shift aboSetRegActive ARRAY OF Feedback to HMI Cylinder adjustment triggered by BOOL SetReg active aboSetRefActive ARRAY OF Feedback to HMI Cylinder adjustment triggered by BOOL SetRef active NOTE The array length of the sHMI_command variables depends on the constant NUMBER_OF_PUS xTypeDef The WinCC flexible application works with a basic length of 20 print units and should not be changed The number of active print units SIMOTION can be adapted by the constant NUMBER_OF_ACTIVE_PUS S_ Var_Gl to the machine range 68 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description 4 3 3 sTrcHmiOcxCom Send data structure for WinCC flexible PrintWarkControl Table 4 16 sTrcHmiOcxCom Name abopComCommunicate Type ARRAY OF BOOL Description communication SIMOTION lt gt PrintMarkControl active au16pComSendDataLength ARRAY OF UINT data length of send data
70. _LENGTH_AO INT Array length of analog scope for 799 HMI Do not change NUMBER_OF_PUS UINT Number of print units for HMI 20 application Do not change ERROR_HISTORY_LENGTH UINT Number of errors which can be 7 stored in the error history If limit is reached circular buffering Table 4 8 Constants S_Var_Gl Name Type Description Preset NUMBER_OF_ACTIVE_PUS UINT Number of register controlled 1 printing units NUMBER_OF_FIRST_TRC UINT Index of first register controlled 2 PU TRC Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 41 Copyright Siemens AG 2015 All rights reserved 4 Function description 4 3 4 3 1 Data structures The TRC1000 data can be divided in the following main structures e sTRCData e sTRCRetainDataSet e sHML Command e sTRCHmiOcxCom e sTRCConfig Every FB of the TRC application uses the sTRCData structure as In Output structure and is able to read and write to the values of the structure Additionally to the basic structure of the single TRC handling a HMI structure for the data transfer to the HMl screens is necessary The structure collects all global data from the TRC application and works as an array based interface Some of the TRCData are saved in a retain data structure additionally The sTRCConfig data are used for TRC configuration It will be preset by the function FCTRC1000DefValPresetting called in the S
71. ad Data set read TRC actual error information DataSetAODO1 sTypeDataSetAODO Data set read TRC actual scope data head 1 Request DataSetAODO2 sTypeDataSetAODO Data set read TRC actual scope data head 2 Request Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 69 Copyright Siemens AG 2015 All rights reserved 4 Function description 4 4 Function Blocks 4 4 1 FBTRC1000Backgr Functionality The function block FBTRC1000Backgr provides the basic data handling and TRC control The main functionalities are 1 Management of general TRC functions All functionalities of the TRC used in during operation will be controlled by this function block e g gate setting trigger and offset setting etc 2 Fault Handling Errors are separated into different error sources Sensor faults application faults FBController faults DRD Insetting faults The categorization and acknowledgement is handled in this function block 3 Conversion job settings to TRC structures The received data for the specific TRC jobs need to be converted to TRC data sets and every parameter needs to be assigned to a TRC parameter number The function block distributes the values to the respective data set and prepares the data for the acyclic TRC communication 4 Calibration handling To calibrate the fiber optics a specific routine in the TRC device needs to be started and controlled by the application 5 Scope
72. analog monitor number gt lt reference gt lt offset gt channel 1 or 2 two measuring pins on the measuring adapter PNU 2 100 reference value referenced to 10V offset DC offset with the corresponding unit of the value Example 5001 1 312 0 001 0 5003 Read out actual analog monitor settings Print Standard Add On TRC1000 2015 08 10 SIOS ID 59753224 127 V3 3 0 Copyright Siemens AG 2015 All rights reserved 10 Firmware update 10 Firmware update There are two possibilities to update the sensor firmware 1 Firmware update by the manufacturer Wiedeg 2 Do it your self way with the German manual IDS PN Firmware Update PIC32 mit ICD 3 NOTICE The second way do it your self is recommended for experienced persons only Furthermore there is hardware necessary which is obtainable by the manufacturer Wiedeg only Print Standard Add On TRC1000 128 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 11 Sensor reset 11 Sensor reset Two reset modes are available e softreset o Reboot of the device o All settings remain unchanged e factory reset o Reset factory settings E g sensor name fiber optic data set etc 11 1 1 Sensor reset via HMI 1 2 3 4 Go to the Config 1 screen Select the sensor TRC you want to reset Select the reset mode factory reset soft reset Press the sensor reset button NOTICE It
73. arameterCounter NUMBER_OF_FIRST_TRC TO NUMBER_OF FIRST wRC NuMBER_oF_ActIve program cycle the retain data HMI_Command_TRC1000 in aboSelectPUactive ul6SetParameterCounter TRUE A BND_POR can be defined here Premise eee iad in r32RegInchLRFactorSlow reat is the bit boRetainDatasetFille irr Command mnei000 48 enequnchameactoral sw 0 1 74 imm FALSE HMI_Conmand_TRC1000 in r32RegInchLRFactorFast rom x 1 eats Gumabd E s Pima In case this variable is TRUE HMI_Command_TRCLOOO in r32GateJerkFactorslow r 1 Jf imm the retain data are copied to dab paceman reared 10 the main data structure in this section of the start up program f Bits for control via HMI Control Screen Machine control HMI Fa j FARE screen IF TRUE THEN HMI_axis_l_stdcIOActivateTestIO TRUE If the Machine control HMI HMI axis_2_stdcIOActivateTestIO TRUE screens is used e g example HMI axis_3_stdcIOActivateTestIO TRUE project these bits need to be HMI_axis 4 stdcIOActivateTestIo TRUE set to TRUE END IF In customer machine project the machine is controlled by PLC normally In this case these bits need to be set to FALSE or commented out Print Standard Add On TRC1000 30 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 3 Integration pTRC1000Backgr Table 3 5 Adaptions in the background program Adaption IF TRUE THEN
74. ate for reference mark is available With the Cen Center button the active edge of the printing mark can be centered within the gate The gate will be moved Condition to use the center gate function is that the printing mark is valid within the gate The center gate functionality needs up to 4 printing cylinder revolutions With the gate width set button the gate width can be adjusted The yellow filed shows the actual gate width The white filed is for entering the new gate width Select Gate Position 7 With this functionality the gate position Control Mark gate can be changed just by 3 clicks After pressing the select gate pos button button becomes green the oscilloscope field gets sensitive for selecting a set position With the second click the desired set position can be selected by clicking on the desired spot in the oscilloscope field The third click on set gate sets the new gate position The set value can also be entered into the input filed in between the two buttons or using the x cursor Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 5 Use of the example application Copyright Siemens AG 2015 All rights reserved e AGS Automatic Gate Setting 8 Using a special printing mark code AGS block mark at the beginning of the mark stream the sensor will try to detect this AGS block mark and set the gate automatically With the AGS start button this fu
75. ation PrintMarkConitrol configuration screen In this configuration screen you can adapt the appearance of the oscilloscope field in the scope screen Attributes like zoom area color grid color grid width etc can be adapted On this screen only the configuration values for PU1 PU2 and PU20 is shown You can change the values inside these columns directly You can also adapt the values inside the column OCX default and transfer these values with the transfer button 2 to all print units 1 20 Figure 5 7 PrintMarkControl screen ReadCycle AxisColor AxisFontColor AxisFontSize AxisLineWidth ShowZoom RangeFactor ZoomColor ShowMainGrid MainGridCount SubGridCor GridColor Gridsize ShowCursoi ShowColorBar white value seni white value sen2 Y range max Y range set Y range min HeightColorBar HeightColorBarAct GateMovingIndex StartZoom EndZoom SensorType i Format Size Table 5 2 Default settings OCX default OCX Sensor 1 OCX Sensor 2 OCX Sensor 20 0CX TCP IP Server IP and Port adress 1000 1000 1000 1000 i AO asasas M ABABAB ABABAB ABABAB DO A8A8A8 ASABAS A8A8AS A8A8AS AB 000008 000008 000008 000008 o 1 1 1 1 1 l 1 1 AD 60 60 60 60 Be 78454143 8454143 8454143 0 AO 1 i 1 1 DO TEE eeo 1 asasas M ASAS BASAS ABABAS ie nee 1
76. be able to understand and integrate the TRC1000 software parts very fast into an existent project 2 1 Print Standard and TRC1000 The function block FBTech of Print Standard offers a possibility to influence the axis basic motion setpoint channel by external or internal created additional values The figure 2 1 shows this concept basically A technology function block e g winder tension controller or register controller is calculating an additional velocity setpoint value The value will be switched to the Print Standard FBTech for calculation of the entire motion vector It will be directly connected to the axis additional object which is acting as interface to the axis setpoint channel as long as the SIMOTION additional object is integrated as interface between user application and SIMOTION axis TO Figure 2 1 FBTech principle Program Tech Task of Axis IPO IPO2 Tech FB Functionality FBs calculation FB_Winder Additional Tension Controller Object Register Controller Formuta Object INTERFACE w 2 TO Adder rd Torque Limiting Inhibit Motion TO Formula g Additive Torque e TO Axis o S Print Standard Add On TRC1000 v3 3 0 2015 08 10 SIOS ID 59753224 15 Copyright Siemens AG 2015 All rights reserved 2 Application structure 2 2 TRC1000 software parts The TRC1000 application works as a flexible module which could be integrated very ea
77. block NOTE Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 For a more detailed function block description see chapter 4 4 39 Copyright Siemens AG 2015 All rights reserved 4 Function description Figure 4 1 shows a graphical overview about the interaction between the library FB s and structures the global variable sources the program parts and the execution system Figure 4 1 Graphical overview about application part interaction Library Global Variable Def Program Units Execution System LTRC1000 HMI Variables xTypeDet A S_H_Var_Gl PTRC1000Startup aa H runst Startup Ve Data presettings sTRCSetCurveOCX TRC Variables S_Var_Gl pTRC1000Backgr SHMI_command s 1 RCData FBHMIDataTransfer FBTRC1000Cyclic LRegCtrl FBRegCtrlController FBRegCtrlDRD optional FBRegCtrilnsetting optional SPrint FBTechLR SR FBTech LCom FBLComMachineCom 40 CALL CALL FBs FBTRC1000Backgr FBLTRC1000TcplpHmi Acyclic communication TRC mode managment RUNS gt Scope data transfer Error handling HMI data transfer Background Task i PTRC1000Cyclic Cyclic communication Register control RUNS gt IPO Task
78. cesecedesecensceteencers te cevacteecedecere cansestesdeececace 122 7 1 Fiber Optic lengths 62 25 a a a A O A 122 7 1 1 Data set change via HMI aassssssssssssssrnssrnrresssnnesnnnnesrnnnnsnnnneennnnennnnne 123 Talg Data set change via RS232 interface erreren 123 7 2 White adjUSt Ment ccceecceceeeeeceeeeeeeceeeeneeeeeeeneeeeeesneneeeeeneneeeeennes 124 7 2 1 Sensor adjustment via HMI cccceceeeeeeeeeeeeeeeeeeeeeceaeeesaeeeeeeeseaees 124 7 2 2 Sensor adjustment via RS232 interface ccecceesseeeeeeeeeeteeeeeees 125 Command interface RS232 cc cccesseeceeeseeeeeeesseeseenseeeeeeneeeseenseanseenenes 126 Analog monitor DIAG interface c cccessseceeeseseceeeseeeeeenseeeeeenseneeeenes 127 Firmware update ccccecceeceseseeeceseeeeeeeseeeeeeeseeneeeesenneeseseeneesnseeneeenseeneesnseeneees 128 Sens r resete iaaiaee iaa aaa aa aera aaaea aaaeaii iae 129 11 1 1 Sensor reset via HMI cece ceeeeeeeeeceeeee eens esses eeeeeeseeeeesaeeeeeeeeneeees 129 11 1 2 Sensor reset via RS232 interface 0 ecceceeeeeeeceeeeeeeeeeeeneeteeeeees 129 ADbDrevViatiOns iicciictccs Joe sec etek ce See heeled ses eee ck dee hee ade eed det cee eee 130 Related literatures iss ccccccicecccehccecevschccdecghcccctcectcedtesd cccecenteadecudccccusedsceanesssaccases 131 13 1 Bibliography sve ernea nar a i ia 131 13 2 Internet link specifications sseseeeesssirsserresrirrssrirnssrirnssrinnssrenns 131
79. click on the eget eg E SINAMICS_ Integrated and PEA Bata Exchange Time comp Tae 01000 check whether the master application cycle and the DP ee cycle matches with the send Sitios ee cece eee clock time of the I O GT Meet an FE ee controller step 13 Tine To fs fas pBase time Imel setpoint acceptance i Zt oJ Cancel Help 15 pa E RAR SIMOTION properties _SIMOTION a Se aS Servo tast I Servo_ast PO Jast verwenden F PNMO K150 10 0 Double click on the SIMOTION device In the tab isosychronous tasks the interface need to be operated synchronous to servo set checkbox Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 23 Copyright Siemens AG 2015 All rights reserved 3 Integration a onnen o 16 E a sama raose DGA Seron a E DM Sensor Sj SPN 1609200 E E Profrat TACI000 PROFINE TAO Sytem N0 15H TIO Nuarbe of accepted updste cycles wh mizing I dats Watchdog ime bra Nocona Mode Assign 10 device n wochronaue mode w p Appear cyce bse TTo mode ainoan J Thos Ti readin process vakanci bps E 4 vasba 8 paw Timebave TWTo yet gg Description Select IO cycle Mark the device double click on Port X1 PN IO and go to the tab IO Cycle Select Servo at Assign IO device in isochronous mode 17 Safe and compile th
80. ctual encoder value i82GateStatus_P236 DINT Gate state Se oer ree nes REAL Gate start position WebCylinder r32GateStopPosRegMarkWebWeb REAL Gate end position printing mark WebWeb P238 WebWeb2 r32GateStartPosRegMarkWebWeb REAL Gate start position printing mark WebWeb P239 WebWeb2 r32GateStopPosRefMarkWebWeb_ REAL Gate end position reference mark WebWeb P240 WebWeb2 r32GateStartPosRefMarkWebWeb_ REAL Gate start position reference mark WebWeb P241 WebWeb2 i16MarkErrorCounter_p250 INT PM error counter WebWeb WebWeb2 u32AGSStatus_P252 UDINT AGS state r32AGSEndposition_P257 REAL AGS end position of the block mark r32DoubleMarkWidth_P261 REAL PM width overall r32Sensor1 Offset_P279 REAL Sensor 1 offset 1 offset reference mark r32Sensor2Offset_P283 REAL Sensor 2 offset 2 offset printing mark r32Signal1 ActualLevel_P408 REAL Signal level head 1 IDS r32Signal2ActualLevel_P409 REAL Signal level head 2 DS r32PositionIntervalANOC_P411 REAL Position interval analog oscilloscope End sActualSensorStatus sActualSensorError u16ErrorCounter_P944 UINT TRC internal error counter au16ErrorNumber_P947 ARRAY OF TRC error ID UINT asErrorTimeStamp_P948 ARRAY OF P122 Struct Error time stamp Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 57 Copyright Siemens AG 2015 All rights reserved 4 Function description sHMIControlData Table 4 13 sHMIControlData
81. d monochrome sensor Light source round spotlight ATEX Il 3 G Ex op is IIC Zone 2 for FOC Communication PROFINET IO with IRT Web speed 1000 m min Make Wiedeg Siemens trade good Backside printing Extension device Mark incl reference 2 Mark type Wedge double wedge block double block Automatic mark recognition Bar code 3 bars Mark arrangement Space requirement In line in print free area across with 2 FOC Register measurement Integrated Register resolution lt Sum Measurement method Mark to cylinder Mark to mark Mark to mark 2 sensor heads Register control strategy Two marks only selection by parameter Register recognition Automatic and manual Recognition of lacquer or reflecting material By deflecting sensor head restricted use Print Standard Add On TRC1000 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 1 Application description Features TRC1000 Recognition diagnostic 1 trace scanning head Trace resolution 0 5ms max 798 values End of press mode no 1 3 1 Interfaces Ethernet 0 1 RS232 Diag 24V Sensor 2 Fiber Profinet Hyper DS optic interface Terminal cable Encoder ei ee II Link 0 1 PN Diagnostic Fey BB 5 5 amp gi TX RX Data exchange
82. ding format changes can be pre control with this curve e Setting for web cylinder Insetting 2 Web cylinder Insetting is that the gear of PU is adjusted and register control is active where the TRC is connected to e Setting for key Insetting 3 Key Insetting is that the PU is not control where the TRC is connected to In stat the tension unit is adjusted e Setting for FBLInsetMarkValid 4 SafetyFactor Tolerance to find the mark Example SafetyFactor 1 5 Waiting for 1 5 printing formats until the message NoMarkThisCycle appears MarksPerModulo Number of marks per modulo cycle Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 89 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application 90 e Setting for FBLInsetCheckFineCorrection 5 e Configuration download upload 8 Button b x Description With these buttons a WinCC flexible recipe can be created and the configuration can be saved into it an With the download button the inputs in the white fields WinCC flexible internal variables will be copied to the SIMOTION variables yellow fields i Sul The upload button copies the SIMOTION variables to the internal WinCC flexible variables NOTE For detailed information see Print Standard Add On Insetting documentation Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyrigh
83. dth limit Alarm PM Position TRUE Gate Gate Cj Bit Gate Setting Active StatusWord2 FALSE GREEN At least three valid PM positions are detected after a gate setting TRUE Yellow Shift Gate Position Set Gate Position AGS acs Bit AGS Active StatusWord2 FALSE GREEN AGS block mark detected no AGS block mark detected after three print cylinder revolutions maximum minimum speed limit exceeded or stand still of the printing cylinder during AGS active TRUE Yellow AGS active Print Standard Add On TRC1000 104 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application e Error Acknowledge 13 Table 5 11 error acknowledge buttons Button Description Local error Error at this printing unit sensor device Press the button to get detailed information i Global error Error at any printing unit sensor device Press the button to get detailed information Ack Fault acknowledge e Register inching and controller buttons 14 Table 5 12 register controller buttons Button Description enable disable register controller These jerk buttons can have two different functionalities e Register controller inactive off Printing cylinder jerk e Register controller active on Register fine correction offset Two jerk steps are available e jerk slow
84. e hardware configuration Close the hardware configuration and change back to the SCOUT project 18 Jolajas a e e e e Pole ies e E lE E e a AC RT a TTS SaaS Define the necessary IO variables on the address list of the controller Depending on the selected telegram 300 24 Byte output data 24 Byte input data 301 24 Byte output data 20 Byte input data Make sure the start addresses matches with the settings of step 9 There is no process image necessary No multiple lO access per task cycle 19 Safe and compile the project Print Standard Add On TRC1000 24 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 3 Integration 20 Aa uw Config D435_Master Configuration TRC3000 oh Station Edit Insert PLC View Options Window Help 2 8 G Download joes Gu e Upload Downigad Medule ldentiticatior Upload Wodtleldenticatcn to Pla Faun Moddes Module Inromatiorni Operating Made Glear Reset lM 044 Set Time of Day DP Monitor Mody CtleL Mastersystem 2 P Mastersystem 1 Ci z u cA DPA Update Firnware Phi Save Device Name to Memon Cardi 4 Ethemet d Edit Ethernet Node PROFIBUS Verity Device Name Pot Port emice Date Gav Say Assign Device Name P
85. eControlAlg eLRegCtrlAlg Register controller algorithm boEnableIntActionLR BOOL Enable Disable integral part of register control modes with integral part boEnableIntActionSR BOOL Enable Disable integral part of register control modes with integral part sHMIPrintingUnit sHMIPrintingU Substructure for tension adaption curve and nitStruct speed level curve sStatistic sLRegCirlStati Substructure for register error statistic sticln ab8SetRegStarted ARRAY OF Function SetReg has been started from HMI BYTE ab8SetRefStarted ARRAY OF Function SetRef has been started from HMI BYTE eDRDMode eLRegCtrlDe Selection of the DRD mode couplingMod Print Standard Add On TRC1000 64 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description R e au8FilterDepth ARRAY OF Averaging over the parameterized number of USINT register error values Table 4 15 sHMI_Command OUT Name Type Description aboLifesignError ARRAY TRC sign of life error 0 20 OF BOOL aboApplicationError ARRAY Application error 0 20 OF BOOL au16ApplicationErrorlD ARRAY Application error ID 0 20 OF UINT ai32Parameter1 ARRAY Additional parameter 1 application error id sie OF system function function parameter result ai32Parameter2 ARRAY Additional parameter 2 application error
86. eSign error sStdclO out variable e boLifeSignError In the sensor control word and status word there are respectively 4 bits bit 12 15 to observe the communication between sensor and controller SIMOTION This is realized by a counter Sing Of Life Counter In case of communication time out the error bit boLifeSignError in the gasT RCdata sStdclO OUT structure gets TRUE In the error screen the life sign error box becomes red 6 6 Error history and fault buffer Sensor internal a fault buffer which contains up to 8 sensor messages is integrated If more than 8 messages occur without acknowledge the last message will be overwritten so that the first 7 messages are preserved An error message consists of fault number P947 and corresponding fault time P948 The fault message counter P944 displays the number of messages occurred and is increased with each error message After acknowledge the fault buffer will be erased the error counter remains on it s old value To reset the error counter a factory reset is necessary Additionally these sensor messages will be stored in a SIMOTION internal error history in the gasTRCdata sStdclO OUT structure which is constructed as a circular buffer This error history persists after fault acknowledge in the sensor The error history sErrorHistory consists of e errorlD au16ErrorNumber_P947 e time stamp the error occurred adtTimeStamp SIMOTION time stamp Print Standard
87. ed logical base address 16 FFFF82A2 Error during data set transfer job aborted Error in Layer2 Station failure Timeout Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 113 Copyright Siemens AG 2015 All rights reserved 6 Alarms and error messages Para1 Description 16 FFFF82A3 Error during data set transfer job aborted Error in user interface user Protocol error Station failure Timeout 16 FFFF82B0 Error during data set transfer job aborted Parameter jobs are not supported by the addressed module 16 FFFF82B2 Error during data set transfer job aborted Module reports access to an invalid slot subslot 16 FFFF82B5 Error during data set transfer can be repeated in the next program cycle The system function cannot be executed due to an internal operating state of the module 16 FFFF82B7 Error during data set transfer job aborted The job could not be dispatched due to a job error 16 FFFF82C1 Error during data set transfer command can be repeated immediately Data of the preceding write job on the module for the same data set has not yet been processed by the module 16 FFFF82C2 Error during data set transfer command can be repeated immediately The module is currently executing the maximum possible jobs for one CPU 16 FFFF82C3 Error during data set transfer command can be repeated
88. ed to the additional object of the printing cylinder axis by the function block FBTech The Print Standard documentation contains a detailed description of the FBTech NOTICE For every TRC device one separate call of the FBLRegCirlController is necessary Task The function block has to run in a cyclic task Recommended task IPO task 4 4 7 FBTech Functionality The functions block calculates the motion vector and transfers the resulting speed value to the additional object of the respective printing cylinder axis Further information about the setpoint coupling to an additional object is available in the Print Standard documentation NOTICE For every TRC device one separate call of the FBTech is necessary Task The function block has to run in a cyclic task Recommended task IPO task Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 75 Copyright Siemens AG 2015 All rights reserved 4 Function description 4 5 76 Sensor telegrams The TRC1000 sensor device supports two telegram types e Telegram 300 24 Byte output data 24 Byte input data ewi srw gt fore e Act Position Deviation LR ia a Velocity Deviation SR Reference mark ae ee position Correction Reference mark Offset LR width Correction Encoder position Offset SR e Telegram 301 24 Byte output data 20 Byte input data a fows sw 2 fow2 sw Act Position Deviation LR Iss
89. eee 5 MAIN COMES sears iara A ARE AERE Heseactdedetvaddieessssctpecetdcieaeadvets 5 LMMITANONS eara aeaaea e aad a a aan eas tedeaeeedioea aos 5 SCOPE OF SUPPIVi vesseddiareesadeset eaciestavese addins Asegasndeeee ee eaten Ade 5 1 Application description cceeeeeeseeeeeeeeeeeeeeeeeeeeesesenneeseseeneeseseeneeseseeeeeeeneenenes 8 1 1 Basic information and data ccceecccceeeesneeeeeenneeeeeenaeeeseeaeeeeeenaeeeeneaas 8 1 1 1 System requirements cceeceeeceeeeceeceeeeeeeaeeeeeeeeeeeeeseaeeeseaeeseaeeeseneeseas 8 1 1 2 Supported Panels HMI c ccceecceceeeeeeeeeeeeeeeeeeeeseaeeeeeaeseeaeeeeeeeeeaas 9 1 2 Integrated register control with SIMOTION Print Standard 9 1 3 TRCIO000 Hardware sive etivicdteceeteetaveeedheivetisl seeeneesaiveten dive EETA 10 1 3 1 INCOM ACES saz aeniea a et ti telnecsh dv ieee anaa baa Sea Ara aAA 12 1 4 Integration of TRC1000 into a machine Concept ceeeeeeeeees 13 2 Application StrUuCtuUre cceecccceseeeceeeeneeeeeeeeeeseeesneeseeeeneeseeesneeseeesneeseeesnnseeeenes 15 2 1 Print Standard and TRC1000 ccecceeeeceeseeeeeeeeeeeeeeseeeeeeaeeeeneeenaees 15 2 2 TRC1000 Software parts ccccceeeeeeeeeeeceneeeeeaeeeeeeeeeeeeesaeeeseeseneeess 16 2 3 WinCC flexible Part eeecceccceceeeeeeeeeeeeeeeceeeeeeaaeseeneeseeeesaeseeeeeeeeneess 16 2 4 Additionally applications used together with TRC1000 apola ss seo Fedees shyt sea dobaeay fe sheeted oteea
90. egister controller r32RegCtrl_l WebWebSR REAL Controller integral time mode WebWeb side 44 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description register controller r32RegCtrl_ _WebCylSR REAL Controller integral time mode WebCylinder side register controller r32RegCtrlVInchingSR REAL Inching step width mm r32RegCtrlSetValueSR REAL Register controller set value length register sRegCtrlPU structPrinting Data structure used for register controller FB Unit Structure of the library LRegCtrl Only the used structure variables are described here technology enumTechno Selection of print technolgy logy Generally it will distinguished between printing technologies where register movements influencing the material fix Nip e g gravure and printing technologies where register movements have less influence on the web e g flexo controlMode enumOperati WebCylinder ngMode WebWeb WebWeb2 printFormat REAL Format length v_setpoint REAL Axis command velocity boReg nchNegativeLR BOOL Register inching direction length register FALSE positive direction TRUE negative direction r32InchDistMMLR REAL Register inching value length register Interconnected with print standard stdclO interface boRegInchNegativeSR BOOL Register inching direction side register FALSE posi
91. er in axial direction i16SignOfLifeCounter r32AxisPosition r32AxisSpeed INT REAL REAL Life sign counter I O communication Printing cylinder position mm Printing cylinder speed mm s Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 49 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description r32AxisAcceleration REAL Printing cylinder acceleration mm s r32OffsetLengthRegister REAL Correction length register mm r32OffsetSideRegister REAL Correction side register mm Sensor_to_Simotion sStatusWord_1 boSwitchOnReady BOOL Initialized ready to switch on boOperateReady BOOL Ready for operation boFault BOOL Fault present boControlRequested BOOL Control requested no control requested boOscilDataReady BOOL New oscilloscope data available sStatusWord_2 boTriggerValue Teaching BOOL TRC teaching travel measurement finished boAlarmMarkPosition BOOL FALSE valid PM position and a valid number of active edges within the gate TRUE no valid PM detected within the gate for the last three printing cylinder revolutions PM out of gate no PM within the gate boAlarmMarkWidth BOOL FALSE valid PM width within the gate and Alarm PM Position is FALSE TRUE no valid PM width for three printing cylinder revolutions width exceeds maximum min
92. es the last 200 register deviation values 0 199 OF REAL b16RegisterErrorHistoryTransfer WORD Transfer History array to HMI asUploadParameter ARRAY Data structure for upload data gate width gate 0 20 OF position trigger values sUpload_struct with the upload button in the job screen these ate values can be transferred to the actual job setting which can be saved afterwards ar32RegCtrlErrorLR ARRAY Register error LR 0 20 OF REAL ar32RegCtrlErrorLRGraphic ARRAY Register error LR graphical view 0 20 OF REAL ar32RegCtrlErrorSR ARRAY Register error SR 0 20 OF REAL ar32RegCtrlErrorSRGraphic ARRAY Register error SR graphical view 0 20 OF REAL b8TRCGlobalJobDownload BYTE Status global job download 0 1 job download HMI to SIMOTION 3 job download SIMOTION to TRC 4 download successfully 5 error 6 job download necessary ab8ctrlactstatus_SR ee Register controller status side register faceplate Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 67 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description BYTE HMI ab8ctrlactstatus_LR ARRAY Register controller status length register faceplate 0 20 OF HMI BYTE sHMllnsettingCommandOut sHMllnsetting Insetting substructure CommandOut Type aboDecouplingError BOOL DRD decoupling error au16DecouplingErrNo UIN
93. f axis AxisFontColor A8A8A8 Hex Color of axis font AxisFontSize 8 pixel Font size AxisLineWidth 1 pixel Line width of axis ShowZoom 1 BOOL 1 show zoom area 0 hide zoom area RangeFactor 60 Proportion standard view zoom area 60 40 ZoomColor 80FFFF Hex Color of the zoom area ShowMainGrid 1 BOOL 1 show grid lines 0 hide grid lines MainGridCount 5 n Number of grid lines main SubGridCount 5 n Number of grid lines sub GridColor A8A8A8 Hex Color of grid lines GridSize 1 pixel Size of grid line ShowCursor 1 BOOL 1 show cursor 0 hide cursor ShowColorBar 1 BOOL 1 show color bar 0 hide color bar white value sen1 30 White balance color value head 1 white value sen2 30 White balance color value head 2 Y Range max 100 Y Zoom max value Y Range set 100 Y Zoom set value Y Range min 0 Y Zoom min value HeigthColorBar 16 pixel Height of the color bar when inactive HeigthColorBarAct 32 pixel Height of the color bar when active GateMovingIndex 0 n Actual gate index which has been moved StartZoom 1000 Actual start position of zoom area EndZoom 5000 Actual end position of zoom area SensorType 1 Actual sensor type FormatSize 618 0 mm Actual format Print Standard Add On TRC1000 86 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Table 5 4 event of analog and digital PrintMarkControl
94. gSynchronous Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 27 Copyright Siemens AG 2015 All rights reserved 3 Integration 3 2 1 28 Selection of the Print Standard library version used in the project The Print Standard version upgrade from V2 2 x x to V3 x x requires several changes inside libraries and program sources To simplify these adaption for the user with TRC1000 Add On version V3 2 2 some pre processor commands has been implemented to define the used Print Standard version and perform the necessary adaption in the program automatically In the following libraries and program sources the pre processor command has to be defined in the Interface section of the respective unit e LRegCtrl cPublic e S Var GI e pTRC1000 e plnsetting Figure 3 1 Selection of Print Standard library version 29 select here between Print Standard library 30 A 31 define LPrintV221 use Print Standard V2 2 1 0 AND earlier versions 32 define LPrintv300 use Print Standard V3 x x 33 define LPrintV221 Print Standard lt V2 2 1 0 define LPrintV300 Print Standard gt V3 0 0 The version which is being used in the project need to be commented in the one which is not used need to be commented out During compilation of the program code it s being decided between to options depending of the selected version The following screenshot is showing one example Figure 3 2
95. get a better overview about the job colors on the HMI screens This color matches with the background color of the register controller screen Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application e Job download 7 After the job definition has been completed the actual job can be transferred to the TRC device s with the download button All data will be transferred to SIMOTION first and following loaded to the TRC devices This can take some time Table 5 9 status colors Color Description New job download necessary Start the job download by pressing the download button flashing Download from panel to SIMOTION Download from SIMOTION to TRC device Download successfully An error has been occurred See the error screen for detailed information e Job upload 8 With the upload button the active job inside the TRC device can be uploaded to the panel e Refresh preview 9 Generally the preview should be refreshed automatically when using a touch screen if there was a change on the mark stream print unit mark color mark stream itself etc If the refresh is not working automatically the button preview refresh button can be used e Reset color 10 All print unit mark colors defined by the user will be reset to black Print Standard Add On TRC1000 V3 3
96. he code and adapt the indices the axis name and the I O variables 2 a ee ec cS cr Preperations for function TRC internal variable copy used in FOR loop OI se ee E D ES E EE ek aes ee he es aes block calls E IF TRUE THEN FBCharacteristic FBController FBDRD and axPrintCylinderInternal 2 RA_PC_02 FBTech axPrintCylinderInternal 3 RA_PC_03 fadd further s here a farther Tae The above mentioned At function blocks are called in a FOR loop for all print units Some of the FB input parameter need to be defined outside the FOR loop for each print unit 32 V3 3 0 2015 08 10 Print Standard Add On TRC1000 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 3 Integration 3 4 HMI integration NOTE Before starting the integration of the HMI all necessary variable sources in SIMOTION should be integrated Otherwise the reconnection of the variables will not match NOTICE Itis recommended to use the TRC HMI example project as basis If there is already a user HMI project existing copy these user HMI screens into the TRC example HMI project Because of scripts and recipes which are used inside the TRC HMI project it s easier to keep this project as basis In the first step the PrintMarkControl need to be installed How to do this is described in chapter 3 4 1 Chapter 3 4 2 describes how to copy the TRC HMI example project into the STEP7 user project In chapter
97. head 1 25 2 5m 50 5 0 m i16FiberOpticLengthHead2 INT Actual fiber optic length head 2 25 2 5m 50 5 0 m ab8AGSStatus ARRAY Status AGS ieee OF 0 AGS search inactive 4 AGS valid 5 AGS failure ab8SensorTeaching ARRAY Status sensor teaching Eee OF 0 sensor teaching inactive 4 sensor teaching done 5 sensor teaching failure ab8ChangeGatePos ARRAY Status change gate position Ee OF 1 gate position update started 4 gate position update done 5 gate position update failed ab8GateCenter ARRAY Status center gate 0 20 OF 1 center gate function active BYTE 4 center gate function done 5 gate center function failed ab8SetTriggerSensor1 ARRAY Set trigger values head 1 0 20 OF BYTE ab8SetTriggerSensor2 ARRAY Set trigger values head 2 0 20 OF BYTE ar32ActRegisterOffset_LR ARRAY Register offset length register register fine 0 20 OF correction REAL ar32ActRegisterOffset_SR ARRAY Register offset side register register fine correction 0 20 OF REAL aboRegControlActive_LR ARRAY Register controller LR active 0 20 OF BOOL aboRegControlActive_SR ARRAY Register controller SR active 0 20 OF BOOL aboAlarmMarkPosition ARRAY Bit Alarm PM Position StatusWord2 Soa FALSE valid PM position and a valid number of active edges within the gate TRUE no valid PM detected within the gate for the last three printing cylinder revolutions PM out of gate no PM within the gate
98. ht wedge mark r32Width_DoubleWedgeMark_Min REAL mm Width short side double wedge mark 0 is possible r32Width_DoubleWedgeMark_Max REAL mm Width song side double wedge mark r32MiddleWidth_DoubleWedgeMark REAL mm Width middle double wedge mark r32Width_DoubleWedgeMark REAL mm Width total double wedge mark r32EdgeLength_DoubleWedgemark REAL mm Edge length height double wedge mark r32Width_DoubleBlockMark_Min REAL mm Width total short side double block mark r32Width_DoubleBlockMark_Max REAL mm Width total long side double block mark r32WidthStraight_DoubleBlockmark REAL mm Width straight mark of double block mark r32WidthBevel_DoubleBlockMark REAL mm Width oblique mark of double block mark r32EdgeLength_DoubleBlockmark REAL mm Edge length height double block mark r32Distance_AGSMarktoRefMark REAL mm Distance AGS block mark to reference mark r32Tolerence_AGSMark REAL mm Tolernace range of AGS mark r32Width_AGSMark_1 REAL mm Width block mark first of three blocks r32Width_AGSMark_2 REAL mm Width block mark second of three blocks r32Width_AGSMark_3 REAL mm Width block mark third of three blocks r32Chasm_AGSMark_1 REAL mm Gap between first and second block mark block r32Chasm_AGSMark_2 REAL mm Gap between second and third block mark block r32TriggerVauleMIN_P45 REAL TRC teaching travel measurement min trigger voltage 52 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS
99. ible r82Width_WedgeMark_Max REAL mm Width long side wedge mark r32EdgeLength_WedgeMark REAL mm Edge length height wedge mark r32Width_DoubleWedgeMark_M REAL mm Width short side double wedge mark 0 in is possible r32Width_DoubleWedgeMark_M REAL mm Width song side double wedge mark ax Sec c REAL mm Width middle double wedge mark ar r32Width_DoubleWedgeMark REAL mm Width total double wedge mark ee ee REAL mm Edge length height double wedge mark mar r32Width_DoubleBlockMark_Mi REAL mm Width total short side double block n mark r32Width_DoubleBlockMark_Ma REAL mm Width total long side double block mark X e e ee REAL mm Width straight mark of double block mark ar r32WidthBevel_DoubleBlockMar REAL k mm Width oblique mark of double block mark Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description R ig a ara REAL mm Edge length height double block mark i r32Distance_AGSMarktoRefMar REAL mm Distance AGS block mark to reference k mark r32Tolerence_AGSMark REAL mm Tolernace range of AGS mark r32Width_AGSMark_1 REAL mm Width block mark first of three blocks r32Width_AGSMark_2 REAL mm Width block mark second of three blocks r32Width_AGSMark_3 REAL mm Width block mark third
100. ication 98 Button Description Web web Web web 2 second sensor DS is required Insetting web cylinder Insetting Key Sensor mode setting Sensor Automatic e Manual No automatic sensor trigger value calculation The trigger values have to be set by the user e Automatic Sensor trigger values will be calculated automatically via travel measurement The travel measurement is started after every gate centering Activate deactivate register error limiting The calculated register deviation LR is limited to the actual gate width to prevent bigger outliers If such an outlier occurs an internal counter P219 is incremented and the deviation is set to 0 This function is mainly used in the phase of development Default deactivated Activate deactivate mackle detection If the limit of permitted active edges either rising or falling edge dependent on the actual PM type is overrun the PM alarm is released and the deviation is set to 0 As soon as a valid number of active edges is detected again the PM alarm will reset This function is implemented mainly as operator support during the print setup operation Default deactivated Use uploaded data With this button the sensor configuration can be switched air an use the actual machine job aa use job default setting Color button With the color button the print unit mark color can be selected to
101. ight Siemens AG 2015 All rights reserved 6 Alarms and error messages 6 1 Application errors sStdclO out variables e boApplicationError e u16ApplicationErrorlD e i382Parameter1 Para1 function parameter result e i32Parameter2 Para2 parameter number Table 6 1 shows FBTRC1000Backgr internal errors HMI Application ErrorlD The ErrorlD corresponds to the FBTRC1000Backgr variable u16StepID Table 6 1 Application error messages ErrorlD Description 3020 Error during parameter update Para 1 function result Para 2 Parameter Number 3022 Error during read sensor config 3023 Error during read sensor status 3024 Error during sensor reset 3025 Error during change command distance WebWeb 3026 Error during change gate width 3027 Error during read sensor error 3030 Error during center gate 3031 Error during change gate position 3034 Error during set head 1 trigger value 3035 Error during set head 2 trigger value 3036 Error during sensor teaching trigger value teaching 3040 Error during TRC calibration 3041 Error during set fiber optic length data set 3042 Error during read fiber optic length data set Print Standard Add On TRC1000 112 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 6 Alarms and error messages Table 6 2 shows the errorlD of the system function _writedDriveMultiPara
102. iin adaption Hysteresis 0 00 0 00 Setpoint 6 0 00 0 00 0 00 0 00 apa Setpoint 7 0 00 ooo 0 00 0 00 config Tension adaption OFF OFF TO aE A ae Fe ae control Data Record Name No PU14 con fig i El ES v pre control OFF OFF Aine T 1 DRD acceleration depending shift mira a Ci l x Characteristic accel shift offset confi accel shift Coa g Ready m s2 mm pu1e data 2 0 00 0 00 0 00 0 00 Eos Ar start in Haul a pre control OFF OFF Puzo screen e Tension time constant adaption curve 1 Input values for speed depending adaption for weblength between two PUs Has influence on register controller on web cylinder mode and gravure printing Used for FBTRC1000CharacteristicLR Values between two grid points are interpolated and after the last extrapolated If tension adaption is of or an error in FBTRC1000CharacteristicLR the adaption factor is 1 0 e DRD mode selection 2 e Speed depending shift curve 3 Input values for speed depending shift curve of DRD function speed shift mode Values between two grid points are interpolated and after the last extrapolated e Acceleration depending shift curve 4 Input values for acceleration depending shift curve of DRD function accel shift mode Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 91 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application 92 Adaption factors for following units 5 Due to the fact
103. immediately Required resources are presently occupied In the _writeRecord function In the module 16 FFFF82C4 Error during data set transfer command can be repeated immediately Communication errors Parity error SW Ready not set Error in block length administration Checksum error on CPU side Checksum error on module side 16 FFFF82C5 Error during data set transfer can be repeated in the next program cycle Distributed I O not available 16 FFFF82C6 Error during data set transfer can be repeated in the next program cycle Data record transfer has been aborted due to priority class abort restart or background parameter result parameter specific error 16 FFFF8000 Parameter error job aborted Access to a non existent parameter 16 FFFF8001 Parameter error job aborted Change access to a parameter that cannot be modified 16 FFFF8002 Parameter error job aborted Change access with value outside value limits 16 FFFF8003 Parameter error job aborted Access to a non existent subindex 16 FFFF8004 Parameter error job aborted Access with subindex to non indexed parameter not an array parameter 16 FFFF8005 Parameter error job aborted Change access with value that does not match the parameter data type 16 FFFF8006 Parameter error job aborted Modification access with value other than 0 where this is not allowed 16 FFFF800B Parameter error job aborted Change access without parameter change righ
104. imum width limit Alarm PM Position TRUE boGateActive BOOL FALSE At least three valid PM positions are detected after a gate setting TRUE Shift Gate Position Set Gate Position boAGSActive BOOL FALSE AGS block mark detected no AGS block mark detected after three print cylinder revolutions maximum minimum speed limit exceeded or stand still of the printing cylinder during AGS active TRUE AGS active i16MarkCounter INT Printing mark counter i16SignOfLifeCounter INT Sign of life counter I O communication r32RegisterError_Length REAL Actual register error length register mm r32Registererror_Side REAL Actual register error side register mm r32ActualPosition_Refmark REAL Position reference mark mm r32ActualWidth_Refmark REAL Width reference mark mm i82EncoderPosition DINT Signal of the encoder input of the IDS see interface NOTE Generally the cyclic data to and from TRC are only user information All commands and necessary responses will be given from the application to the variables 50 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 4 Function description sData_acyclic Table 4 12 sTRCData sData_acyclic acyclic communication data Copyright Siemens AG 2015 All rights reserved Name Type Description Simotion_to_Sensor eSensor_P1_Command eCommandTy TRC P1 command for more information see
105. ing units will adjust themselves to the register adjustment before the effects transferred via the web are visible at the following printing units Print Standard Add On TRC1000 2015 08 10 SIOS ID 59753224 17 Copyright Siemens AG 2015 All rights reserved 2 Application structure With the use of the DRD function block a more stable register control system is achieved leading to a higher print quality The DRD functionality is provided in the library LRegCtrl which is already part of the TRC1000 example project NOTE For the integration of the DRD functionality and further information the DRD documentation Print Standard AddOn DRD pdf can be used Print Standard Add On TRC1000 18 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 3 Integration 3 Integration The following tables show how to integrate a TRC1000 device into a new or existing project Moreover the integration of all used software parts and the HMI 3 1 Integration of the TRC1000 hardware device Table 3 1 Integration of TRC1000 hardware device Description 1 Open the hardware E 5 Print_Standard_ 2210 configuration of the gt Insert SIMOTION device aa gt Insert single drive unit a ea device in the H E Open HW configuration projec 4 Cut Copy amp Paste Ea Delete 2 Gauw Konfig SIMOTION D Konfiguration Test Installing GSD File oh Station Bearbeiten
106. ion block has to run in a cyclic task Recommended task IPO task Print Standard Add On TRC1000 72 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description 4 4 3 FBHMIDataTransfer Functionality The function block FBHMIDataTransfer copies data between the two strucutres sHMI_Command and sTRCData For HMI projecting it is much easier and more performant to work with a structure which consists of array variables The variable strucutre SHMI_command is constructed like that In SIMOTION it s easier to handle with single variables Because of that a function block is necessary which converts the values to the respective print unit TRCData structure and other way round to the respective variable array element of the SHMI command structure NOTICE For every TRC device one separate FB call is necessary Input and Output Parameters Table 4 22 scheme of FRBHMIDataTransfer FBHMIDataTransfer UINT TRCNumber sTRCDataType TRCData sHMI_Command DataExchangeHMI Table 4 23 interface parameters FBHMIDataTransfer 1 0 Name Type Description IN TRCNumber UINT Number of printing unit TRC number IO TRCData sTRCDataType TRC data structure IO DataExchangeHMI sHMI_Command HMI data structure Task The function block has to run in a cyclic task Recommended task background task Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID
107. ion form print unit x to y input fields 1 length register 3 side register e Copy all 2 4 This button copies the class definition from PU1 to all other PU s 2 length register 4 side register e Copy all LR amp SR 5 This button copies the class definition from PU1 to all other PU s length and side register Print Standard Add On TRC1000 110 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 6 Alarms and error messages Alarms and error messages The application differs the following kinds of fault messages The error bits and errorlD s will be shown in the respective variables in the Application errors Sensor errors Register FB errors DRD errors Insetting errors LifeSign error gas TRCdatal sStdclO OUT structure Additionally errorlD and time stamp will be stored in an error history Actual errors will be shown on the HMI screen with number and text Pressing the respective error box a window appears which shows the error massage in clear text The error texts of the different errorlD s are defined in the WinCC flexible project By pressing the reset button all faults related to this print unit are being acknowledged Figure 6 1 Alarm screen HMI fault messages
108. ion_P14 REAL Gate position r32OffsetLengthregister_P15 REAL Correction offset length register r32OffsetSideregister_P16 REAL Correction offset side register Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 51 Copyright Siemens AG 2015 All rights reserved 4 Function description Name sSensor1 TriggerVaule Type sTriggerValue Description Data structure sensor 1 trigger values r382ThresholdLevel_RefMark REAL Threshold level trigger level reference mark sensor 1 r32ThresholdLevel_RegMark REAL Threshold level trigger level printing mark sensor 1 r32Offset REAL Offset reference mark sensor 1 r32SpeedCompensationValue REAL TRC dead time compensation not used sSensor2TriggerVaule sTriggerValue Data structure sensor 2 trigger values r32ThresholdLevel_ RefMark REAL Threshold level trigger level reference mark sensor 2 r32ThresholdLevel_RegMark REAL Threshold level trigger level printing mark sensor 2 r32Offset REAL Offset reference mark sensor 2 sMarkGeometry sMarkDefine Data structure mark geometry r32Width_Blockmark REAL mm Width block mark r32Width_WedgeMark_Min REAL mm Width short side wedge mark 0 is possible r32Width_WedgeMark_Max REAL mm Width long side wedge mark r32EdgeLength_WedgeMark REAL mm Edge length heig
109. job aborted Change access without parameter change rights 16 FFFF8015 Parameter error job aborted The length of the current response exceeds the maximum transferable length 16 FFFF8016 Parameter error job aborted Illegal or unsupported value for attribute number of elements parameter number or subindex or a combination of these 16 FFFF8017 Parameter error job aborted Illegal or unsupported parameter format 16 FFFF8019 Parameter error job aborted Access to a non existing axis or an invalid drive object 116 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 6 Alarms and error messages Table 6 4 shows errors of the system function block _writeVariableRecord HMI Application ErrorlD The function FCGetWriteDOError of the LTRC1000 library generates the decimal errorlD dependent on the hexadecimal errorlD of the system function block Table 6 4 System function block _writeVariableRecord errors ErrorlD Description 2300 16 FFFF8090 Specified logical base address invalid 2301 16 FFFF8091 Specified logical base address cannot be reached 2302 16 FFFF809C internal collision LDPV1 2303 16 FFFF809D An slave device interface cannot read any data sets 2304 16 FFFF809E Error job aborted Attempt to abort a non active function 2305 16 FFFF809F Error job
110. l rights reserved 5 Use of the example application Sensor calibration screen In this screen a sensor calibration can be performed Figure 5 5 Sensor calibration screen beet L NOTE Before starting the calibration the TRC number you want to calibrate hast to be selected For calibration of the IDS PN device select head 1 for calibration of the second head DS select head 2 To start the calibration press the start calibration button and follow the instructions Press the next button not until you have performed the displayed instruction Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 83 5 Use of the example application Copyright Siemens AG 2015 All rights reserved Configuration screen 2 The screen configuration 2 is used for entering the geometrical data of the web lengths of the machine The lengths between the units and the distances between the print unit nip and the sensor head need to be known by the register controller for calculation of the register correction values Figure 5 6 Configuration screen 2 web length web length X betw PU and y paper way his sensor in m between 2 printing units sensor x 1 sensor x 2 PUL 0 100 0 000 0 100 0 000 Pu2 0 100 0 100 Pu3 0 100 0 000 0 100 Pua 0 100
111. l selection 1 The panel selection is to decide if this panel is the main machine panel or one of the local panels at the print unit e TRC default settings 2 Some global TRC settings need to be the same on every unit These values will be entered here Table 5 1 Default settings Name Unit Default Description value Measureing cycle P3 ms 500 AO DO detection refresh cycle Gate width P12 mm 20 Gate width print mark detection Gate offset P13 mm 0 Gate shift offset H1 offset P19 V 1 0 Offset level head 1 IDS H1 trigger 1 P17 V 0 5 1 Threshold level head 1 IDS H1 trigger 2 P18 V 0 5 2 Threshold level head 1 IDS H2 offset P23 V 1 0 Offset level head 2 DS H2 trigger 1 P21 V 0 5 1 Threshold level head 2 DS H2 trigger 2 P22 V 0 5 2 Threshold level head 2 DS sens teach min P45 V 0 2 Sensor teaching minimum voltage sens teach max P46 V 0 2 Sensor teaching maximum variation Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 81 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application 82 Name Unit Default Description value voltage Life Sign tole P925 0 Number of tolerable life sign counter losses e Gate inching Printing cylinder inching Insetting gear ratio inching 3 Defines the inch factor for gate printing cyli
112. libration for each sensor together with respective fiber optic cable before use With sensor firmware V2 2 0 and Print Standard Add On TRC1000 version V3 3 0 it s possible to calibrate the sensor to mirroring background also Before starting the calibration the correct cabel length data set as well as the data set for white or mirroring background need to be selected To perform the sensor adjustment a special gauge is necessary The calibration itself consists of three steps e White adjustment e Black adjustment e White adjustment once more Sensor adjustment via HMI r 2 3 4 5 6 Go to the config data screen Go to the sensor calibration screen Select the sensor TRC you want to adjust Select the head you want to adjust Press the Start calibration button The TRC calibration state shows the actual state of the calibration Follow the instructions S xa ror wr aa Press the Next button not before the sensor head sticks in the sensor gauge Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 7 Sensor calibration 7 2 2 Sensor adjustment via RS232 interface NOTE To use the RS232 command interface see chapter 9 To adjust the sensor three commands per sensor head are necessary Table 7 1 sensor adjust commands Steps RS232 command IDS DS 1 White adjustment 6004 7004 2 Black adjustment 6005 7005
113. markenregelung Druckmarkenre WINDOWS msagent agentctl dil C Programme Gemeinsame Dateien Microsoft C AWINDOW S system32 danim ll C AWINDOWS system32 danim dll C AWINDOWS system32 FM20 DLL C AWINDOWS system32 FM20 DLL C AWINDOWS system32 FM20 DLL of Dialog ffnen mit einem Doppelklick Now analog and digital PrintWarkControl can be used 34 V3 3 0 Print Standard Add On TRC1000 SIOS ID 59753224 2015 08 10 Copyright Siemens AG 2015 All rights reserved 3 Integration 3 4 2 Table 3 8 Integration of HMI project as new HMI project Integration of the HMI project to a STEP7 project KJ SIMATIC Manager Print_St_TRC3000_M3 1 File Edit Inset PLC View Options Window Help i z ff PG PCI MPI 1 ie Ethemet IE2 EZ Globales Schiittfeld Se voTION PROFIBUS 92 PROFINET_IO a Globales Schritfeid C MP377TUcH 2 Ej HW Config IPC_All_Sensors Configuration TRC1000 2_30_201102031 loj xj fly Station Edit Insert PLC View Options Window Help l x o l Ss e i a ED By x 0 HMI 3 WinCC flexible RT 4 HMI IE 5 o HMI AR PROFIBUS DP HE PROFIBUS PA 82 PROFINET IO E SIMATIC 300 E SIMATIC 400 Ee SIMATIC HMI Station aa Controller CP Industrial Ethernet cP 1411 3 cP 1413 cp 1511 9 cP 1512 cP 1604 CP 1612 CP 1613 CP 1616 E CP 1616 onboard CP 1623 CP 1628
114. meter displayed in i32Parameter1 HMI Para 1 The function FCGetWriteDriveMPError of the LTRC1000 library reads out the errorlD of the system function in Para 1 and if available the parameter number which causes the error in Para 2 If Para 2 is 0 a function internal error occurred function result Table 6 2 function parameter result of system function _writeDriveMultiParameter Para1 Description function result function internal error 16 00007001 Must be repeated in the next program cycle Initial call initiation of writing of parameters okay only when command is issued asynchronously 16 00007002 Must be repeated in the next program cycle Intermediate call writing of parameters is still active only when command is issued asynchronously 16 00007003 Writing of parameters aborted 16 FFFF8110 Internal error job aborted The sum of the lengths specified by the user exceeds the maximum transferable length 16 FFFF8111 Internal error job aborted The length specified by the user does not match the length calculated from the data type and number of elements in the case of at least one parameter 16 FFFF8112 Internal error job aborted A valid format could not be found for at least one parameter 16 FFFF8190 Internal error job aborted Specified logical base address invalid No assignment is available in SDBs or there i
115. n diag screen Sensor_Set_Parameter ee Sensor set parameter structure nfig End sCommissioningDataToTRC Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 sTRCCalibration sTRCCalibrati_ Data structure TRC calibration onlinType b8StartTRCCalibration BYTE Start sensor calibration b8NextStep BYTE Go to next calibration step i16TRCNumber INT Select sensor number to calibrate i16TRCHead INT Select head1 head2 to calibrate sFiberOpticLength sFiberOpticLe Data structure fiber optic length ngthInType i16TRCNumber INT Select sensor number to change fiber optic length i16SetLengthHead1 INT Select fiber optic length head1 59 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description R 25 2 5m 50 0 0 m i16SetLengthHead2 INT Select fiber optic length head2 25 2 5m 50 0 0 m b8SetLength BYTE Set selected length b8ReadLength BYTE Read actual fiber optic length boTRCConfigDownload BOOL Start job download boTRCSettingsDownload BOOL falling edge TRC settings e g controller parameter inching factors web lengths will be copied from HMI to SIMOTION boDRDSettingsDownload BOOL falling edge DRD settings will be copied from HMI to SIMOTION bolnsettingSettingsDownload BOOL falling edge Insetting settings will be copied from HMI
116. n refresh cycle r32CylinderCircumference_P203 REAL Printing cylinder circumference r32SetValueWebWeb_P208 REAL Printing mark distance set point WebWeb WebWeb2 r82GateWidth_P222 REAL Gate width r32GateOffset_P295 REAL Gate shift offset r32GatePosition_P215 REAL Gate position r32OffsetLengthregister_P276 REAL Correction offset length register r32OffsetSideregister_P234 REAL Correction offset side register sSensor1 TriggerVaule sTriggerValue Data structure sensor 1 trigger values r382ThresholdLevel_RefMark REAL Threshold level trigger level reference mark sensor 1 r32ThresholdLevel_RegMark REAL Threshold level trigger level printing mark sensor 1 r32Offset REAL Offset reference mark sensor 1 r32SpeedCompensation_P287 REAL TRC dead time compensation not used sSensor2TriggerVaule sTriggerValue Data structure sensor 2 trigger values r382ThresholdLevel_RefMark REAL Threshold level trigger level reference mark sensor 2 r32ThresholdLevel_RegMark REAL Threshold level trigger level printing mark sensor 2 r32Offset REAL Offset reference mark sensor 2 sMarkGeometry sActualMarkD Data structure mark geometry efine r82Width_Blockmark_P800 REAL Width block mark r82Width_Min_WedgeMark_P801 REAL Width short side wedge mark 0 is possible r82Width_Max_WedgeMark_P802 REAL Width long side wedge mark r32EdgeLength_WedgeMark_P803__
117. nctionality can be started If the ABS mark was found the AGS start button becomes green for a short time If no mark can be found the AGS start button becomes red and a sensor error appears in the error screen e Set Ref 9 NOTE This function is mainly applicable using the Print Standard Add On TRC1000 The reason is the gate setting procedure is started with print mark gate After setting up the print mark gate the reference gate can be setup with Set Ref This functionality can be used if the reference gate is at the right position but the reference mark is not inside the gate Click on the reference gate only in the zoom area and shift it to the reference mark The value below the button shows the distance the cylinder has to move to bring the mark into the gate The adjustment can be started by pressing the button Set Ref The cylinder will move by the shortest way to bring the mark into the gate e Set Reg 10 NOTE This function is mainly applicable using the Print Standard Add On TRC3000 The reason is the gate setting procedure is started with reference gate After setting up the reference gate the print mark gate can be setup with Set Reg This functionality can be used if the reference gate and reference mark is at the right position mark inside the gate the control gate is in the defined distanced to the reference gate but the control mark is not inside the control gate Click on the con
118. nder inching in mm and the factor for Insetting gear ratio inching n of the respective inch buttons slow and fast e Resolution factor reg ctrl view 4 Resolution of the graphic register error e Register controller settings 5 Settings for register controller gain factor and reset time for measuring modes web web and web cylinder e Color dependent trigger values 6 In the color table different trigger values can be assigned to different colors The color table should be defined during the first commissioning Then the color table can be used directly in the job definition The values are saved in the HMI panel NOTE All values entered here are saved in the sT RCRetainDataSet structure e Fiber optic length data set selection 7 Read actual and write new fiber optic length data set dependent of the selected TRC number NOTE See chapter 7 1 Fiber optic length e Configuration download upload 8 Button Description Hy x With these buttons a WinCC flexible recipe can be created and the configuration can be saved into it Bw With the download button the inputs in the white fields WinCC j flexible internal variables will be copied to the SIMOTION variables yellow fields m0 The upload button copies the SIMOTION variables to the internal WinCC flexible variables Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 Al
119. nfig_P200 sP2Config Data structure sensor config P2 boMeasuringEdge BOOL Measuring edge selection FALSE rising front edge TRUE falling back edge boSensorChoice BOOL sensor selection FALSE head 1 front side TRUE head 2 back side eMarkConfig eMarkType Block mark Wedge mark Double wedge mark boAutomatic BOOL Sensor automatic mode FALSE manual trigger and offset values need to be set manually TRUE automatic sensor teaching is used once a mark is inside the gate boLimitRegError BOOL Limited register error Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 53 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description FALSE inactive TRUE active register deviation is limited to the actual gate width boMackleDetection BOOL Mackle detection FALSE inactive TRUE active alarm if limit of permitted active edges in the gate is overrun eControlMode eSensorMode WebCylinder WebWeb WebWeb2 boSensor1 Amplification BOOL TRUE head 1 signal gain factor 2 active boSensor2Amplification BOOL TRUE head 2 signal gain factor 2 active boDOAOWindowReference BOOL AO DO reference value FALSE Oscilloscope refers absolute to axis position 0 360 TRUE Oscilloscope refers to gate middle position P2014 i16SensorCycleTime_P406 INT AO DO detectio
120. ng on the offset and trigger threshold values the analog signal is sampled and converted into a digital signal which is necessary for the printing mark detection Offset The offset is the basic level of the material background color Set the offset value to that value the background level has background color You can read out this value of the analog oscilloscope scale Figure 5 11 offset 2 0 approximately Only the reference mark offset can be set by the user The printing mark offset is set automatically NOTICE The easiest way to set the offset and trigger level is to bring one of the print marks of the analog oscilloscope inside the gate set gate position and start the sensor teaching functionality If the sensor teaching doesn t work try again with another print mark Alternatively the offset and trigger level can be set manually see below Trigger threshold With the trigger level the printing marks which will be converted into the digital curve is determined If the analog signal of a printing mark is higher than the trigger level based on the offset level the printing mark will be shown in the digital curve With the 2 Sensor button the user has the possibility to adjust the trigger value setting for sensor 2 head 2 e Digital oscilloscope 4 Based on the sensor analog signal and the sensor trigger value setting 2 the digital signal curve will be generated NOTE If the register
121. nsor2Offset_Ref REAL Offset reference mark sensor 2 r32ActSensor2Offset2_Reg REAL Offset printing mark sensor 2 r32ActSensor2ThresholdLevel_Ref REAL Threshold level trigger level reference mark sensor 2 r32ActSensor2ThresholdLevel2_Reg REAL Threshold level trigger level printing mark sensor 2 b8TRCTeaching BYTE Status trigger value teaching travel measurement r32RegCtrlRegErrorLR REAL Actual register error length register r32RegCtrlRegErrorSR REAL Actual register error side register boRegCtrlAlarmMarkPos BOOL Bit Alarm PM Position StatusWord2 FALSE GREEN valid PM position and a valid number of active edges within the gate TRUE RED no valid PM detected within the gate for the last three printing cylinder Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 47 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description revolutions PM out of gate no PM within the gate boRegCtrlAlarmMarkWidth BOOL Bit Alarm PM Width StatusWord2 FALSE GREEN valid PM width within the gate and Alarm PM Position is FALSE TRUE RED no valid PM width for three printing cylinder revolutions width exceeds maximum minimum width limit Alarm PM Position TRUE boRegCtrlActiveLR BOOL Register controller active length register boRegCtrlActiveSR BOOL Register controller active side register r32lpoCycleTime REAL
122. nt Standard Add On TRC1000 38 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description sTrcHmiOcxCom Name Type Description gbopComEnable BOOL enable bit FBCom gasTrcHmiOcxCom ARRAY OF transfer data structure to WinCC flexible PrintMarkControl communication parameters gsTRCRetainDataSet sTRCDataRetain VAR_GLOBAL_RETAIN S_H_Var_GL Table 4 5 S_H_Var_GL Name Type Description HMI_SetOCX sTRCSetCurveOCX Data structure for OCX control settings HMI_Command sHMI_Command Data structure for HMI data exchange Function blocks Table 4 6 Function Blocks of LTRC1000 and LRegCirl Function Block FBTRC1000Backgr Unit fTRC1000 Description TRC1000 basic functionality handling Acyclic communication TRC parameterization Conversion of job setting to TRC structures Error handling FBTRC1000Cyclic fTRC1000 TRC1000 handling of cyclic data servo ipo Transfer of control and status word to cyclic interface Sign of life monitoring Register error evaluation FBTRC1000HMIDataTransfer fTRC1000HMI TRC1000 data handling to HMI Conversion of HMI input data to TRC input structure FBLTRC1000TcpIpHMI fTRC1000TcpIpHMI Function block to send oscilloscope curves to WinCC flexible PrintMarkControl FBLRegCtrlController Library LRegCtrl Register controller function
123. ntrol TRC1000 Different types of wedge marks TRC3000 Different types of wedge marks TRC5000 Point marks Fiber optic monochrome sensor Fiber optic RGB sensor Camera with flash Round spot light Bar sport light Integrated flashlight PROFINET IRT PROFINET IRT Ethernet TM41 Webspeed 1000m min Webspeed 1000m min Webspeed 1000m min 2 marks 3 20 marks by configuration 16 5 for reference TRC1000 Hardware This chapter provides a short summary of the TRC1000 device For more detailed information please see the Wiedeg user manual IDS PN User Manual en V2 0 pdf For the TRC1000 there are two hardware components available e Wiedeg IDS PN e Wiedeg DS Figure 1 1 TRC1000 hardware IDS PN singlehead version Main device with integrated single head print mark sensor for standard mark field detection Extension device for a second double head channel for detection of marks on both sides of the web or a mark arrangement next to each other V3 3 0 Print Standard Add On TRC1000 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 1 Application description Figure 1 2 TRC1000 hardware DS extension for doublehead measurement Table 1 2 Characteristics of TRC1000 Features Sensor Type TRC1000 Fiber optic sensor cable length 2 5m or 5 0m Evaluation metho
124. o0 00 BF Bus fault SF System fault O00900 i RDY FW and netX T g b 34 ready x S i AE E RUN netX information ACT l Device state FAIL Print Standard Add On TRC1000 12 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 1 Application description 1 4 Integration of TRC1000 into a machine concept The cyclic communication is based on PROFINET IRT Therefore the integration into an existing machine concept is easy Every TRC hardware is equipped with two PN Interfaces Ethernet for series connection of several devices The figure 1 3 shows a TRC1000 standard configuration Every print unit is equipped with one TRC The TRC for printing unit 1 is the doublehead version for front and backside detection All other print units are equipped with the TRCs in singlehead version Figure 1 3 Machine concept 6 6 6 PROFINET Figure 1 4 shows the detailed connection between the different system components The SIMOTION as master device in the PROFINET IO system controls the printing cylinder Via PROFINET IRT the cyclic data will be transferred and received from SIMOTION The parameterization and the analog and digital oscilloscope data will be transferred via acyclic communication The communication methods are summarized in table 1 3 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 13 Copyright Siemens AG 2015 All rights re
125. ock is called FOR ul6FBBackgroundCounter NUMBER_OF FIRST TRC TO NUMBER_OF FIRST TRc jna FOR loop for all print gaFBTRC1O00Backgr ul6FBBackgroundCounter PrintUnitNr UI units SensorLogAdress r aii TRCConfig gs F TRCData ga One FB input parameter ba tae z need to be defined outside D the FOR loop for each print END_IF unit Copy the code and adapt the indices and the sensor HW address 276 local error 277 thier Coaward Ede MAZOLEWMUNEESE S gasTRCData 1 88tdcIO out boApplicationError Error handling 278 OR gasTRCData 1 sS8tdcIO out boSensorError 279 OR gasTRCData 1 sStdcIO out boRegisterFBErrorLR 280 OR gasTRCData 1 sStdeTo out boRegisterFBErrorSR 281 OR gasTRCData 1 sStdcIO out boLifesignError There is one global error 282 283 global error P of ak semen ae E E variable Word for the HMI 285 d b32Globall 2 i a 286 A eA PRET E Bit 0 is the general error 287 lout bal s ae a TRUE if there is a fault at 289 OR HMI_C d it b32Global BE 6 H H H 290 OR MMI command out b32GLebalzrror 7 any of the printing units 291 OR HMI Command out b32 lobelError 8 i eee j 292 OR HMI Command out b32GlobalError 9 Bit 1 x are the printing unit 293 OR HMI_Command out b32GlobalError 10 pies 294 OR HMI Command out b3ZGlobalgrror 11 specific error bits 295 OR HMI_ Command out b32GlobalError 12 296 OR HMI_Command out b32GlobalError 13 297 OR HMI_Command out b32GlobalError 14 298
126. ocks will be adapted via this global constants Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 29 Copyright Siemens AG 2015 All rights reserved 3 Integration pTRC1000 NOTE All parts which need to be adapted by the user are labeled with the comment User adaption necessary pTRC1000Startup Table 3 4 Adaptions in the startup program Adaption Description 1 Register Controller Pre Register controller presettings 7 Sor N e S IF TRUE THEN general settings HMI_Command_TRC1000 in Technology GRAVURE Pre setting s of the register M command ERGL000 Ln bomantotneactlonti lt x controller can be done in the MI_Command_TRC1O000 in boEnableIntActiongR TRUE startup task HMI_Command_TRC1000 in r3ZLRRegCtr1KPWwebWeb 1 0 HMI_Command_TRC1000 in r3Z2LRRegCtr1lKPWebCyl 1 0 j HMI Command TRC1000 in ractaRog ir1 obek 10 0 In the example project the HMI Command TRC1000 in r32LRRegCtrlIWebCyl 10 0 controller settings kp Ti can ommand 1000 in r32 e rlKPWebWeb 1 0 i ona A I AERA IAEA 1 0 be changed from HMI HMI Command _TRC1000 in r32SRRegCtrlIWebWeb 10 0 HMI Command _TRC1000 in r32SRRegCtrlIWebCyl 10 0 2 ee tin dita ase aeaa e CS 7 wer waa Define retain data TeORUE THEN IF gsTRCRetainDataSet boRetainDatasetFilled FALSE THEN no retain data available In the very first start up FOR ul setP
127. of three blocks r32Chasm_AGSMark_1 REAL mm Gap between first and second block mark block r32Chasm_AGSMark_2 REAL mm Gap between second and third block mark block r32TriggerVauleMIN_P45 REAL TRC teaching travel measurement min trigger voltage r32DeviationValueMax_P46 REAL TRC teaching travel measurement max web voltage deviation i16SignofLifeTolerence_P925 INT Number of tolerable sign of life interruptions End SensorSetParameter aboSelectPUactive ARRAY 0 20 OF BOOL Print unit active inactive r32Graph_Factor REAL Factor for graphical register error display ab8AMRStart ARRAY 0 20 OF BYTE Start AGS automatic gate setting ab8TriggerValueTeaching ARRAY 0 20 OF BYTE Start trigger value teaching travel measurement ab8SetTriggerValues1 ARRAY 0 20 OF BYTE Set trigger values for head 1 ab8SetTriggerValues2 ARRAY 0 20 OF BYTE Set trigger values for head 2 aboTriggerHead2 ARRAY 0 20 OF BOOL Display trigger settings for head 2 on HMI screen ar32GatePos ARRAY 0 20 OF REAL Gate position set value ab8ChangeGatePos ARRAY 0 20 OF BYTE Start change gate position ab8CenterGate ARRAY 0 20 OF BYTE Start center gate ab8ChangeGateWidth ARRAY 0 20 OF BYTE Start change gate width ar32GateWidth ARRAY 0 20 OF REAL Gate width
128. onfig sTypeTRCConfig TRC config data structure IO TRCData sTRCDataType TRC data structure Task The function block has to run in a cyclic task Recommended task background task Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 71 Copyright Siemens AG 2015 All rights reserved 4 Function description 4 4 2 FBTRC1000Cyclic Functionality The handling of the cyclic data will be done in the FBTRC1000Cyclic function block The main functionalities are 1 Transfer of control and status word to the cyclic interface The input and output data of the TRC are byte array values The cyclic function block converts the data to the status and control word 2 Sign of life monitoring An internal function block does the monitoring of the TRC sign of life error In case of error an application error will be created NOTICE For every TRC device one separate FB call is necessary Input and Output Parameters Table 4 20 scheme of FBTRC1000Cyclic FBTRC1000Cyclic posaxis Axis ARRAY OF BYTE CyclicDataToSimotion CyclicDataToSensor ARRAY OF BYTE sTRCDataType TRCData Table 4 21 interface parameters FBTRC1000Cyclic 1 0 Name Type Description IN Axis posaxis Printing cylinder axis IN CyclicDataToSimotion ARRAY OF BYTE I O address variable OUT CyclicDataToSensor ARRAY OF BYTE I O address variable IO TRCData sTRCDataType TRC data structure Task The funct
129. or2DOReading BOOL Handshake bit to achieve data consistency during oscilloscope data reading Bit TRUE during reading dataset boSensor1AOReading BOOL Handshake bit to achieve data consistency during oscilloscope data reading Bit TRUE during reading dataset boSensor2AOReading BOOL Handshake bit to achieve data consistency during oscilloscope data reading Bit TRUE during reading dataset sControlWord_2 boSensorlnit BOOL Initialize printing mark detection boManualGate BOOL Activate manual gate setting boGateActivate BOOL Enable printing mark detection only if bit boManualGate TRUE boAGSStart BOOL Start AGS automatic gate setting boBacksideActivate BOOL Switch between integrated printing mark sensor IDS head 1 and the external printing mark sensor DS head 2 FALSE head 1 TRUE head 2 boLengthRegActive BOOL Register controller length register active Currently this bit isn t connected in the application and in the sensor device boSideRegActive BOOL Register controller side register active Currently this bit isn t connected in the application and in the sensor device boSideRegManualSetting BOOL TRUE disable detection of printing mark width TRUE gt FALSE initialize start detection of printing mark width Can be used during manual correction of the side register by moving the printing cylind
130. ow 0 20 OF side register BYTE Inching distance HMI_Command IN r32RegInchSRFactorSlow ab8RegInchSRForwardSlow ARRAY Trigger printing cylinder inching forward slow 0 20 OF side register BYTE Inching distance HMI_Command IN r32RegInchSRFactorSlow r32RegInchLRFactorSlow REAL Inching distance printing cylinder jerk slow length register r32RegInchSRFactorSlow REAL Inching distance printing cylinder jerk slow side register r32ReginchLRFactorFast REAL Inching distance printing cylinder jerk fast length register r32RegInchSRFactorFast REAL Inching distance printing cylinder jerk fast side register aboLRRegCtrlEnable ARRAY Activate register controller length register 0 20 OF BOOL ab8RegCtrlSetFromActValueLR ARRAY Set register controller set value to actual value 0 20 OF length register BYTE ab8RegCtrlSetValueZeroLR ARRAY Set register controller set value to zero length 0 20 OF register BYTE r32LRRegCtrlKPWebWeb REAL Controller gain Ko mode WebWeb length register controller r32LRRegCtrikKPWebCyl REAL Controller gain Kp mode WebCylinder length register controller r32LRRegCtrllWebWeb REAL Controller integral time mode WebWeb length Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 63 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description R register controller Nr
131. p G pinsettingIpo E plnsettingBackground J B pTRC1000 E pTRc1000Startup E pTRc1000Backgr G pTRC1000Cyclic H B S_H_Var_al H B S_Vvar_Gt E B T_startup H B T_Task B T_ ar_cl M_Axes M_Shtdwn dk M_Fault a IDSpns Sinamics_Int_MA IBRARIES 0 2 a Execution levels E StartupTask M_Startp startup T_startup t_startup PTRC1000 pTRC1000Startup pinsetting pInsettingStartUp OperationLevels MotionTasks E BackgroundTask M_comm axes_communication M_S_Axes m_s_axes_background PTRC1000 pTRC1000Backgr plnsetting pInsettingBackground ServoSynchronousTasks_Fast IPOSynchronousTasks_fast E ServoSynchronousTasks H SynchronousTask B IPOsynchronousTask M_S_Axes m_s_axes_ipo PTRC1000 pTRC1000Cyclic pInsetting pInsettingIpo TCPWM_Tasks E SynchronousTask_2 IPOsynchronousTask_2 TCInput_Tasks_1 TCInput_Tasks_2 TCTasks_1 TCTasks_2 E SystemInterruptTasks E TimeFaultTask M_Fault timeFault E TimeFaultBackgroundTask M_Fault timefaultbackground B TechnologicalFaultTask M_Fault technologicalfault B PeripheralFaultTask M_Fault peripheralfault B ExecutionFaultTask M_Fault executionfault TimerInterruptTasks UserInterruptTasks E ShutdownTask M_Shtdwn shutdown Description Assign programs to the respective tasks Startup Task e pTRC1000Startup e plnsettingStartUp Background Task e pTRC1000Backgr e plnsettingBackground IPO Task e pTRC1000Cyclic e plnsettin
132. pe Wiedeg user manual sSensor_Set_Parameter sSensorConfig_P2 sP2Contig Data structure sensor config P2 boMeasuringEdge BOOL Measuring edge selection FALSE rising front edge TRUE falling back edge boSensorChoice BOOL sensor selection FALSE head 1 front side TRUE head 2 back side eMarkConfig eMarkType Block mark Wedge mark Double wedge mark boAutomatic BOOL Sensor automatic mode FALSE manual trigger and offset values need to be set manually TRUE automatic sensor teaching is used once a mark is inside the gate boLimitRegError BOOL Limited register error FALSE inactive TRUE active register deviation is limited to the actual gate width boMackleDetection BOOL Mackle detection FALSE inactive TRUE active alarm if limit of permitted active edges in the gate is overrun eControlMode eSensorMode WebCylinder WebWeb WebWeb2 boSensor1 Amplification BOOL TRUE Sensor 1 signal gain factor 2 active boSensor2Amplification BOOL TRUE Sensor 2 signal gain factor 2 active boDOAOWindowReference BOOL AO DO reference value FALSE Oscilloscope refers absolute to axis position 0 360 TRUE Oscilloscope refers to gate middle position P2014 i16SensorCycleTime_P3 INT AO DO detection refresh cycle r32CylinderCircumference_P10 REAL Printing cylinder circumference r32SetValueWebWeb_P11 REAL Printing mark distance set point WebWeb WebWeb2 r32GateWidth_ P12 REAL Gate width r32GateOffset_P13 REAL Gate shift offset r32GatePosit
133. r32LRRegCtrllWebCy REAL Controller integral time mode WebCylinder length register controller aboSRRegCtrlEnable ARRAY Activate register controller side register 0 20 OF BOOL ab8RegCtrlSetFromActValueSR ARRAY Set register controller set value to actual value 0 20 OF side register BYTE ab8RegCtrlSetValueZeroSR ARRAY Set register controller set value to zero side 0 20 OF register BYTE r32SRRegCtrlikPWebWeb REAL Controller gain Kp mode WebWeb side register controller r32SRRegCtrikKPWebCyl REAL Controller gain Kp mode WebCylinder side register controller r32SRRegCtrllWebWeb REAL Controller integral time mode WebWeb side register controller r32SRRegCtrllWebCy REAL Controller integral time mode WebCylinder side register controller ar32TRC1PosToPU ARRAY Web length between printing unit and 0 20 OF corresponding sensor head head 1 mm REAL ar32TRC2PosToPU ARRAY Web length between printing unit and 0 20 OF corresponding sensor head head 2 mm REAL ar32PUToPU ARRAY Web length between printing units mm Cae OF 2 PU1 lt gt PU2 3 PU2 lt gt PU3 b16RegisterErrorHistory_Reque WORD Trigger read register error history st i16RegisterErrorHistory_Sensor INT TRC selection for register error history sHMllnsettingCommandin sHMllnsetting CommandinTy pe Insetting substructure eTechnology eLRegCtrlTe Printing technology GRAVURE FLEXO chnology
134. rIDSR UINT Register controller function block error number length register u16RegisterFBErrorlIDLR UINT Register controller function block error number side register i32Parametert DINT Additional parameter 1 application error number i82Parameter2 DINT Additional parameter 2 application error number sErrorHistory sErrorHistory TRC error histoy 46 Type au16ErrorNumber_P947 ARRAY TRC error number converted into own error 0 7 OF number UINT adtTimeStamp ARRAY SIMOTION time stamp 0 7 OF DT boDataReadStatusAO BOOL Read analog oscilloscope data from TRC active boDataReadStatusDO BOOL Read digital oscilloscope data from TRC active boLDPV1_Busy BOOL LDPV1 channel in use data transfer active b8TRCUpdateActive BYTE Status TRC job download 1 data download SIMOTION gt TRC 3 data download panel gt SIMOTION 4 download successfully 5 error b8ReadTRCConfig BYTE Status read TRC config configuration parameter b8ReadTRCStatus BYTE Status read TRC status system info actual parameter etc b8ReadTRCError BYTE Status read TRC error from TRC device b8TRCReset BYTE Status TRC reset sTRCCalibration sTRCCalibra Data structure TRC calibration tionOutData boTRCCalibrationActive BOOL TRC calibration is being processed b8TRCCalibrationStatus BYTE TRC calibration status 0 idle 1 use calibration gauge input white 2 use calibration gauge input black Print
135. rd of three blocks r82Chasm_AGSMark_1_P293 REAL Gap between first and second block mark block r32Chasm_AGSMark_2_P294 REAL Gap between second and third block mark block r32TriggerValueMIN_P814 REAL TRC teaching travel measurement min trigger voltage r32DeviationValueMax_P815 REAL TRC teaching travel measurement max web voltage deviation i16SignofLifeTolerence_P925 INT Number of tolerable sign of life interruptions End sActualSensorConfig sActualSensorStatus sSystemInfo sSystemInfo Data structure TRC internal info sgDriveldentificationNr_P965 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 P122 Struct STRING u32SystemStatus_P102 UDINT TRC system state i82SensorCyclic_P103 DINT TRC cycle i82ProfinetCyclic_P104 DINT PROFINET data cycle u32StatusFlowControl_P121 UDINT Status flow control sPowerONTimer_P122 P122 Struct Operating hours counter sgSystemID_P919 STRING System ID u16TelegramType_P922 UINT Telegram type u16TolerenceSignofLife_P925 UINT Tolerable sign of life interruptions u16ErrorCounter_P944 UINT TRC error counter au16ErrorNumber_P947 ARRAY 0 7 TRC internal error number OF UINT asErrorTimeStamp_P948 pa 0 7 Error time stamp Profile identification number 55 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description sDriveObjectldentification_P975
136. register measured value is required Therefore register marks are printed additionally to the print view onto the substrate Depending on the measurement method and printing process different types of marks are used In comparison to an external register control system an integrated system provides different advantages e faster register control and less startup waste by integration into the electronic line shaft function e less HW components e smaller cabinet size e same HW for motion and register e integration into machine operation automation and startup sequence e open system extendable by OEM e same engineering tools for automation motion control and register control e clear responsibility OEM with the support of Siemens e Sensor HW is the only cost addition to integrate a register control e End user support by OEM possible Siemens offers different solutions for register control in printing machine concepts with SIMOTION SINAMICS in combination with the Print Standard application Separate application examples for each solution are available depending on the sensor type e Print Standard Add On TRC5000 camera solution e Print Standard Add On TRC3000 sensor solution e Print Standard Add On TRC1000 sensor solution Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 9 Copyright Siemens AG 2015 All rights reserved 1 Application description Table 1 1 Solutions for integrated register co
137. rofinet_Sensor PROFINET IO System 100 Description Assign device names Open HW Config and select the PROFINET IO System Go to PLC gt Ethernet gt Assign Device Name 21 Assign device nam IDSpnsx1 Available theviees Device DM Sensor IP addre M Daas et Device name Assign name I Show only devices of the Update Close Esport 00 02 42 22 43 60 DM Sensor idspns Node flashing test Duration seconds 3 X Flashing Select the device by MACAddress choose the device name from the drop down list and assign the name to the device by clicking the button Assign name If your device is missing click the Update button You can also use the Flashing on button to detect the corresponding device Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 25 Copyright Siemens AG 2015 All rights reserved 3 Integration 3 2 Integration of SIMOTION libraries and programs Table 3 2 Integration of software parts to the scout project 1 ei BIBLIOTHEKEN Bibliothek einf gen DCC Bibliothek einf gen LCom Description Copy the necessary libraries from the example project or via XML import Iz a E AE ST Quelle einf
138. s no base address 16 FFFF8191 Internal error job aborted The _writeDriveMultiParameter function cannot reach the specified logical base address 16 FFFF8192 Internal error job aborted Error in response identifier 16 FFFF8193 Internal error job aborted The number of parameters to be read is not permissible 16 FFFF819D Internal error job aborted An slave device interface is unable to issue a parameter job to the higher level master controller 16 FFFF819E Internal error job aborted Attempt to abort a non active function 16 FFFF819F Internal error job aborted Function not executable 16 FFFF81C3 Error can be repeated in the next program cycle Required resources are presently occupied In the _writeDriveMultiParameter function In the module 16 FFFF81C5 Error can be repeated in the next program cycle Distributed I O not available 16 FFFF81C7 Error can be repeated in the next program cycle Another parameter job has already been issued to the DP station based on the user program from a system internal component 16 FFFF81CF Error can be repeated in the next program cycle Another parameter job call is currently active under this commandld 16 FFFF8290 Internal error job aborted Specified logical base address invalid No assignment is available in SDBs or there is no base address 16 FFFF8291 Internal error job aborted The _writeDriveMultiParameter function cannot reach the specifi
139. screen NOTE This screen is for register control demo model control only The axes can be switch to mode 60 gearing green clutch and the global master axis can be started with the desired speed setpoint The TRC1000 TRC5000 switch can be used to switch the register controller influence from TRC1000 to TRC5000 which are both integrated into the demo model Figure 5 3 Machine Control screen left drive D435 Op Mode rigth drive RUN Reset faults ra infeed va infeed Gearing setpoint is in set Numerator z act Numerator Gearing cascade set One Gear M T U sta act One Gear IIED NOTE The speed input is percentage of a web speed of 600 m min Print Standard Add On TRC1000 80 v3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Configuration screen 1 Figure 5 4 Configuration screen 1 126 m min machine configuration panel selection Main Panel sensor default offset amp iri i Ea ault values 0 7 Volt measuring cycle P3 500 500 Sensor reset background Offset 2 00 gate width P12 20 0 20 0 TRC 2 X lour 0 T 0 50 colour 8 1 00 Pst gate off set P13 0 0 0 0 Belt PS reset mode reebot H
140. served 1 Application description Figure 1 4 System overview Drive system with IDS Real Time Ethernet PROFINET Encoder optional Side register Print cylinder drive Noy NA ME Table 1 3 TRC1000 communication Communication e g cyclic data Status words control words cylinder PROFINET IRT position velocity actual mark error acyclic data Parameterization of TRC mark field mark LDPV1 read write parameter command definition control mode Actual TRC data Error numbers actual gate positions FW version The TRC1000 is working with all known types of wedge and block marks Low contrast ink or reflecting materials are reliable to detect Typical applications for the TRC1000 solution are rotogravure printing and converting applications The example project contains the preconfigured HMI example screens for TRC parameterization fault handling and evaluation of the oscilloscope data Print Standard Add On TRC1000 14 V3 3 0 2015 08 10 SIOS ID 59753224 2 Application structure Copyright Siemens AG 2015 All rights reserved 2 Application structure The application for the TRC1000 print mark detector is totally integrated into the Print Standard application concept Print Standard provides easy software standardization for different kinds of printing machines and several solutions for technological tasks A user who is familiar with this software concept should
141. set value u32ResetError UDINT Fault acknowledge bit 1 printing unit 1 62 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description Name Type Description R ab8RegInchLRBackwardFast ARRAY Trigger printing cylinder inching backward fast 0 20 OF length register BYTE Inching distance HMI_Command IN r32RegInchLRFactorFast ab8RegInchLRForwardFast ARRAY Trigger printing cylinder inching forward fast 0 20 OF length register BYTE Inching distance HMI_Command IN r32RegInchLRFactorFast ab8RegInchLRBackwardSlow ARRAY Trigger printing cylinder inching backward slow 0 20 OF length register BYTE Inching distance HMI_Command IN r32RegInchLRFactorSlow ab8RegInchLRForwardSlow ARRAY Trigger printing cylinder inching forward slow 0 20 OF length register BYTE Inching distance HMI_Command IN r32RegInchLRFactorSlow ab8RegInchSRBackwardFast ARRAY Trigger printing cylinder inching backward fast 0 20 OF side register BYTE Inching distance HMI_Command IN r32RegInchSRFactorFast ab8RegInchSRForwardFast ARRAY Trigger printing cylinder inching forward fast 0 20 OF side register BYTE Inching distance HMI_Command IN r32ReginchSRFactorFast ab8RegInchSRBackwardSlow ARRAY Trigger printing cylinder inching backward sl
142. stration and training purposes e allow Siemens to better support its customers Target Readers This document applies to programmers and application engineers in the printing and converting industries Main Contents The main purpose of this application is the description of the integration of TRC1000 hardware to a machine project based on Print Standard Also the software handling of the TRC device and the evaluation of the return values for using them with the standard register controller Limitations This document does not include a description of SIMOTION and SINAMICS in general General knowledge of e SCOUT e SIMOTION e SINAMICS e WinCC flexible e SIMOTION Print Standard master application IS necessary Scope of supply Print Standard Add On TRC1000 is available for download on the customer support website at applications The scope of supply contains Scout Project Print Standard Add On TRC1000 Vx x x zip Documentation Print Standard Add On TRC1000 Vx x x pdf this document Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 5 Copyright Siemens AG 2015 All rights reserved Table of contents Table of contents Warranty and liability ccccsseeeeeeseeeeeeeeeeeeeeeneeeeeeeseeeeeeeseeeeeenseeeeeenseeeeeenseeneeenseeneeenss 4 Pronte is osrin ee Be AE cee htc Pe cuaeey Dade eee wceates a cucecutuateeaue eta scatcy 5 Target REAdGIS aer aranan AAR eA AAIR E AAE ATA E EAEAP ee
143. sy into an existing Print Standard project Generally it is also possible to run the application stand alone Basically the application consists of a library LTRC1000 which contains the necessary function blocks and type definitions The main function of these blocks is the handling of cyclic and acyclic communication to the hardware device and the print mark result evaluation The program parts S_Var_Gl S_H_Var_Gl and pTRC1000 show exemplary the structure variable definitions the function blocks calls and the collaboration of the TRC1000 in combination with the register controller function block FBLRegCtriController separate library LRegCtrl and FBTech library LPrint Additional to the SIMOTION project the application contains example screens for the visualization with WinCC flexible Depending on the project philosophy the HMI masks can be integrated and adapted to an existing HMI project or used stand alone as they are in the example project NOTE The HMI masks are only examples they are freely adaptable by the user depending on the project requirements NOTE Chapter 4 of this manual contains a more detailed description of the TRC1000 software parts constants and variables 2 3 WinCC flexible part The standard application example is prepared for a maximum of 20 print units The data array which are used for HMI communication are predefined to this length NOTICE _ It s not allowed to reduce
144. t Siemens AG 2015 All rights reserved 5 Use of the example application Tension Adaption and speed depending shift screen In this screen two speed depending curves for precontrol can be entered and activated Figure 5 9 Tension Adaption screen 0 m min E Tension and DRD adaption Tension time stant adaption DRD le speed accel addaption factors characteri invalid entry gt K sey ert a oe a m min HE j re 5 mm mm Setpoint 1 0 00 0 00 0 000 1 000 DRD speed de ding shift Setpoint 2 a ary a An PUL 0 00 0 00 0 00 0 00 0 0 0 0 j 2 r Grid points 0 8 PU2 0 00 0 00 0 00 0 00 0 0 0 0 j Setpoint 3 0 00 1 00 0 000 1 000 j Characteristic velocity shift offset Pu3 0 00 0 00 0 00 0 00 0 0 0 0 ae noo E 0 000 valpaty SHE Bid mogga ao Setpoint 5 0 00 100 0 000 1 000 m min mm p a 4 P PUS 0 00 0 00 0 00 0 00 0 0 0 0 Setpoint 6 ooo 100 0 000 1 000 Spent no 008 oo OM REM coo oc loo fom son 100 Setpoint 7 nod 1o ooo 1o00 S2tpoint 2 0 00 ooo 000 0 00 i n k config Setpoint 8 0 00 100 0000 1 000 Setpoint 0 00 ooo ooo 0 00 ah inset Setpoint 9 0 00 100 0 000 1 000 Setpoint 4 0 00 oe 000 SES pug s tension Setpoint 10 0 00 100 0 000 1 000 Setpoint 5 0 00 ooo 0 00 0 00 P
145. tate of the module 16 FFFF82B7 Error during data set transfer job aborted The job could not be dispatched due to a job error 16 FFFF82C0 Error during data set transfer can be repeated in the next program cycle The module is feeding the data record but the module does not yet have any read data 16 FFFF82C2 Error during data set transfer command can be repeated immediately The module is currently executing the maximum possible jobs for one CPU 16 FFFF82C3 Error during data set transfer command can be repeated immediately Required resources are presently occupied In the _readRecord function In the module 16 FFFF82C4 Error during data set transfer command can be repeated immediately Communication errors Parity error SW Ready not set Error in block length administration Checksum error on CPU side Checksum error on module side 16 FFFF82C5 Error during data set transfer Can be repeated in the next program cycle Distributed I O not available 16 FFFF82C5 Error during data set transfer Can be repeated in the next program cycle Distributed I O not available parameter result parameter specific error 16 FFFF8000 Parameter error job aborted Access to a non existent parameter 16 FFFF8003 Parameter error job aborted Access to a non existent subindex 16 FFFF8004 Parameter error job aborted Access with subindex to non indexed parameter not an array parameter 16 FFFF800B Parameter error
146. tdclO interface directly In the SHMI_Command structure all printing unit depending variables are collected in array form to realize the HMI connection as easy as possible The sHMI_command structure is prepared to provide a standard solution with a maximum of 20 print units If the number of print units is less than twenty the HMI part and the array length of the sHMI_command should be still at 20 constant NUMBER_OF_PUS in xTypeDef Otherwise the HMI masks needs to be adapted To safe the last active TRC dataset all the necessary values will be saved in the retain data structure sTRCRetainDataSet after download The retain dataset will be reloaded automatically to the HMI_Command IN structure after run up of the controller and after a life sign interruption For this the functions FCSafeRetain and FCRetainRefresh are used All variables of the sTRCRetainDataSet structure are marked in the table of the sHMI_Command IN structure below in the column R with green color Table 4 14 sHMI_Command IN Copyright Siemens AG 2015 All rights reserved Name i16TRCNumber Type INT Description Select TRC number sCommissioningDataToTRC Sensor _P1_Command eCommandTy pe eResetMode eSensorReset Sensor Reset soft reset TRC reboot ENUM Factory_Reset TRC factory reset boTRCReset BOOL Trigger TRC reset depending on eResetMode boWriteTRCParameter BOOL Trigger write TRC parameter i
147. th register r32SpeedPreControl will added after the control loop boRegCtrl_ _channel_WebWebLR BOOL Activate channel WebWeb length register r32RegCtrlVPosMaxLR REAL Limit positive register correction velocity mm s r32RegCtrlVNegMaxLR REAL Limit negative register correction velocity mm s r32RegCtrl_ Kp_WebWebLR REAL Controller gain Ko mode WebWeb length register controller r32RegCtrl_Kp_WebCyILR REAL Controller gain Ko mode WebCylinder length register controller r32RegCtrl_ _WebWebLR REAL Controller integral time mode WebWeb length register controller r32RegCtrl_ _WebCyiLR REAL Controller integral time mode WebCylinder length register controller r32RegCtrlVInchingLR REAL Inching step width mm r32RegCtrlSetValueLR REAL Register controller set value length register boRegCtrlEnableSR BOOL Activate register controller side register boFBRegCtrlResetSR BOOL Fault acknowledge FB register controller side register boRegCtrlSpdPreCtriSR BOOL Enable velocity precontrol side register r32SpeedPreControl will added after the control loop boRegCtrl_ _channel_WebWebSR BOOL Activate I channel WebWeb side register r32RegCtrlVPosMaxSR REAL Limit positive register correction velocity mm s r32RegCtrlVNegMaxSR REAL Limit negative register correction velocity mm s r32RegCtrl_Kp_WebWebSR REAL Controller gain Ko mode WebWeb side register controller r32RegCtrl_ Kp_WebCylSR REAL Controller gain Ko mode WebCylinder side r
148. the length also in machine concepts with less print units In machines with less than 20 print units the user has the possibility to adapt the array length of the SIMOTION internal variables to the real number of printing units which are active in the machine This helps to safe internal storage space and to get a clear and small structure for observations NOTE The adaptable variables and constants are declared in the global variable source S_Var_Gl in the SIMOTION program part Print Standard Add On TRC1000 16 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 2 Application structure V3 3 0 2 4 2 4 1 NOTE 2 4 2 Additionally applications used together with TRC1000 application Commonly the two following functionalities are used together with the register control functionality Insetting Sometimes it is necessary to handle with preprinted materials For example there is an extra printing unit at the end of the line or further improvement steps for the product are necessary before starting with the essential job Unfortunately the format of preprinted web is not exactly the same like specified because of drying effects and other influences In this case an adaption of the format is required In the Add On application Insetting this problem is solved by changing the electronic gearing of the respective printing cylinder The growing difference of the register devia
149. tion fDRD DRD function blocks flnsetting Insetting function blocks fRegCtrl Register controller function blocks fRegExtern Control external drives fStatistic Statistic function blocks Content of the program unit pTRC1000 Table 4 3 Content of the program unit pTRC1000 pTRC1000Startup Startup Program Task Configuration Content Description pTRC1000Cyclic IPO FB calls FBTech FBTRC1000Cyclic FBLRegCtrlController Register controller p1RC1000Backgr Background FB calls Register inching Error handling FBTRC1000Backgr FBHMIDataTransfer TRC config download Global variable declarations S_Var_GL Table 4 4 S_Var_GL Name Type Description NUMBER_OF_ACTIVE_PUS UINT oe of register controlled printing NUMBER_OF_FIRST_TRC UINT Index of first register controlled PU TRC ARRAY OF gaFBTRC1000Backgr FBTRC1000Backgr FB instance ARRAY OF gaFBTRC1000Cyclic FBTRC1000Cyclic FB instance ARRAY OF gaFBHMIDataTransfer FBHMIDataTransfer FB instance ARRAY OF gaFBTRC1000RegCtriLR SR FBLRegCtriController FB instance ae ARRAY OF oe gaFBTRC1000CharacteristicLR FBLRegCtriCharacteristic optional register characteristic instance ARRAY OF gaFBRegDRD FBLRegCtrlDRD optional DRD function block instance gaFBTechLR SR ARRAY OF FBTech FB definition gsTRCConfig sTypeTRCConfig Data structure instance Pri
150. tion description Application structure Integration Function description Use of the example application Alarms and error messages Sensor calibration Command Interface RS232 Analog monitor DIAG interface Firmware Update Sensor reset Abbreviations Related literature Version History Contact O O N O Oo A WO ND h 8h O 12 13 14 15 Copyright Siemens AG 2015 All rights reserved Warranty and liability Warranty and liability Note Security informa tion The Application Examples are not binding and do not claim to be complete regarding the circuits shown equipping and any eventuality The Application Examples do not represent customer specific solutions They are only intended to provide support for typical applications You are responsible for ensuring that the described products are used correctly These application examples do not relieve you of the responsibility to use safe practices in application installation operation and maintenance When using these Application Examples you recognize that we cannot be made liable for any damage claims beyond the liability clause described We reserve the right to make changes to these Application Examples at any time without prior notice If there are any deviations between the recommendations provided in these application examples and other Siemens publications e g Catalogs the contents of the other documents have priority
151. tion will be measured Afterwards the adjustment of the gearing factor will synchronize the printing cylinder with the preprinted material The insetting functionality is provided in the library LRegCtrl which is already part of the TRC1000 example project Also the program unit pinsetting is integrated in the project and the programs plnsettingStartUp plnsettinglpo plnsettingBackround are assigned to the SIMOTION execution system For the complete integration of the insetting functionality and further information the insetting documentation Print Standard AddOn Insetting pdf can be used DRD Dynamic Register Decoupling A special behavior of a rotogravure printing machine is that the impression cylinder presseur and the printing cylinder have a high nip pressure With this not only the ink transfer but also the web transport is realized In rotogravure electronic line shaft ELS machines the length register movement is also performed by the printing cylinder With this connection a register movement is not possible without influencing the web transport leading to a web stretch and web tension change So every register movement is influencing the register stability of the following printing units in a negative way To avoid this effect the Dynamic Register Decoupling DRD function block can be used The DRD function block forwards an active register adjustment to all following printing units In this way these print
152. tive direction TRUE negative direction r32InchDistMUMSR REAL Register inching value side register Interconnected with print standard stdclO interface sInsettingIn sInsettingTy Insetting sub structure see Insetting Add On pe documentation sDRDIn sLRegCtrlID DRD sub structure dynamic register RDIn decoupling see DRD Add On documentation boEnableintActionLR BOOL Enable Disable integral part of register control modes with integral part length register boEnablelntActionSR BOOL Enable Disable integral part of register control modes with integral part side register u8FilterDepth USINT Averaging over the parameterized number of register error values Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 45 Copyright Siemens AG 2015 All rights reserved 4 Function description sTRCData sStdclO OUT Table 4 10 sTRCData sStdclO OUT TRC Output data Name Type Description boLifesignError BOOL Communication SIMOTION TRC interrupted boApplicationError BOOL Application internal error u16ApplicationErrorlD UINT Application error number boSensorError BOOL TRC internal error u16SensorErrorlD UINT TRC error number converted into own error number boRegisterFBErrorLR BOOL Register controller function block error length register boRegisterFBErrorSR BOOL Register controller function block error side register u16RegisterFBErro
153. to SIMOTION SensorSetParameter sSensorConfig_P2 sP2Config Data structure sensor config P2 boMeasuringEdge BOOL Measuring edge selection FALSE rising front edge TRUE falling back edge boSensorChoice BOOL sensor selection FALSE head 1 front side TRUE head 2 back side eMarkConfig eMarkType Block mark Wedge mark Double wedge mark boAutomatic BOOL Sensor automatic mode FALSE manual trigger and offset values need to be set manually TRUE automatic sensor teaching is used once a mark is inside the gate boLimitRegError BOOL Limited register error FALSE inactive TRUE active register deviation is limited to the actual gate width boMackleDetection BOOL Mackle detection FALSE inactive TRUE active alarm if limit of permitted active edges in the gate is overrun eControlMode eSensorMode WebCylinder WebWeb WebWeb2 boSensor1 Amplification BOOL TRUE head 1 signal gain factor 2 active boSensor2Amplification BOOL TRUE head 2 signal gain factor 2 active boDOAOWindowReference BOOL AO DO reference value FALSE Oscilloscope refers absolute to axis position 0 360 TRUE Oscilloscope refers to gate middle position P2014 60 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 4 Function description
154. trol gate only in the zoom area and shift it onto the control mark The value above the button shows the distance the cylinder has to move to bring the mark into the gate The adjustment can be started by pressing the button Set Reg NOTE Just in WebWeb mode and register controller is switched off Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 103 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application e Sensor teaching Travel measurement 11 Using this function the sensor calculates the offset and trigger values automatically NOTICE Condition to use the function sensor teaching is a print mark within the gate Furthermore the parameter P45 and P46 need to be unequal 0 NOTE If Sensor Automatic is activated the sensor teaching is executed after every gate centering e Status signals 12 Table 5 10 TRC internal status Pos pos Bit Alarm PM Position StatusWord2 FALSE GREEN valid PM position and a valid number of active edges within the gate TRUE RED no valid PM detected within the gate for the last three printing cylinder revolutions PM out of gate no PM within the gate Width width B Bit Alarm PM Width StatusWord2 FALSE GREEN valid PM width within the gate and Alarm PM Position is FALSE TRUE RED no valid PM width for three printing cylinder revolutions width exceeds maximum minimum wi
155. ts 16 FFFF8011 Parameter error job aborted Job cannot be executed due to operating state 16 FFFF8014 Parameter error job aborted Modification access with value that is within value limits but illegal for some other sustainable reason parameter with defined individual values 16 FFFF8016 Parameter error job aborted Illegal or unsupported value for attribute number of elements parameter number or subindex or a combination of these 16 FFFF8017 Parameter error job aborted Illegal format 16 FFFF8018 Parameter error job aborted Number of values of parameter data does not match the number of elements in the parameter address 16 FFFF8019 Parameter error job aborted Access to a non existing axis or an invalid drive object 114 Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015 All rights reserved 6 Alarms and error messages Table 6 3 shows the errorlD of the system function _readDriveMultiParameter displayed in i32Parameter1 HMI Para 1 The function FCGetReadDriveMPError of the LTRC1000 library reads out the errorlD of the system function in Para 1 and if available the parameter number which causes the error in Para 2 If Para 2 is 0 an function internal error occurred function result Table 6 3 function parameter result of system function _readDriveMultiParameter
156. undergo continuous development Siemens recommends strongly that you regularly check for product updates For the secure operation of Siemens products and solutions it is necessary to take suitable preventive action e g cell protection concept and integrate each component into a holistic state of the art industrial security concept Third party products that may be in use should also be considered For more information about industrial security visit http www siemens com industrialsecurity To stay informed about product updates as they occur sign up for a product specific newsletter For more information visit http support automation siemens com Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 Preface Copyright Siemens AG 2015 All rights reserved Preface Target This document describes the application programming concepts and functions which are required for a register control solution with SIMOTION and TRC1000 The objective of this document is to provide the user with detailed information about the structure of the SIMOTION Print Standard Add On TRC1000 project Some reasons for creating such a standard application are e reduce necessary engineering time e provide the user with tested and proven concept e maintain and further develop know how on printing industry specific functionality e provide an example software that can run on a SIMOTION register control demo unit for demon
157. y E duct hue bedenyas chest di 17 2 4 1 INS THING fi cece ene ie ne cove i ee eee deve vaededeeee a sae devel ii ve bane 17 2 4 2 DRD Dynamic Register D COUpIING ecseeeeeeseeeeeeteeeeeenaeeeeeenes 17 3 integralon eseina ieee eet ranner ee eens ei rA AnA Aea AEAEE ee EEE 19 3 1 Integration of the TRC1000 hardware device ccccsseeeeesteeeeees 19 32 Integration of SIMOTION libraries and programs ssssseeeseeeeeeeeeen 26 3 2 1 Selection of the Print Standard library version used in the ELE E M E P EA ET A E E T 28 3 3 Adaption Extension of the SIMOTION program for used TRC S printing UNS secina in aa R ar R 29 3 4 HMI integration aaoi ae e ra e a a raaa 33 3 4 1 Install and register PrintMarkComntrol c ccssceeeeceeeeteeeeeeeeeeeenees 34 3 4 2 Integration of the HMI project to a STEP7 project eeeeeeeeeees 35 3 4 3 Setting up OCX PrintMarkControl ccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeneees 36 4 Function descriptio siess anns E tees testa ee ace ES 37 4 1 OVEWIOW eni E E S dean 37 4 2 CONSTANS deia a E EE natalie E E SAA 41 4 3 Data STOCU S aa S a E a ein ie eG ede ids 42 4 3 1 STRODATA orina AE E E A O 42 4 3 2 SHMI Command eeina ia ea ea a a aeea aaa Eea 59 4 3 3 STPCHMIOCXGOM rea iea aaaea etic AE eine eel dares 69 4 3 4 ST ROGOMIGQ sae eects ate ie eddie lee trie ade 69 4 4 FUNCION BIOCKS naii aa a a seee lever E aaa da aa aa rea iaaa 70 4 4 1 FBTRC1000BaCkOr ianctet iad ttn ain
158. y clicking on the scope button the register oscilloscope screen opens Figure 5 13 Register overview screen 0 000 ntroller OFF control Print Standard Add On TRC1000 V3 3 0 2015 08 10 SIOS ID 59753224 000 eg g 0 000 scope 11 20 screen PU start 107 Copyright Siemens AG 2015 All rights reserved 5 Use of the example application Register error history screen The register error history screen shows an example how statistic functionalities can be integrated to the project The history picture safes the last 200 register controller error values and show them in the diagram Because of the free architecture of the program and the screens the user is free to adapt its own statistic functionalities inside as detailed as he likes Figure 5 14 Register error history screen 30 m min a register error history os 1 00 F JO 0 44 0 24 1 0 2 pe 061 0 8 Y axis min 1 00 DO AO over start view screen e yaxis range 1 The scaling can be changed by adapting the limits for y axis e Measuring cursor 2 With the shift register every single point can be selected and the register error value will be displayed Print Standard Add On TRC1000 108 V3 3 0 2015 08 10 SIOS ID 59753224 Copyright Siemens AG 2015
Download Pdf Manuals
Related Search
Related Contents
Arat NS1269.1 holder Sony NWZ-S716F User's Manual DFTB+ Version 1.0 USER MANUAL Owners Manual 2014 - SR SUNTOUR Cycling Forsteo, teriparatide, Manuel d`utilisation: stylo 5 Ton Double Ram Samsung AW122KB User Manual DualSkyModels 製 ブラシレスモーター用アンプ取扱説明書 Serial data frame generator for testing telecommunications circuits User-Service Manual - Discover Your Mobility Main Menu.! Copyright © All rights reserved.
Failed to retrieve file