Place of Origin: | Japan |
Brand Name: | Tamagawa |
Certification: | CE |
Model Number: | TS2014N311E32 |
Minimum Order Quantity: | 1pcs |
---|---|
Packaging Details: | carton |
Delivery Time: | in stock |
Payment Terms: | T/T, Western Union, MoneyGram |
Supply Ability: | 100pcs/week |
Tamagawa: | Tamagawa | TS2014N311E32: | TS2014N311E32 |
---|---|---|---|
Japan: | Japan | Material: | Iron |
Color: | Gray | Temperature: | 30-120 |
Dimension: | 40mm |
TS2014N311E32
Guang Zhou Lai Jie Electric Co.,LTD
Please contact with “Tommy” for the price
TS3617N376
TS4514N1828E200
TS3602N31E8
TS-1905N146E6
TS4603N1700E200
TS2087N12E9
TS2142N1E63
TS3617N381
TS4514N2002E200
TS3617N1E1
TS1922N3
TS4603N2002E200
TS2097N1E9
TS2151N1E26
TS3617N3E9
TS4514N2405E200
TS3617N1E2
TS2014N181E32
TS4603N7002E200
TS4602N6321E100
TS3617N2E4
TS3617N13E9
TS4515N1202E200
TS3617N11E1
TS2014N182E32
TS1505N55
TS4515N6000E200
TS4603N1000E100
TS3617N2E5
TS3617N40E3
TS4515N2405E200
TS3617N1E3
TS2014N185E32
TS4602N1000E200
TS4603N1000E200
TS3617N2E6
Pointer to the result variable of the "GenerateBLOB" function. | |
The GenerateBLOB function creates a BLOB. | |
At the end of the wizard function the BLOB has to be deleted again. |
The following excerpt from the file "Execute Programm.wnf" shows the use of this function. The wizard function creates a C script which starts another application (in this example: notepad.exe).
DWORD dwPCodeSize Length of the created P code in bytes LPVOID lpPCode Pointer to the created P code int nErrors Number of compiler errors int nWarnings Number of compiler warnings
The function returns a structured tag of the type AP_BLOB with the following structural components:
The C codes are created by means of the C function sprintf. The parameter is processed as format string, i.e. format control characters (e.g. % ") are evaluated. If these are to be transferred into the C code (e.g. as format string for a printf call in an action), they must be provided with a . Example:
char* Prologue Prologue of the action as ASCII string. char* Epilogue Epilogue of the action as ASCII string. char* Format Core of the action as ASCII string or format string according to the standard function "printf".
The GenerateBLOB function (BLOB = Binary Large OBject) creates an action which can be appended to a graphic object property. An action comprises 3 parts. Prologue: This is the header of the C function. Example: #include "apdefap.h" void OnLButtonDown(char* lpszPictureName,char* lpszObjectName,char* lpszPropertyName, UINT nFlags, int x, int y) { The prologue depends on the trigger starting the action (in the above example: clicking the left mouse button). Epilogue: This is the end of the C function made up of the '}' symbol. Core: This part contains the actual functionality of the C function. Example: ProgramExecute("notepad.exe"); This function creates and compiles the C code of the action. The compilation results in a P code. This code is interpreted and processed by the WinCC runtime system. In case of an incorrect C code no P code is created. The function creates a BLOB in which the parts of the action (C code, P code, trigger...) are stored. Before the end of the wizard function the BLOB has to be deleted again. More detailed information on deleting the BLOB function may be found unter "DeleteBLOB". Syntax AP_BLOB GenerateBLOB (char* Prolog, char* Epilog, char* Format, ... )
The following excerpt from the file "Demo.wnf" shows the use of this function. In the "Set options" dialog of the "Demo Wizard" an input field with a Browse button is displayed. Clicking on the Browse button opens the window objet selection dialog.