Home
CIMON Xpanel
Contents
1. of the recipe data memory area of a device This memory area must be continuous The analog TAG of this field specifies not only the first address but also specifies the type of data XPanel supports WORD 16 bits and DWORD 32 bits type of data for recipe Therefore the data type of an analog TAG for this field should be one of INT16 UINT16 INT32 or UINT32 Following picture shows the property page of analog TAG Group General amp dvanced Initial Value Data Type 0 UINTI6 C Digital Analog String Eng Data CIMON Min Value 0 Value 65535 loat Number of Data This field gets the total number of recipe group data items All groups in a model have the same number of data The exact size of a recipe group data can be calculated from this value and the data type described in the previous field Recipe Area Start Position 2 Handshake with the Device XPanel does handshake with a device while up download a recipe data via communication The handshake is progressed on the basis of device memories These handshake memories must be declared as TAGs in the database of XPanel Word Handshake PLC Req Flags XPanel Req Flags Upload Reg by PLC Download by PLC Upload Req by XPanel Download Word handshake is a group of up download request flags It must be declared as an analog TAG with 16 bits property This word is di
2. RunScript MyLoop Following table shows some typical command script examples Command Script Example Remark Tag a 100 PageOpen NewPage Tag_b Tag_b 1 Tag_a 100 Tag_b 1 RunScript MyLoop MakeCsv LogModel 1 After changing the value of Tag_a to 100 open a page named as After changing the values of Tag a and Tag b invoke MyLoop script function After that do not wait the termination of MyLoop and create a CSV formatted file of the LogModel on SD memory card SCRIPT 29
3. 0 While lt 10 Describe the job should be performed repeatedly during the value of logical expression is TRUE This example performs following statement 10 times A A 1 WHILE statement makes decision before performing the loop Such that statements in loop can never be performed But DO WHILE statement performs the loop at least one time And then makes decision by evaluating logical expression This is a difference between WHILE and DO WHILE statement SCRIPT 7 Lll Describe the job should be performed repeatedly during the value of logical expression is TRUE This loop is performed at least 1 time While A 10 Semi colon must be used for marking end of statement 4 3 FOR Statement It is a little bit complex statement But after familiar with this statement it will be very useful loop statement The specialty of this statement is that all expressions for initializing decision making and post loop processing are described in one statement line Following example shows the same job with the example of WHILE statement presented in former section Compare it with WHILE statement For A 0 lt 10 1 describe the job to repeat here FOR keyword is followed by a pair of parenthesis Expression for initializing decision making and post loop processing are described in this parenthesis Each expression must be separated by semicolons FOR i
4. the number of month 1 12 the number of day 1 31 SCRIPT 16 r eee Re the number of hour 0 23 the number of minute 0 59 the number of second 0 59 the number of day of week 1 7 1 Sunday 2 Monday 7 Saturday the number of today s minute count 0 1439 O2midnight N O OC the number of today s second count 0 86399 02midnight TimeStr R1 S2 Makes a string of clock R1 Clock data It can be acquired by GetTime 0 function call The number of seconds after 1 January 1970 UTC 52 Format string can include following symbols Full name of weekday ex Sunday Abbreviation of weekday ex Sun Full name of month ex January 6 Abbreviation of month ex Jan date 1 31 Hour in 24 hour format 0 23 l Hour in 12 hour format 1 12 som Month 1 12 Minute 0 59 sep A M P M indicator for 12 hour format A M P M S Second 0 59 Number of year without century 00 99 9eY Number of year with century ex 2006 Example Program CurTime GetTime 0 StrTag TimeStr CurTime Y m d 96H 96M 96S Result StrTag 2006 10 12 23 59 59 51 52 Executes an external application program 51 Application program name with path and extension 52 Input parameter string for the application program Executes an external application program Th
5. Executes an external program 51 Program name S2 Program input parameter Makes a CSV formatted log file in SD memory S1 Name of log model R2 Number of block O current logging block Makes a CSV formatted log file in USB memory S1 Name of log model R2 Number of block O current logging block Start Stop the data logging S1 Name of log model H2 0 Stop 1 Start Head a group of recipe data from file and download it to device 1 Name of recipe model H2 Group number R2 Group number Stop and terminate the processing job of specified recipe model 1 Name of recipe model Stores the recipe data to the file 1 Name of recipe model R2 Group number Read the recipe data from file S1 Name of recipe model R2 Group number Download the current recipe data to device RcpMemDown S1 1 Name of recipe model RcpMemUp S1 HcpCsvRd S1 S2 1 Upload the recipe data from device 1 Read the recipe data from CSV formatted file Name of recipe model Upload the specified recipe group data from device and store it to file 51 Name of recipe model SCRIPT 14 ii S1 Name of recipe model S2 File name File location O local 1 50 2 USB Make a CSV formatted file from trend data TrendCsvWr S1 R2 S1 Trend name H2 File location O local 12 SD MMC 2 USB Make a BMP formatted file of current screen ScrCapture S1 R2 1 BM
6. can be one of three numbers 0 2 XPanel provides predefined constants for them That is following constant symbols can be used as parameter R2 instead of number Meda Number Symbol CSVflelocaton remain Dek aoon wean TrendCsvWr TrendExample SDMEM_ Result Makes a CSV formatted file on SD MMC cards The data will be taken from the TrendExample trend data ScrCapture S1 R2 Captures current screen and makes a BMP format image file 51 Seed for making BMP file name R2 BMP file location code 0 local 1 SD MMC 2 USB This function captures current screen display and makes a BMP formatted image file The name of BMP file will be made with the seed string of S1 parameter and time File name format is seedname HHmmSS BMP The second parameter R2 indicates the storage media for generated BMP file It can be one of three numbers 0 to 2 XPanel provides predefined constants for them That is following constant symbols can be used as parameter R2 instead of number Number BMP tie 1ocation remain Dek Example Program ScrCapture Mybmp SDMEM Result Captures current screen and makes a BMP formatted file on SD MMC cards Sleep R1 Puts some delay to the current script program R1 Delay time in milli seconds This function suspends the execution of the current script program for a specified interval
7. 5 7 Sew Brown 7 INSTALLATION GUIDE 11 _ 5 Installation B Create a Panel Cut and insert the Xpanel into the panel from the front Unit mm XT12CA e XT10CA INSTALLATION GUIDE 12 T Nus ee XTO6CA XTO5SA XT05MA B Attach the Installation Fasteners from inside the panel Insert each the hook of faster into slot and tighten it with a screwdriver e Tightening the screws with too much force can damage the case of the Xpanel The necessary torque is 0 5 Nem Depending on the thickness of installation panel the number of installation fasteners used may need to be increased to provide the desired level of moisture resistance INSTALLATION GUIDE 13 6 Wiring WARNINGS To avoid an electric shock when connecting the Xpanel power cord terminals to the power terminal block confirm that the Xpanel power supply is completely turned OFF via a breaker or similar unit e Since there is no power switch on the Xpanel unit be sure to attach a breaker type switch to its power cord avoid a short caused by loose ring terminals be sure to use ring terminals with an insulating sleeve e When the FG terminal is connected be sure the wire is grounded Not grounding the Xpanel unit will result in excess noise and vibration B Connecting the Xpanel Power Cord When connecting the power cord be sure to follow the procedures given below
8. Do not allow water liquids metal or charged particles to enter inside the Xpanel since they can cause either a Xpanel malfunction or an electrical shock The allowable pollution degree is 2 Do not store or use the Xpanel in direct sunlight or in excessively dusty or dirty environments Do not store or use the Xpanel where strong jolting or excessive vibration can occur Do not store or use the Xpanel where chemicals such as organic solvents etc and acids can evaporate or where chemicals and acids are present in the air Do not use paint thinner or organic solvents to clean the Xpanel Do not store or operate the LCD display in areas receiving direct sunlight since the sun s UV rays may cause the LCD display s quality to deteriorate Ifyou store the Xpanel in areas where the temperature is lower than allowed level the liquid of the LCD will congeal and the LCD can be damage Conversely if the storage area s temperature becomes higher than the allowed level the liquid of the LCD will become isotropic causing irreversible damage to the LCD Therefore be sure to store the panel only in areas where temperatures are within those specified in this manual After turning the Xpanel OFF be sure to wait a few seconds before turning it ON again If the Xpanel started too soon it may not start up correctly e Due to the possibility of unexpected accidents you must back up the project data of the Xpanel regularly INSTALLATION GUIDE
9. Following example shows the same job with the example of WHILE statement presented in former section Compare it with WHILE statement For A 0 lt 10 1 describe the job to repeat here FOR keyword is followed by a pair of parenthesis Expression for initializing decision making and post loop processing are described in this parenthesis Each expression must be separated by semicolons FOR initializing exp decision making exp post processing exp 4 4 SWITCH CASE Statement This statement is very useful when there are many different processing way depend on a variable or expression Each different processing way is described by CASE keyword followed by a constant value There is no limit on the number of CASE SCRIPT 8 switch A 1 describe the job to perform when the value of A is 1 Break Case 5 Case 7 describe the job to perform when the value of A is 5 or 7 Break Default describe the job to perform when A is any other value DEFAULT statements can be omitted Break CASE keyword must be followed by a constant value and terminated by a colon A TAG variable or expression cannot be used in CASE statement DEFAULT statement can be used only once in a SWITCH statement It does not need a following constant and this statement will be performed when there is no matching case DEFAULT statement can be omitted if needless BREAK
10. Handshake Word WORD Bit RECIPE_HAND Group Number RECIPE_GRP Post Process For Uploaded Data Automatically File Store On PLC Managed Upload 12 k M a 1 Importing the CSV file on external memory RECIPE 8 See RcpCsvRd function is used for importing a CSV file from external memory media External memory can be the SD MMC or USB memory If there is no fault to access the CSV file in external memory the recipe group data will be loaded to RAM of XPanel After successful loading of recipe group data they can be manipulated in various ways They can be stored in configuration file and also can be downloaded to the device Please refer to the Script section for more information about RcpCsvRd function RECIPE 9 Script Script Overview The script of Xpanel is very similar with the C programming language Variables can be used in script And script provides function call mechanism and supports almost keywords defined in standard C language such as switch case for while if else goto All user programmed scripts are executed in multi thread environment Each script is assigned a priority among total 10 levels such that the execution speed of a script is dependent on this level most high priority 10 most low priority 1 Features Uses the C language style statement All TAGs defined in Xpanel database can be us
11. R1 The interval must be specified in milli seconds unit SCRIPT 23 r Re e HardCopy Prints out the current screen image to USB printer This function prints out the screen image to USB printer The printer must support PCL Printer Control Language OpenPort R1 R2 R3 R4 R5 Opens the H1 serial port for communication R1 COM port number use the predefined symbol COMxxxx R2 Baudrate use the predefined symbol BPSxxxx R3 Parity use the predefined symbol PARITY xxx R4 Data bits 7 or 8 R5 Stop bits use the predefined symbol STOPBIT xxx This function opens a serial port for communication XPanel has two serial communication ports COM1 and COM2 The COM port can be configured as one of three modes RS232C RS422 and RS485 Predefined symbols for R1 R2 R3 and R5 parameters are provided please refer to the Constants section of this manual The port which is being used for device communication or already opened cannot be opened by this function Before calling this function ensure that the designated port is not being used in device driver And also if the port has been opened and used previously before this function call ensure that it was closed by ClosePort function If there is an error for opening a port this function returns zero 0 When the port was opened successfully this function returns non zero value Example Program OpenPort 485 BPS1920
12. This program can be called by external program or command line as following statement MyPgm 1 2 3 Parameters p1 p2 p3 will be initialized to 1 2 3 each Notice that variables a b c will be initialized to zero 2 2 Program Part In program part all the programming statements can be used except variable VAR and parameter PARAM declarations Calculation storing a data in some variable function call and many other expressions can be used in a statement Following is a simple example of statements 1 Tag b MyPgm Tag a 2 3 A statement must be ended by 5 character All functions return a value to caller In the above program example the returned value will be stored in Tag b 2 3 Constants Following notation is used for each type of constant 1 Octal constant Number characters between 0 and 7 can be used It must be started by zero ex 01277 2 Decimal constant Normal notation is used ex 15 3 14 2 45E 12 Hexadecimal constant It must be started with Ox Alphabet and number character between 0 F can be used ex OXFFFF ex string variable E otring constant string must be described between two G Predefined constant Pl pi 3 14 etc refer to the following table Constant Name Value Usage Remark ww SCRIPT 3 _LOCAL 0 Local flash memory Can be used as parameters f
13. 1 Function Description Return Cacus germ rea cona Caelates the ceingotavas Toth Caelatesttefoorofavae Aos Calelates the bsoute vane Sem Bard Generates pseudorandom number Re Cakulates the paint remainder RURA 3 Special Functions Function Description Return PageOpen S1 Opens a new page named as S1 PageClose S1 Closes an opened page Opens a new frame named as 1 s Get a string from string table StringTable R1 R2 String R1 Group No R2 String No GetTime R1 Get a clock data R1 type of data Real FrameOpen S1 SCRIPT 13 Lll TimeStr R1 S2 51 2 MakeCsv S1 R2 MakeCsvUsb S1 R2 DataLog S1 R2 RcpDownload 1 R2 RcpUpload S1 R2 RcpStop S1 RcpFileStore S1 R2 RcpFileRead S1 R2 Assemble a string of time H1 clock value from GetTime 0 String S2 Format string Executes an external program 1 Program name S2 Program input parameter Makes a CSV formatted log file in SD memory S1 Name of log model R2 Number of block O current logging block Makes a CSV formatted log file in USB memory S1 Name of log model R2 Number of block O current logging block Start Stop the data logging S1 Name of log model H2 0 Stop 1 Start Head a group of recipe data from file and download it to device S1 N
14. 2 45E 12 Hexadecimal constant It must be started with Ox Alphabet and number character between 0 F can be used ex OXFFFF ex string variable E otring constant string must be described between two G Predefined constant Pl 3 14 etc refer to the following table Constant Name Value Remark SCRIPT 3 be used as parameters _SDMEM __ for functions or commands _USBMEM_ SCRIPT 4 3 1 Operators for calculation The result row of following table assumes that the value of variable is and B is 4 Operator Description Example Result 1 Remainder of division and all bitwise operators are performed with 32 bits integer data 3 2 Logical Comparative Operators The result row of following table assumes that the value of variable A is 2 true and B is 0 false XPanel treats all values except zero as logical TRUE Only zero is treated as logical FALSE When the result of logical operation is TRUE the value 1 will be returned and stored Operator Description Example Result T B Ae 3 3 Other Operators Operator Description Example Result Value Store A B Store the value of B to A and uses it as a result value SCRIPT 5 Lll Store operator can be used in a series For example A In this case The value
15. 4 Ld xd 2 Package Contents The following items are contained in the package of the Xpanel Before using the Xpanel please confirm that all items listed here are present B Xpanel Unit B Fastener 8 ea 5P Connector Screw Driver m USB Cable CD B installation Guide This unit has been carefully packed with special attention to quality However should you find anything damaged or missing please contact your local Xpanel distributor immediately INSTALLATION GUIDE 5 _ 3 Dimensions Unit mm e XT12CA 330 250 INSTALLATION GUIDE 6 238 Unit mm e XT10CA CIMON P l 220 INSTALLATION 7 Unit mm XTOGCA XT05SA XTOSMA 206 156 mw INSTALLATION GUIDE 8 TFT T es F ee ee 4 Interfaces 1 RS 232C This interface is used to connect the Xpanel to the host PLC via an RS 232C cable When you use 1 RS 232C port you must not use COM1 RS 485 422 port Connector Pin No Name Description DC Data Carrier Detect Receive Data T Transmit Data DT Data Terminal Ready 9 Signal Ground DSR Data Set Ready RT Request To Send CTS Clear To Send a a a a a a a a B B Ring Indicator m COM1 RS 422 485 This interface is used to connect the Xpanel to the host PLC via an RS 422 485 cable When you use COM1 RS 422 485 port you must not use COM1 RS 232C por
16. 7 Specification 5 XTO5SA XTOGCA XT10CA XT12CA Color 256 65535 RAM SDRAM 64MB Flash Flash 64MB OS Microsoft Window CE NET 4 2 10 Base T 100 Base TX RS 232C 422 485 485 Auto Toggle us 1 CH 100 240VAC D DC24V Xpanel Designer Design Tool Dimension 206 156 61 330 250 83 Panel Cut 192x142 267x207 319x239 Protection IP65 Front it o B Example of model name 05 06 10 12 LCD Size M S C Initial character of Mono STN Color A Revision A D AC DC AC 100 240 DC 24V e 5 gt 5 6 Mono DC24V input e XT10CA A gt 10 4 Color TFT LCD AC input INSTALLATION GUIDE 16 and files in external memory XPanel will load the project files from that external memory at startup In this case the project files of internal flash memory will be ignored OVERVIEW 2 2 Network SCADA HMI OPC Server Ethernet XPanel supports not only 1 1 network but also multi drop topology And more XPanel can communicate with several different devices and networks on the same time 1 Ethernet Communication Port Ethernet communication facility of XPanel is used in various purposes The main usage of Ethernet port is for communicating with devices Many different kinds of devices can be linked with XPanel in the same network at the same time Other usage of Ethernet is network with SCADA system XPanel can be a data server for SCADA on Ethernet
17. RcpFileStore RcpFileRead e Compounded functions are provided for convenience RcpUpload function is a compounded form of RcpMemUp and RcpFileStore And RepDownload function is a compounded form of RcpFileRead and RcpMemDownY RECIPE 2 2 Model Configuration A recipe model is defined by following dialog box of XPanel Designer Edit Recipe Model Model Name lceCream Number Of Group 1 1024 Recipe Area Start Position Laud Mumber Of Data 1 100005 Handshake Word WORD Bit Group Number FRECIPE_GAP Post Process For Uploaded Data 1 Basic Properties Model Name Every recipe model has its own name This name will be used in the functions for recipe operation Number of Group One or more recipe group data can be predefined in a recipe configuration file Number of Group field gets the total number of predefined group data These group data can be read or written by RcpFileRead or RcpFileStore Each group is distinguished by the index number in those functions According to the following example picture index 0 is the Vanilla and index 1 is Choco and so on Number of Group Recipe tt rcx Pressure JO JequinN e Recipe Area Start Position One of analog TAG in database can be assigned to this field The device address of the TAG must be designated with the first address RECIPE 3
18. can be used for storage expansion and or upgrading project files The XPanel provides standard 8MB internal flash memory If this storage was not enough for storing all project data files external SD MMC or USB memory can be used XPanel detects SD MMC or USB memory automatically And if there are required folder OVERVIEW 1 Ld xd 1 Safety Precautions Essential Safety Precautions WARNING oystem Design Do not create Xpanel graphic objects that could possibly endanger the safety of equipment and personnel Damage to the Xpanel can cause an output signal to remain ON or OFF continuously and can cause a major accident Therefore design all monitoring circuits using limit switch to detect incorrect device movement Do not create Xpanel graphic objects that control machine safety operations such as an emergency stop Switches to control machine safety operations must be installed as separated hardware switches Design your system so that a communication fault between the Xpanel and the controller of the equipment can not make the equipment malfunction Do not use the Xpanel as a warning device for critical alarms that can cause serious operator injury machine damage or production stoppage The Xpanel is not appropriate for use with aircraft control devices aerospace equipments central trunk data transmission communication devices nuclear power control devices or medical life support equipment due to these devices inheren
19. constants for them That is following constant symbols can be used as parameter R3 instead of number veda Number Symbol CSVflelocslon moraran Example Program RepFileName SDMEM Result Heads a CSV formatted file named as RcpFileName CSV in SD MMC memory card and stores the data in memory of XPanel SCRIPT 21 No Parameter This function pops up a tool window for recipe This tool window shows the current recipe data in memory And it provides some tools for editing individual datum in a group changing current group saving the current data to file and up downloading the recipe data from to the device Please refer to the Recipe section for more information e eT u TrendCsvWr S1 R2 Makes and stores a CSV formatted file from trend S1 Trend name R2 CSV file location code 0 local 1 SD MMC 2 USB This function makes a CSV formatted file from a trend object Output CSV file can be stored in not only local flash disk but external memory card Next screen capture shows an example of output CSV file Ed TrendExample_0410710504 CS The name of generated CSV file has the format of trendname MMDDHHmmSS CSV This name is generated from trend name date and time The second parameter R2 indicates the storage media where the CSV file will be stored It SCRIPT 22 r eee Re
20. e Confirm that the Power Cord is unplugged from the power supply Unscrew the screws from the middle three 3 terminals align the Ring Terminals and re attach the screws e Confirm that the ring terminal wires are connected correctly The torque required to tighten these screws is 0 5 to 0 6Nem 1 Power Supply Caution Please pay special attention to the following instructions when connecting the power cord terminals to the Xpanel unit e the power supply voltage exceeds the GP s specified range connect a voltage transformer Between the line and the ground be sure to use a low noise power supply If there is still an excessive amount of noise connect a noise reducing transformer The power supply cord should not be bundled with or kept close to main circuit lines high voltage high current or input output signal lines INSTALLATION GUIDE 14 Ld xd Connect a surge absorber to handle power surges To reduce noise make the power cord as short as possible 2 Grounding Caution e When grounding to the rear face FG terminal of the Xpanel on the Power Input Terminal Block be sure to create an exclusive ground Inside the Xpanel unit the SG Signal Ground and FG Frame Ground terminals are connected to each other e When connecting an external device to the Xpanel with the SG terminal ensure that no short circuit loop is created when you setup the system INSTALLATION GUIDE 15
21. from the device and stores them to the group 2 of ModelName recipe file RcpStop S1 Stop and terminate the recipe operations 51 Recipe model name This function terminates any job related with designated name of recipe model For example if download process is proceeding through communication when this function is issued then the communication will be stopped and terminated Be careful to use this function because there is a possibility of storing unwanted data group in file or device Use this function only when there is a unrecoverable network or device breakdown SCRIPT 19 tam emee Re e RcpFileStore S1 R2 Stores the current recipe data in memory to the file 51 Recipe model name R2 Group number This function stores a group data in memory of XPanel to the configuration file The designated recipe group must have been declared in XPanel Designer before this function call RcpFileRead S1 R2 Reads a group data from the recipe configuration file 51 Recipe model name R2 Group number This function reads a group data in the configuration file and stores them to the memory of XPanel The designated recipe group must have been configured by XPanel Designer or stored by other way before this function call RcpMemDown S1 Downloads a group of recipe data in memory to the device S1 Recipe model name This function downloads a group data in memory of XPanel to the device T
22. function treats the non zero value of R2 as 1 Example Program DataLog ModelName 1 Result Data logging task will be invoked RcpDownload S1 R2 Reads a recipe data group from file and downloads to device 51 Recipe model name R2 Group number Heads a group data from the recipe configuration file and download them to the device After this function the group data in XPanel memory will be changed to the read group data The group data must have been configured in XPanel Designer before this function call Example Program RcpDownload ModelName 1 Result Reads the 1 group data from recipe file and download them to the device RcpUpload S1 R2 Uploads a recipe group data from device and stores them to the recipe configuration file 51 Recipe model name R2 Group number Reads a group data from the device through communication and stores them to the recipe SCRIPT 19 r ee Re e configuration file After this function the group data in XPanel memory will be changed to the read group data The designated recipe group must have been declared in XPanel Designer before this function call Example Program RcpUpload ModelName 2 Result Uploads the recipe data from the device and stores them to the group 2 of recipe file RcpStop S1 Stops and terminates the recipe operations 51 Recipe m
23. keyword in CASE DEFAULT statement plays role of terminating SWITCH statement If there is no BREAK keyword in the progress of program execution until reaches the other CASE DEFAULT keyword the program will continue to execute the statements in the other CASE DEFAULT scope This feature of SWITCH statement is helpful for short and simple programming only if it is used intentionally 4 5 GOTO Statement This statement controls the flow of program execution directly This statement needs a matching index in a program scope Index is a unique name of a jump destination in a program scope and it is started with character SCRIPT 9 Lll JumpHere destination of jump If A lt 10 1 Goto JumpHere change the flow of program This example program processes the same job with the previous examples of FOR and WHILE statement section The name of index JumpHere in the above example can not be duplicated with variables tags and program names 4 6 CONTINUE Keyword Continue keyword is very useful in loop When a CONTINUE keyword is met in the progress of a program the flow of the program will be moved to the first statement in the loop This keyword is effective in the loop of WHILE DO WHILE and FOR statement It is especially useful when there are many decision making in the loop such as IF ELSE Following two program examples process the same job While A 10 1 If A 5 Job t
24. of transfer through those handshake signals Group No Effective Group No Set by PLC Word H S Reset by XPanel Bit09 or BitO8 Bit H S PLC Controlled Up Down Load Following time chart shows an example of recipe data transfer issued by XPanel side All the handshake signals are controlled by XPanel The group number field has no meaning at XPanel issued transfer Since the group number was designated in the parameter of functions already RcpUpload RcpDownload or does not need the group number because data are not for file access RcpMemUp RcpMemDownY The device can recognize the progress of recipe data transfer with word and bit handshake signals Group No Not Effective Word H S Bit01 or BitOO Set by XPanel Bit H S lt Reset by XPanel Controlled Up Down Load 3 Post Process for Uploaded Data RECIPE 5 Lll Automatically File Store On PLC Managed Upload This option is effective only for the uploaded data by device side As explained in previous section the device PLC can control the uploading process by using handshake signal bit9 of word handshake and a group number If this option is checked XPanel will store the received recipe group data to the configuration file automatically at the end of upload process At that moment the group number from device will be used to determine which group in a file should be replaced with the newly received data Stored group data wi
25. pop up current page does not affected by this new page The new page pops up over current page 2 A page for frame This kind of page has a position number in a frame For open this page the frame has to be opened in advance The old page which has the same position number in the frame will be replaced by this page automatically PageClose S1 Closes an opened page S1 page name without extension Closes an opened screen page If the page of S1 parameter was not opened the current screen will not be affected by this function 51 new name without extension Opens a new screen frame Previous page or frame will be closed automatically The default pages for frame will be opened automatically StringTable R1 R2 Gets a string data from string table R1 String group number R2 String number in a group Gets a string data from the string table The string table must have been configured by String Editor Assign the group number of a string table to the R1 and the string number of a string in that group to the R2 parameter Returned data is a string type value and it can be used for string tag variable or other function s parameter Example Program StrTag StringTable 1 14 Result otrTag A string that is defined as 14 in group 1 GetTime R1 Gets the current clock data R1 type of clock data The number of seconds after 1 January 1970 UTC the number of year 1970
26. special operators The logical operators in XPanel are shown in as following table For more precise information refer to the section 3 2 Logical Operator Description Example wo lt m All logical operators get one or two values for input operands and return a logical output SCRIPT 24 tea Be ie De m value According to the above examples A and B are those inputs The value for logical arithmetic operand is not restricted to only two logical values TRUE or FALSE The input value can be any number But only zero is treated as logical FALSE All the other values are treated as TRUE Comparative operators get two real values for operands and return a logical output value Those logical output values can be used in other logical expression Here is some examples of conditional expression that can be used in object configuration dialog box Conditional Expression Example Remark If the value of Tag a is not equal to 1 and the Tag a 1 amp amp Tag b 10 value of Tag b is equal to 10 then the expression returns TRUE Otherwise FALSE If the sine of Tag a is 1 then the expression oin Tag a 1 Will return TRUE otherwise FALSE If the value of Tag a is smaller than 100 then Tag a 100 the expression will return TRUE otherwise FALSE If the sum of Tag a and Tag b is smaller than the sum of Tag a and Tag c then the Tag a Tag b lt Tag a
27. 0 PARITY NONE 8 STOPBIT ONE SendByte 485 2 ClosePort COMA85 Result Opens the COM 1 port for communication if it is available for using The port will be set up as RS485 communication mode 19200 bps no parity 8 data bits and 1 stop bit ClosePort R1 Closes the R1 serial port which has been opened R1 COM port number use the predefined symbol COMxxxx This function closes the designated serial port which has been opened by OpenPort function Predefined symbols for R1 parameter are provided please refer to the Constants section of this manual Example Program OpenPort 485 BPS19200 PARITY NONE 8 STOPBIT ONE j SCRIPT 24 dosi ClosePort COM485 Result Closes the COM 1 port SendByte R1 R2 Transmits a byte datum R2 through the R1 port R1 COM port number use the predefined symbol COMxxxx R2 A datum to transmit The value can be between 0 and 255 This function transmits a datum through the designated serial port R1 which has been opened by OpenPort function Predefined symbols for R1 parameter are provided please refer to the Constants section of this manual The R2 parameter must be a byte datum between 0 0x00 and 255 OxFF If a value larger than 255 OxFF was designated to the R2 the upper bytes will be discarded and only the lower 1 byte datum will be transmitted For example if the value 0x1234 was assigned to the R2 the 0x34 will be tran
28. CIMON Xpanel Touch Panel Mountable HMI Device User s Manual Xx CIMON Xpanel Version 1 0 Copyright 2005 KDT 251 Al SYSTEMS S T SYSTEMS CO LTO CIMON WINDOWS CE BASED NEW TOUCH INSTALLATION GUIDE SYSTEM OVERVIEW DATA LOGGER RECIPE SCRIPT System Overview 1 Peripherals XPanel Designer S P Logged Data Export USB Client Interface Memory Expansion Ethernet Program up download with RS239C ActiveSync RS422 485 XPanel Ethernet USB Host Interface Peripherals XPanel supports various kinds of peripherals For those peripheral connection XPanel provides following interfaces 1 USB Client This interface is used for XPanel Designer interface By using this port all configuration data files including the screen drawings can be up and downloaded XPanel Designer software is a free software It is provided by CD and can be downloaded through the internet http www kdtsys com XPanel Designer is a Microsoft Windows based software And for connection with XPanel it uses another software on PC the Microsoft ActiveSync The ActiveSync is provided by CD but also can be downloaded from Microsoft web sites 2 USB Host This interface can be used for many kinds of peripherals such as printers memory sticks barcode scanners and keyboards For connection of multiple of them the USB hub can be utilized 3 SD MMC Memory Slot SD MMC memory slot
29. Conditional Expression The conditional expression always returns only a logical value A logical value can be one of two values TRUE or FALSE XPanel uses the number 0 as the value of logical FALSE and 1 as the value of logical TRUE A logical expression needs some special operators The logical operators in XPanel are shown in as following table For more precise information refer to the section 3 2 Logical Operator Description Example wo lt m All logical operators get one or two values for input operands and return a logical output SCRIPT 27 tea Be ie De m value According to the above examples A and B are those inputs The value for logical arithmetic operand is not restricted to only two logical values TRUE or FALSE The input value can be any number But only zero is treated as logical FALSE All the other values are treated as TRUE Comparative operators get two real values for operands and return a logical output value Those logical output values can be used in other logical expression Here is some examples of conditional expression that can be used in object configuration dialog box Conditional Expression Example Remark If the value of Tag a is not equal to 1 and the Tag a 1 amp amp Tag b 10 value of Tag b is equal to 10 then the expression returns TRUE Otherwise FALSE If the sine of Tag a is 1 then the expression oin
30. ELSE IF ELSE IF There is no limit on level of nested IF Else statement can be omitted If A 1 performed when the value of A is 1 performed when the value of A is not 1 4 2 WHILE DO WHILE Statements These statements are loop statements WHILE keyword is followed by a logical expression During the value of this expression is TRUE all statements in WHILE statement are performed repeatedly 0 While lt 10 Describe the job should be performed repeatedly during the value of logical expression is TRUE This example performs following statement 10 times A A 1 WHILE statement makes decision before performing the loop Such that statements in loop can never be performed But DO WHILE statement performs the loop at least one time And then makes decision by evaluating logical expression This is a difference between WHILE and DO WHILE statement SCRIPT 7 Lll Describe the job should be performed repeatedly during the value of logical expression is TRUE This loop is performed at least 1 time While A 10 Semi colon must be used for marking end of statement 4 3 FOR Statement It is a little bit complex statement But after familiar with this statement it will be very useful loop statement The specialty of this statement is that all expressions for initializing decision making and post loop processing are described in one statement line
31. ER 5 Tags Edi Tag Tagname Description PID_S Set Value PID_ Description Current value Cancel DATA LOGGER 6 3 Table View Data Log Object The logged data can be seen on screen in tabular form For that a special graphic object named as Data Log is provided in graphic editor Following captured screen is an example of tabular display of logged data DATA LOG VIEW The shape of table can be configured in graphic editor through following dialog box The colors of text and line the number of column and row and the format of time and date can be configured in this dialog box And also the data log object calculates and displays some Statistical data from the block file Maximum minimum average and summation of logged data in a block file can be displayed on data log object DataLog Text Color Line Color wass Ling Tupe Column Mo Row Mo Date Type Display lt Date Time Maximum value Minimum Value Average Value Summatian Value A data log object shows a part of one block file Following diagram explains that Every data logging model has block files The number of block files is limited to the assigned number in Maximum Block No field of model configuration dialog box When the tabular view page is opened XPanel will try to read the latest completely logged block file And if there is a block file XPanel displays the con
32. MEM_ Result Captures current screen and makes a BMP formatted file on SD MMC cards Sleep R1 Put some delay to the current script program R1 Delay time in milli seconds This function suspends the execution of the current script program for a specified interval R1 The interval must be specified in milli seconds unit SCRIPT 23 6 Scripts for Command and Condition In some application there is a need to use a simple script on graphic object configuration For example to assign a touch operation on an object one or several command lines must be written in case of Command Expression action type see an example configuration dialog box below And further more for making it conditional touch operation a conditional expression must be described All these conditional expression and command script have the same rules with script programming Object Config Namt Objecti24 Action Script Text Config Action Command Expression fog TAG A Conditional Expression o D V Move H Move j O toe C Cotte TAG_C 100 i PageOpen NewPage 4 Command Script 6 1 Conditional Expression The conditional expression always returns only a logical value A logical value can be one of two values TRUE or FALSE XPanel uses the number 0 as the value of logical FALSE and 1 as the value of logical TRUE A logical expression needs some
33. P file name H2 File location O local 12 SD MMC 2 USB Put delay on the script program Sleep R1 H1 delay time in milli second HardCopy Print out the current screen image to USB printer Open a serial port for communication H1 Port number predefined as COMXxxx OpenPort R1 R2 R2 code predefined as BPSxxxx R4 R5 H3 Parity code predefined as PARITY xxx R4 Data bits 7 or 8 H5 Stop bits code predefined as STOPBIT xxx Close a serial port 1 OK ClosePort R1 H1 Port number predefined as _ _ 0 Error Transmit a byte datum though the R1 port SendByte R1 R2 H1 Port number predefined as COMXxxx R2 A datum to transmit 0 255 Transmit a string data though the R1 port SendString R1 2 H1 Port number predefined as COMXxxx S2 A string to transmit 1 OK 0 Error Receive a byte datum though the R1 port Received ReceiveByte R1 R2 R1 Port number predefined as _COMxxx_ data or R2 Time out in milli second error 5 2 Function Details PageOpen S1 Opens a new page S1 new page name without extension Opens a new screen page If the new page has no special style then previous page or frame will be closed automatically Otherwise according to the style of the new page following result can be shown SCRIPT 15 r ee Re e 1 A pop up style If a new page has a style of
34. Tag a 1 Will return TRUE otherwise FALSE If the value of Tag a is smaller than 100 then Tag a 100 the expression will return TRUE otherwise FALSE If the sum of Tag a and Tag b is smaller than the sum of Tag a and Tag c then the Tag a Tag b lt Tag a Tag c expression will return TRUE otherwise FALSE 6 2 Command Script The command in XPanel is not restricted to use only one instruction A long list of instructions can construct a command That is the command is a special kind of script program Within a command script all kinds of keywords and functions can be used But only one thing the priority of command script is different with the normal script When a command script is issued by touch operation or any other method it will be executed with top most priority For that reason if a command script has a time consuming loop inside all the other process will be halted until the end of command script So especially for calling other function within a command script the programmer has to keep in mind that the priority If the function has a loop RunScript keyword must be used This keyword is used for parallel execution The calling command script does not wait the termination of called function Assume that a programmer wants to call a function named as MyLoop and this function has a time consuming loop Then following instruction must be used instead of calling directly SCRIPT 28
35. Tag c expression will return TRUE otherwise FALSE 6 2 Command Script The command in XPanel is not restricted to use only one instruction A long list of instructions can construct a command That is the command is a special kind of script program Within a command script all kinds of keywords and functions can be used But only one thing the priority of command script is different with the normal script When a command script is issued by touch operation or any other method it will be executed with top most priority For that reason if a command script has a time consuming loop inside all the other process will be halted until the end of command script So especially for calling other function within a command script the programmer has to keep in mind that the priority If the function has a loop RunScript keyword must be used This keyword is used for parallel execution The calling command script does not wait the termination of called function Assume that a programmer wants to call a function named as MyLoop and this function has a time consuming loop Then following instruction must be used instead of calling directly SCRIPT 25 RunScript MyLoop Following table shows some typical command script examples Command Script Example Remark Tag a 100 PageOpen NewPage Tag_b Tag_b 1 Tag_a 100 Tag_b 1 RunScript MyLoop MakeCsv LogModel 1 After changin
36. The OPC server will be provided free And one more usage of Ethernet is file sharing with PCs which are located in the same network Xpanel supports the MS Windows network That means the XPanel can access the shared files of PCs on Windows network This functionality is very useful when exporting the CSV formatted file from XPanel 2 5232 5422 485 Communication Port XPanel provides a standard RS232C RS422 485 communication port And the mode RS232C or RS422 485 of port is switched by only software configuration This port supports full signal lines for standard modem connection 3 Additional RS232C Communication Port XPanel provides additional one RS232C port This port supports null modem connection OVERVIEW 3 Lll 3 XPanel Designer XPanel Designer is a free software It can be run on the standard Microsoft Windows platform such as Windows XP By using XPanel Designer following works can be carried out 1 Device Configuration According to the connected devices all the communication parameters can be configured such as communication media port baudrate station number etc Every configured devices on network are given its own name and this name will be used in TAG database configuration 2 TAG Database The TAG is the basic unit of data processing in XPanel Three types of TAGs are provided according to the data type The first type of TAG is the digital TAG Digital TAG represents two different states and can b
37. Time Offset Minutes el e Periodic A log task is started periodically The period of task invoking is configured in the unit DATA LOGGER 2 ioi ip be m of minute During one day log task is started on every multiple of designated minute For example if the Base Time was configured as 1H 30M the log task will be invoked on 00 00 01 30 03 00 04 30 22 30 This example assumes that Time Offset is configured as 0 The time offset is a delay of start If it is assigned as 10 the log task of previous example will be invoked on 00 10 01 40 and so on Called by command This type of invoking is triggered by a command A command can be issued by touch operation or by script program The command has a following format DataLog ModelName 1 Trigger TAG The log task is triggered by the state change of a TAG When the value of a TAG changes from zero to non zero the log task will be invoked The value change from non zero to zero does not affect to the log task Designate the name of TAG in Tag Name field Enable TAG The log task is triggered by the state change of a TAG When the value of a TAG changes from zero to non zero the log task will be invoked And when the value changes from non zero to zero the log task will be terminated That is the log task keeps logging only while the value of TAG is non zero Designate the name of TAG in Tag Name field On Time The lo
38. ame of recipe model R2 Group number R2 Group number otop and terminate the processing job of specified recipe model 1 Name of recipe model otores the recipe data to the file 1 Name of recipe model R2 Group number Read the recipe data from file 1 Name of recipe model R2 Group number Download the current recipe data to device RcpMemDown S1 1 Name of recipe model RcpMemUp S1 HcpCsvRd S1 S2 13 Upload the recipe data from device 1 Read the recipe data CSV formatted file Name of recipe model Upload the specified recipe group data from device and store it to file 51 Name of recipe model SCRIPT 14 ae Be e S1 Name of recipe model S2 File name R3 File location 0 local 1 SD MMC 2 USB Pops up a dialog box for recipe data manipulation Make a CSV formatted file from trend data TrendCsvWr S1 R2 S1 Trend name H2 File location 0 local 1 SD MMC 2 USB Make a BMP formatted file of current screen ScrCapture S1 R2 1 BMP file name R2 File location O local 1 SD MMC 2 USB Put on the script program Sleep R1 delay time in milli second 5 2 Function Details PageOpen S1 Open a new page S1 new page name without extension Opens a new screen page If the new page has no special style then previous page or frame will be closed automatically Otherwise according
39. ber of designated log model Converts the designated block file to a CSV formatted file and stores it on the USB memory An USB memory has to be plugged before the issuing of this function A CSV file will be written in the folder XPanel of the USB memory card The CSV file name is assembled with the date and time log started and it s from original block file YYMMDD HHmmSS CSV When the R2 parameter is zero this function will try to convert the current log proceeding uncompleted block file If the logging task of designated model is not running at the moment of the function call no CSV file will be created The parameter R2 can be designated up to the Maximum Block No which should have been set in the model configuration dialog box When the R2 parameter is 1 this function will try to convert the most recently log completed block file SCRIPT 18 CYNON _ Example Program MakeCsvUsb ModelName 1 Result A CSV file will be created from the most recently log completed block file DataLog S1 R2 Data logging start stop 51 Log model name R2 0 or 1 0 STOP 1 START This function is effective only on the log model of external call start type Models with other start type such as periodic trigger tag enable tag or on time are not affected by this function If the R2 parameter is 0 the designated logging task will be terminated Otherwise the logging task will be invoked by this function This
40. ble tag or on time are not affected by this function If the R2 parameter is 0 the designated logging task will be terminated Otherwise the logging task will be invoked by this function This function treats the non zero value of R2 as 1 Example Program DataLog ModelName 1 SCRIPT 18 CYNON _ Result Data logging task will be invoked RcpDownload S1 R2 Reads a recipe data group from file and downloads to device S1 Recipe model name R2 Group number Heads a group data from the recipe configuration file and download them to the device After this function the group data in XPanel memory will be changed to the read group data The group data must have been configured in XPanel Designer before this function call Example Program RcpDownload ModelName 1 Result Reads the 1 group data from recipe file and download them to the device RcpUpload S1 R2 Uploads a recipe group data from device and stores them to the recipe configuration file 51 Recipe model name R2 Group number Reads a group data from the device through communication and stores them to the recipe configuration file After this function the group data in XPanel memory will be changed to the read group data The designated recipe group must have been declared in XPanel Designer before this function call Example Program RcpUpload ModelName 2 Result Uploads the recipe data
41. case statement And more XPanel unit provides priority controlled multi threading environment for that script program This script language can be used not only for data processing but also for device control 5 XPanel Unit Upgrade Every XPanel Designer releases have it s own version of binary files for XPanel unit And OVERVIEW 4 Lll when connected first time with XPanel unit the XPanel Designer detects the version of XPanel unit and if needed upgrade the binary files in XPanel unit automatically XPanel Designer provides a tool for making memory image of SD MMC or USB This image includes project folders and files for XPanel unit On start up XPanel unit searches this image in external memory If it was found XPanel unit uses this image as a project data and the one in internal flash memory will be ignored This is useful when a user do not want to use a PC or notebook for project data update The user can change the configuration or the design of screen with a memory card only 6 Configure Other Functions XPanel provides many special functions for XPanel application such as data logger alarm trend recipe and network service All these functions can be configured in XPanel Designer OVERVIEW 5 4 XPanel Unit XPanel unit always searches a project files for execution at start up Following diagram shows the order of that search If the project files are found at one of three locations XPanel unit load those pro
42. dialog box and can be changed by common control interfaces of Windows 4 Misc Configurations LCD backlight and beep sound can be configured by this service 5 Touch Calibration This service provides a chance to calibrate touch panel of XPanel 6 Clock Setting The real time clock can be adjusted by this service 7 Software Keyboard The XPanel has a software keyboard interface This service visualizes or hides the software keyboard on screen 8 XPanel Shutdown This service shutdowns the XPanel program on XPanel unit 9 Suspend This service shutdowns the operating system of XPanel unit When the IP address is changed this service must be activated After the system shutdown the system will not be restarted automatically The external power must be turned off and on again for system restart OVERVIEW 7 Data Logger 1 Overview The data logger of XPanel has three kinds of application The first one is the displaying the logged data on screen in tabular form The graphic editor in XPanel Designer provides a special object named as Data Log for this purpose This object displays a part of logged data on screen and makes it possible to examine and scroll all other logged data by touch input The second one is the data exporting by CSV formatted file CSV formatted file can be read by application software in PC such as Microsoft Excel For that exporting XPanel provides some command and script function
43. e used for general 1 bit input or output point of the device The second type of TAG is the analog TAG This type of TAG represents a number A number can be a binary word BCD or floating point value and some additional data processing can be accomplished on this type of TAG such as scaling The last type of TAG is the string TAG The string TAG represents a string data This string data can be used for the message display If the type of TAG is a digital or analog it could be assigned a physical address of device This kind of TAG is called as Real TAG and XPanel unit polls the value of this TAG from device by communication when it is needed A TAG which is not assigned the physical address of device is called as Virtual TAG Virtual TAG is used for internal data calculation script programming and string data manipulation 3 Screen Editor XPanel Designer provides its own graphic editor It is an object based graphic editor Each graphic object can be configured with some animation controls There are many kinds of animation controls supported such as blinking visualizing coloring moving rotating digitizing zooming and more These all animations are triggered by the value of designated TAG in XPanel unit The XPanel provides abundant graphic libraries and supports true type fonts also 4 Script Programming XPanel provides C style script language of its own This script language supports inherent C language keywords such as switch
44. ed as logical FALSE When the result of logical operation is TRUE the value 1 will be returned and stored Operator Description Example Result T B Ae 3 3 Other Operators Operator Description Example Result Value Store A B Store the value of B to A and uses it as a result value SCRIPT 5 Lll Store operator can be used in a series For example A In this case The value of C will be stored to A and B The value of right side of the operator Is store in left side and this value is treated as a return value of the operator The internal processing order of above example is B lt C A lt B Warning This feature of operator places bug in program sometimes That is the confusion with a comparative operator 22 Following example is illustrating this kind of bug In this example a programmer confused comparative operator with store operator But XPanelDesigner cannot detect such error The reason is the store operator has a return value and this value can be used as a logical value in if statement This bug makes unexpected flow of program and furthermore unwanted value will be stored in A If A B Compare values of A and B It is miss spelling of A B SCRIPT 6 Lll 4 Statements 4 1 IF ELSE Statement IF ELSE statement is one of the most frequently using logical decision making statement It supports nested IF statement like IF
45. ed as variables in script It does not need additional definition symbol or configuration That means values of all TAGs can be referenced or changed in every script program freely Two kinds of variable types are supported real and string type Actual type of a variable is decided automatically during program execution But only one type of value can be used in a script scope All real type data are processed in 64 bits Does not distinguish capital letters That is and var are the same keyword SCRIPT 1 2 otructure of Program Declaration Part Declare internal variables and input parameters Program Part All program statements can be located here Except declarations Comments can be located on any place in a script A comment must be started by and all strings following this symbol are treated as a comment string until the end of a line 2 1 Declaration Part 1 Variable Declaration VAR variable name variable name Declare internal variables The scope of these variables restricted in a declared script The initial value of declared variable is zero If there is need to declare several variables comma can be used between each variable name This statement can be used in multiple until the beginning of program part 2 Input Parameter Declaration PARAM 1 parameter 2 parameter This declaration is needed when the program can be called by another program or command sta
46. g task is invoked only once in day Set the time of log in Base Time field 2 Log Trigger Condition After being invoked the log task writes its TAG data on file at one of two different kinds of event One is a periodic event and the other is an event from the trigger TAG Every model has to be assigned one of two events as its log trigger event Lag Tvpe Period Periodic The logging is triggered at every designated period of time The period has to be set in Period field The unit is second Tag Value The logging is triggered when the value of TAG designated in Tag Name field is changed from zero to non zero value 3 Log termination DATA LOGGER 3 Maximum Lag Per Black 1440 Maximum Block Invoked log task is stopped when one or more of following conditions are met When the number of logging is reached at the designated count in Maximum Log No Per Block When a new log task invoking condition is met current logging task is forced to terminate and a new task will be invoked A log task can be stopped by external command issued by a touch operation or script program DataLog ModelName 0 In case of the log task invoked by Enable TAG the task will be stopped by the value of Enable TAG If the TAG value is changed from non zero to zero the task will be terminated 4 Block File Note that every one log task ge
47. g the value of Tag_a to 100 open a page named as After changing the values of Tag a and Tag b invoke MyLoop script function After that do not wait the termination of MyLoop and create a CSV formatted file of the LogModel on SD memory card SCRIPT 26 Script Script Overview The script of Xpanel is very similar with the C programming language Variables can be used in script And script provides function call mechanism and supports almost keywords defined in standard C language such as switch case for while if else goto All user programmed scripts are executed in multi thread environment Each script is assigned a priority among total 10 levels such that the execution speed of a script is dependent on this level most high priority 10 most low priority 1 Features Uses the C language style statement All TAGs defined in Xpanel database can be used as variables in script It does not need additional definition symbol or configuration That means values of all TAGs can be referenced or changed in every script program freely Two kinds of variable types are supported real and string type Actual type of a variable is decided automatically during program execution But only one type of value can be used in a script scope All real type data are processed in 64 bits Does not distinguish capital letters That is and var are the same
48. he USB memory The second parameter BIkNo can be a number from zero to Maximum Block No If it is assigned as zero the command converts current logging block file If there is no current logging task the command will not make any output file and do nothing If the BIkNo parameter was assigned as a non zero positive value it specifies one of logged block file A value of 1 specifies the latest block file and 2 specifies the secondly latest block file and so on Converted file has the same name of the block file c YYMMDD HHmmSS CSV Following diagram shows the storage image of XPanel All the block files in a log model located in the same folder and this folder is named by its model name there are several models already defined these all model will have their own folders and these are located in XPanel Log Block m Block zn e wc k 5 TAGs to Log Analog and digital TAGs up to 32 TAGs can be assigned to a log model Following dialog box shows the situation of adding a new TAG in a model The Description field of the dialog box will be used as a column name of CSV file As noted before a block file can be converted to a CSV file by the command from touch operation or a script program DATA LOGG
49. he group data must have been loaded in memory by other way before this function issue RcpMemUp S1 Uploads a group of recipe data to memory from the device 51 Recipe model name This function uploads a group data in device to the memory of XPanel The uploaded group data can be processed by other functions or recipe tool window RcpCsvRd S1 S2 Reads a group of recipe data from CSV formatted file 51 Recipe model name 52 CSV file name without extension and path R3 CSV file location code 0 local 1 SD MMC 2 USB This function reads a group of data from CSV formatted file and stores them to the memory of XPanel The CSV formatted file must have information about the number of data it has This number must be located in the top most of data list and the number must be matched with the one that assigned in the recipe model setup dialog box SCRIPT 20 N e Edit Recipe Model Model Name icecream El IceCream csv Number Of Group 3 si 1 1024 Recipe Area Start Position RECIPE t Number Of Data Number of data T Handshake Word RECIPE WORD Bit Group Number _ Post Process For Uploaded Data v amp utomatically File Store On PLC Managed Upload 13 M 4 k ceCrea lt The second parameter 2 is a name of CSV file to read There is no need to specify the extension But the pa
50. ince operating the Xpanel in flammable gasses may cause an explosion Wiring To prevent an electric shock be sure to confirm that the power cord of the Xpanel is not connected to the main power before connecting any cord cables or line to the Xpanel Do not use power beyond the specified voltage range of the Xpanel Doing so may cause a fire or an electric shock Maintenance e The Xpanel uses a lithium battery to back up its internal clock data If the battery is incorrectly replaced the battery may explode To prevent this please do not replace the battery yourself When the battery needs to be replaced please contact your local Xpanel distributor INSTALLATION GUIDE 2 CAUTIONS Installation Wiring Be sure to securely connect all cable connectors to the Xpanel A loose connection may cause incorrect input or output Ground the FG line of the Xpanel separately from FG lines of other units Putting these FG lines too close may cause an electric shock or unit malfunction Be sure to use a grounding resistance of 1000 or less and a 2 or thicker wire or applicable standard of your country Correctly wire the Xpanel be sure that the rated voltage and terminal layout are within the designated range If the voltage supplied differs from the rated voltage or incorrect wiring or grounding is performed it may cause a fire or unit malfunction Use only the designated torque to tighten terminal block screw
51. ipe for multiple devices with an XPanel In an XPanel every recipe model has its own name parameters and group data Up to 1024 group data can be registered in a recipe model But at any time only one group data can be manipulated in XPanel The reason is that a group data must be located in the memory of XPanel for manipulation A group data can be transferred between four types of media And the XPanel memory is located at the center of these transfers Following picture shows paths of group data movement Device RcpMemDown 1 4 4 fla i I l Each of group data movement is issued by the internal functions for recipe operation precise explanations can be found on the script section of this manual e A group data can be imported from external memory through CSV formatted file CSV formatted file can be generated by the spreadsheet utilities such as MS Excel on PC RcpCsvRd Agroup data can be uploaded from the device through communication For normal recipe operation the communication driver must support the recipe functions This can be RECIPE 1 Ll id known from the manual of the communication driver Refer to the driver s manual RcpMemUp RcpMemDownY e The group data in memory can be stored to the recipe configuration file The stored group data will be maintained while power off And the function for reading a group data from configuration file is provided also
52. is program can be not only system included program also user programmed program Example Program SCRIPT 17 dosi RunApp Ping Exe t 100 100 100 1 Result Ping test screen will be popped up when this command or program is issued MakeCsv S1 R2 Makes a CSV formatted log file in SD memory S1 Log model name R2 Block number of designated log model Converts the designated block file to a CSV formatted file and stores it on the SD MMC memory A SD MMC memory has to be plugged before the issuing of this function A CSV file will be written in the folder XPanel of the SD MMC memory card The CSV file name is assembled with the date and time log started and it s from original block file YYMMDD HHmmSS CSV When the R2 parameter is zero this function will try to convert the current log proceeding uncompleted block file If the logging task of designated model is not running at the moment of the function call no CSV file will be created The parameter R2 can be designated up to the Maximum Block No which should have been set in the model configuration dialog box When the R2 parameter is 1 this function will try to convert the most recently log completed block file Example Program MakeCsv ModelName 1 Result A CSV file will be created from the most recently log completed block file MakeCsvUsb S1 R2 Makes a CSV formatted log file in USB memory S1 Log model name R2 Block num
53. ject files to execute Internal Start Up SD MMC Flash After the loading of project files all configured tasks are executed concurrently The task execution in an XPanel unit is performed by time sharing and multi threading with priority Graphic processing and file manipulation in XPanel are processed by time sharing But almost other tasks are executed by means of multi threading The priority based multi threading makes it possible to process real time data Communication and script are good examples for priority based multi threaded task On the other hand XPanel provides some tools for maintenance during runtime These tools can be visualized by three step touch screen operations Following picture shows these operations of touch screen After these touch operations a dialog box will be appeared on screen and you can see the following services for maintenance OVERVIEW 6 Xpanel Config spanel Program v1 22 Comm Config Misc Contig Touch Calibrate Date Time Sw Kevboard spanel Shutdown 1 System Log An XPanel logs the system activities in memory during its runtime This service makes you can see those logged messages 2 Communication Monitor Communication frames between the XPanel and devices can be visualized with this service 3 Comm Port Configuration Communication parameters can be configured by this service IP address baudrate and other parameters of communication port are listed on the
54. keyword SCRIPT 1 2 otructure of Program Declaration Part Declare internal variables and input parameters Program Part All program statements can be located here Except declarations Comments can be located on any place in a script A comment must be started by and all strings following this symbol are treated as a comment string until the end of a line 2 1 Declaration Part 1 Variable Declaration VAR variable name variable name Declare internal variables The scope of these variables restricted in a declared script The initial value of declared variable is zero If there is need to declare several variables comma can be used between each variable name This statement can be used in multiple until the beginning of program part 2 Input Parameter Declaration PARAM 1 parameter 2 parameter This declaration is needed when the program can be called by another program or command statements The order of declaration must be matched with the order of input parameters Parameters will be initialized with input parameters from caller If there is need to declare multiple parameters use comma between parameter names This statement can be used in multiple until the beginning of program part 3 Example MyPgm SCRIPT 2 sd VAR VAR PARAM p1 p2 PARAM p3 Assume that the name of above example program is MyPgm
55. ll be retained permanently in flash memory even while XPanel is powered off If this option is not checked the uploaded data will be stored only in RAM RECIPE 6 3 Recipe Operator Interface 1 Recipe Functions XPanel provides 9 functions for recipe operation Those functions can be used as command of touch operation as well as script Following table shows a list of recipe functions Please refer to the Script section for more information Function Description RcpDownload S1 R2 RcpUpload S1 R2 RcpStop S1 RcpFileStore S1 R2 RcpFileRead S1 R2 RcpMemDown S1 RcpMemUp St1 RcpCsvRd S1 S2 RcpConfig 2 Recipe Dialog Box Read a group of recipe data from file and download it to device Upload the specified recipe group data from device and store it to file Stop and terminate the processing job of specified recipe model Stores the recipe data to the file Read the recipe data from file Download the current recipe data to device Upload the recipe data from device Read the recipe data from CSV formatted file Pops up a dialog box for recipe data manipulation RcpConfig function pops up a dialog box on screen This dialog box provides some tools for manipulating recipe data in memory Each data item in a group can be modified by touch operation Following picture shows a example of recipe dialog box Sugar Water Milk Yorgure Mix Time Save Save butt
56. n group 1 GetTime R1 Get the current clock data R1 type of clock data 0 The number of seconds after 1 January 1970 UTC the number of year 1970 the number of month 1 12 the number of day 1 31 the number of hour 0 23 the number of minute 0 59 the number of second 0 59 the number of day of week 1 7 12 Sunday 2 Monday 7 Saturday the number of today s minute count 0 1439 O2midnight 2 3 4 9 6 7 9 9 the number of today s second count 0 86399 02midnight TimeStr R1 S2 Make a string of clock R1 Clock data It can be acquired by GetTime 0 function call The number of seconds after 1 January 1970 UTC 52 Format string can include following symbols Full name of weekday ex Sunday Abbreviation of weekday ex Sun Full name of month ex January 6 Abbreviation of month ex Jan date 1 31 Hour in 24 hour format 0 23 SCRIPT 16 r eee Re l Hour 12 hour format 1 12 som Month 1 12 Minute 0 59 sep A M indicator for 12 hour format A M 999 Second 0 59 Number of year without century 00 99 9eY Number of year with century ex 2006 Example Program CurTime GetTime 0 StrTag TimeStr CurTime 9e Y 9em 9ed 5 Result StrTag 2006 10 12 23 59 59 51 52 Execu
57. ndExample_04102710504 CS The name of generated CSV file has the format of trendname MMDDHHmmSS CSV This name is generated from trend name date and time The second parameter R2 indicates the storage media where the CSV file will be stored It can be one of three numbers 0 to 2 XPanel provides predefined constants for them That is following constant symbols can be used as parameter R2 instead of number meda Number Symbo CSV fie locaton o LOCAL 00 Example Program SCRIPT 22 C ON TrendCsvWr TrendExample SDMEM Result Makes a CSV formatted file on SD MMC cards The data will be taken from the TIrendExample trend data ScrCapture S1 R2 Captures current screen and makes a BMP format image file S1 Seed for making BMP file name R2 BMP file location code 0 local 1 SD MMC 2 USB This function captures current screen display and makes a BMP formatted image file The name of BMP file will be made with the seed string of S1 parameter and time File name format is seedname HHmmSS BMP The second parameter R2 indicates the storage media for generated BMP file It can be one of three numbers 0 to 2 XPanel provides predefined constants for them That 1 following constant symbols can be used as parameter R2 instead of number vesa Number Symbol BMPHielocson wean Example Program ScrCapture Mybmp SD
58. nerates one block file When a new block file is created old block files are not removed immediately from the storage until the number of total files reaches to the designated number in Maximum Block field After that the number of block files reaches to the limit the oldest file is removed from storage lZ 2 31 217 B Ia a 7 Z12 1 gt 511 D10 amp 060406 144900 CSV Set Value Current Value Control Value 2006 04 06 14 49 10029 17662 14507 2006 04 06 14 49 3302 23153 12230 2006 04 08 14 49 1334 12567 25958 2006 04 06 14 49 31842 5534 16676 2006 04 06 14 49 18817 eR PFs 40 block is given its name with the time created Naming format is YYMMDD HHmmSS LOG But a block file cannot be read with other program or tools it must be converted to well known format for further utilization For this purpose XPanel provides several conversion commands These commands can be issued by touch operation or script program They convert the block files to CSV Comma Separated Values formatted text file The CSV formatted file can be read in Microsoft Excel or other utility programs in PC MakeCsv ModelName BIkNo MakeCsvUsb ModelName BIKNo MakeCsv command converts block to CSV formatted file and stores output file in the SD MMC memory MakeCsvUsb command has the same functionality with DATA LOGGER 4 MakeCsv but only one difference is that it stores output in t
59. nitializing exp decision making exp post processing exp 4 4 SWITCH CASE Statement This statement is very useful when there are many different processing way depend on a variable or expression Each different processing way is described by CASE keyword followed by a constant value There is no limit on the number of CASE SCRIPT 8 switch A 1 describe the job to perform when the value of A is 1 Break Case 5 Case 7 describe the job to perform when the value of A is 5 or 7 Break Default describe the job to perform when A is any other value DEFAULT statements can be omitted Break CASE keyword must be followed by a constant value and terminated by a colon A TAG variable or expression cannot be used in CASE statement DEFAULT statement can be used only once in a SWITCH statement It does not need a following constant and this statement will be performed when there is no matching case DEFAULT statement can be omitted if needless BREAK keyword in CASE DEFAULT statement plays role of terminating SWITCH statement If there is no BREAK keyword in the progress of program execution until reaches the other CASE DEFAULT keyword the program will continue to execute the statements in the other CASE DEFAULT scope This feature of SWITCH statement is helpful for short and simple programming only if it is used intentionally 4 5 GOTO Statement This statement controls
60. o do when is smaller than 5 Job to do when A is larger than or equal to 5 SCRIPT 10 Lll While A 10 1 If A 5 Job to do when is smaller than 5 Continue Job to do when A is larger than or equal to 5 4 7 RETURN Keyword Every program returns a result value to caller RETURN keyword is used for designating a value to return and terminating the program Following example program processes three input parameters and returns the sum of them to caller PARAM p1 p2 p3 Return p1 p2 p3 Assuming that the name of above program is MyPgm it can be called from another program as following program line RtnValue MyPgm 1 2 3 After MyPgm call a value of 6 will be stored in RtnValue 4 8 RUNSCRIPT Keyword When a program calls another program the caller program will be stalled until when the called program terminates RUNSCRIPT keyword provides another way of invoking other program It does not make stall the caller program After invoke another program the caller program continues it s own job As a result both programs will run in parallel and this is the feature of multi threading Following example shows the multi threading feature by using RUNSCRIPT keyword It is SCRIPT 11 Ll id assuming that the name of another program is NewThread 0 RunScript NewThread Invoke another program NewThread A A 1 Continues nex
61. odel name This function terminates any job related with designated name of recipe model For example if download process is proceeding through communication when this function is issued then the communication will be stopped and terminated Be careful to use this function because there is a possibility of storing unwanted data group in file or device Use this function only when there is a unrecoverable network or device breakdown RcpFileStore S1 R2 Stores the current recipe data in memory to the file 51 Recipe model name R2 Group number This function stores a group data in memory of XPanel to the configuration file The designated recipe group must have been declared in XPanel Designer before this function call RcpFileRead S1 R2 Reads a group data from the recipe configuration file 51 Recipe model name R2 Group number This function reads a group data in the configuration file and stores them to the memory of XPanel The designated recipe group must have been configured by XPanel Designer or stored by other way before this function call RcpMemDown S1 Downloads a group of recipe data in memory to the device 51 Recipe model name This function downloads a group data in memory of XPanel to the device The group data must have been loaded in memory by other way before this function issue SCRIPT 20 r Re e 1 Uploads a group of recipe data to memory from
62. of C will be stored to A and B The value of right side of the operator Is store in left side and this value is treated as a return value of the operator The internal processing order of above example is B lt C A lt B Warning This feature of operator places bug in program sometimes That is the confusion with a comparative operator 22 Following example is illustrating this kind of bug In this example a programmer confused comparative operator with store operator But XPanelDesigner cannot detect such error The reason is the store operator has a return value and this value can be used as a logical value in if statement This bug makes unexpected flow of program and furthermore unwanted value will be stored in A If A B Compare values of A and B It is miss spelling of A B SCRIPT 6 Lll 4 Statements 4 1 IF ELSE Statement IF ELSE statement is one of the most frequently using logical decision making statement It supports nested IF statement like IF ELSE IF ELSE IF There is no limit on level of nested IF Else statement can be omitted If A 1 performed when the value of A is 1 performed when the value of A is not 1 4 2 WHILE DO WHILE Statements These statements are loop statements WHILE keyword is followed by a logical expression During the value of this expression is TRUE all statements in WHILE statement are performed repeatedly
63. on stores the recipe group data to the recipe configuration file The storage RECIPE 7 media be the internal flash memory of XPanel or other external none volatile memory device such as SD MMC It is dependent on the location of project folder which is determined on start up Upload Upload button reads the recipe data from device Current recipe data in memory will be discarded and replaced with those of device This button gives the same result with the function RcpMemUp Download Download button writes current recipe data in memory to device This button gives the same result with the function RcpMemDownY 3 CSV File Importing XPanel provides a way to import the external recipe group data External data must be a CSV formatted file and the SD MMC or USB memory can be used for importing media Following picture shows the workflow of recipe data importing CIMON E AX RcpMemDown Download RcpFileStore CSV file Device Writing a CSV file CSV formatted file can be generated by spreadsheet program of PC such as Excel A CSV file can include one group data and the first data of this file should be the number of following recipe data This number must same with the Number of Data field of recipe configuration dialog box Edit Recipe Model Model ceCream Number Of Group 3 0 1024 Recipe Area Start Position RECIPE
64. or _SDMEM 1 SD MMC memory functions or commands USBMEM __ 2 USB memory COM232 0 COM1 RS232C mode _ 422_ 1 COM1 RS422 mode COM port number See the _ 485 _ 2 1 RS485 mode serial communication functions _COMAUX 3 COM2 RS232C only BPS300 300 bps BPS600 _ 600 bps BPS1200 1200 bps BPS2400 _ 2400 bps BPS4800 _ 4800 bps BPS9600 _ 9600 bps Baudrate code See the BPS19200 _ 19200 bps OpenPort function 538400 38400 bps 556000 56000 6 BPS57600 _ 57600 bps _ 115200 115200 bps 5128000 128000 bps BPS256000 256000 bps PARITY NONE No parity PARITY EVEN Even parity Parity code See the PARITY ODD _ Odd parity OpenPort function PARITY MARK Mark parity PARITY SPACE Space parity STOPBIT ONE 1 stop bit otopbit code See the SIOPBIT TWO 2 stop bits OpenPort function 5 ONE5 1 5 stop bit SCRIPT 4 3 1 Operators for calculation The result row of following table assumes that the value of variable is and B is 4 Operator Description Example Result 1 Remainder of division and all bitwise operators are performed with 32 bits integer data 3 2 Logical Comparative Operators The result row of following table assumes that the value of variable A is 2 true and B is 0 false XPanel treats all values except zero as logical TRUE Only zero is treat
65. rn 256 0x100 Otherwise a received byte datum will be returned 0 to 255 H1 parameter specifies the COM port for receiving data and predefined symbols can be used for this parameter Please refer to the Constants section of this manual Ensure that the R1 port must have been opened by OpenPort function before calling this function Example Program VAR RxData OpenPort COMA85 BPS19200 PARITY NONE 8 STOPBIT ONE RxData ReceiveByte COMA85 1000 If RxData lt 256 Result Receives a datum from the COM1 port in RS485 mode and stores the datum in RxData variable SCRIPT 26 6 Scripts for Command and Condition In some application there is a need to use a simple script on graphic object configuration For example to assign a touch operation on an object one or several command lines must be written in case of Command Expression action type see an example configuration dialog box below And further more for making it conditional touch operation a conditional expression must be described All these conditional expression and command script have the same rules with script programming Object Config Namt Objecti24 Action Script Text Config Action Command Expression fog TAG A Conditional Expression o D V Move H Move j O toe C Cotte TAG_C 100 i PageOpen NewPage 4 Command Script 6 1
66. rogram processes three input parameters and returns the sum of them to caller PARAM p1 p2 p3 Return p1 p2 p3 Assuming that the name of above program is MyPgm it can be called from another program as following program line RtnValue MyPgm 1 2 3 After MyPgm call a value of 6 will be stored in RtnValue 4 8 RUNSCRIPT Keyword When a program calls another program the caller program will be stalled until when the called program terminates RUNSCRIPT keyword provides another way of invoking other program It does not make stall the caller program After invoke another program the caller program continues it s own job As a result both programs will run in parallel and this is the feature of multi threading Following example shows the multi threading feature by using RUNSCRIPT keyword It is SCRIPT 11 Ll id assuming that the name of another program is NewThread 0 RunScript NewThread Invoke another program NewThread A A 1 Continues next job without stalling SCRIPT 12 N DE A 5 Internal Functions 5 1 Function List e Ri R2 Real type input parameters 51 52 String type input parameters 1 Trigonometric Functions Function Description Return SR ons tni 21 21 w aV Aro Tangent est wih Real 2 Other Mathematic Functions
67. s The third one is the visualizing logged data with the trend This trending function is under the developing This function will be added on April 2006 Table View MODEL NS E Bloc DATA LOGGER 1 2 Model of Data Logger For utilizing a data logging function in the XPanel a data logging Model has to be declared in XPanel Designer A model is a group of logging configuration and more than one model can be declared in a project All declared logging models are processed concurrently and independently in an XPanel unit The condition of logging start trig size and TAGs are declared in each model The following dialog screen shot is an example of model configuration E DATA LOGGING tttsss lox Data Logging Model MyLog Start Type Base Time E Delete Time Offset Minutes Close Log Type Periadic Period Maximum Log Per Block 1440 5 Maximum Block 3e Tags Tagname Description set Value Control Current value 1 Log Task Invoking Condition XPanel provides 5 different start types Each of these is based on period command tag and time Whenever a new log task is started a new block file will be created and the old task will be stopped and closed automatically The name of a block file is automatically generated based on the started time Start Type Base ime m
68. s of the Xpanel If these screws are not tightened firmly it may cause a short circuit fire or Xpanel malfunction Be careful that the metal filings and wiring debris do not fall into the Xpanel since they can cause a fire Xpanel malfunction or incorrect operation Maintenance The LCD contains a powerful irritant and if for any reason the panel is damaged and this liquid contacts any part of your body be sure to wash that area with running water for 15 minutes If any of this liquid enters your eye flush your eye for 15 minutes with running water and contact a physician Unit Disposal e When this unit is disposed of it should be done so according to your country s regulation for similar types of industrial waste INSTALLATION GUIDE 3 General Safety Precautions Do not strike the touch panel with a hard or pointed object or press on the touch panel with too much force since it may damage the touch panel or the display Do not install the Xpanel where the ambient temperature can exceed the allowed range Doing so may cause the Xpanel to malfunction or shorten its operation life Do not restrict or limit naturally occurring rear face ventilation of the Xpanel or storing or using the Xpanel in an environment that is too hot Donotuse the Xpanel in areas where large sudden temperature changes can occur These changes can cause condensation to form inside the unit possibly causing the unit to malfunction
69. smitted Ensure that the R1 port must have been opened by OpenPort function before calling this function Example Program OpenPort 485 BPS19200 PARITY NONE 8 STOPBIT ONE j SendByte COMAS85 2 Result Transmits a byte datum 2 0x02 through the COM 1 port in RS485 mode SendString R1 S2 Transmits a string S2 through the R1 port R1 COM port number use the predefined symbol COMxxxx 52 A string to transmit The maximum length of the string is 255 characters This function transmits a string through the designated serial port R1 which has been opened by OpenPort function Predefined symbols for R1 parameter are provided please refer to the Constants section of this manual The S2 parameter must be a string or string tag Ensure that the R1 port must have been opened by OpenPort function before calling this function Example Program OpenPort 485 BPS19200 PARITY NONE 8 STOPBIT ONE SendString 485 This string will be transmitted SCRIPT 25 Lll Result Transmits a string through the COM 1 port in RS485 mode ReceiveByte R1 R2 Receives a byte datum from R1 port R1 COM port number use the predefined symbol COMxxxx R2 Timeout in milli second This function waits and receives a byte datum from designated port R1 which has been opened by OpenPort function If there is no datum until when the timeout R2 expires this function will retu
70. sv ModelName 1 Result A CSV file will be created from the most recently log completed block file MakeCsvUsb S1 R2 Makes a CSV formatted log file in USB memory S1 Log model name R2 Block number of designated log model Converts the designated block file to a CSV formatted file and stores it on the USB memory An USB memory has to be plugged before the issuing of this function A CSV file will be written in the folder XPanel of the USB memory card The CSV file name is assembled with the date and time log started and it s from original block file YYMMDD HHmmSS CSV When the R2 parameter is zero this function will try to convert the current log proceeding uncompleted block file If the logging task of designated model is not running at the moment of the function call no CSV file will be created The parameter R2 can be designated up to the Maximum Block No which should have been set in the model configuration dialog box When the R2 parameter is 1 this function will try to convert the most recently log completed block file Example Program MakeCsvUsb ModelName 1 Result A CSV file will be created from the most recently log completed block file DataLog S1 R2 Data logging start stop S1 Log model name R2 O or 1 0 STOP 1 START This function is effective only on the log model of external call start type Models with other start type such as periodic trigger tag ena
71. t Connector Pin No Name Description RDB Receive Data B GM DA SDA Send Data A ooooo RDA Receive Data A Ground RDA SDE Send Data B f you connect the Xpanel to the host an RS 485 cable 2wire you must connect SDA and SDB lines The RS 485 of the Xpanel runs under auto toggle mode reduce the risk of damaging the RS 422 circuit be sure to connect the SG terminal INSTALLATION GUIDE 9 Ld xd B COM2 RS 232C XT10A and XT12A series units have this interface This interface is used to connect the Xpanel to the host PLC via an RS 232C cable You can use pin 2 3 5 of this interface Connector Name Description RD Receive Data Transmit Data Pin No 41 Signal Ground 565 71 Bef So The serial port of the Xpanel is not isolated When the host PLC unit is also not isolated Inside the Xpanel unit the SG Signal Ground and FG Frame Ground terminals are connected to each other e When connecting an external device to the Xpanel with the SG terminal ensure that no short circuit loop is created when you setup the system INSTALLATION GUIDE 10 Ll ssi tee B Ethernet This interface complies with the IEEE802 3 for Ethernet TOBaseT 100BaseTX RJ45 Connector RJ45 Jack Direct Cable Host lt gt HUB Cable No Color Color No Cable Crossover Cable Host lt gt Host Cable No Color Color No Cable s oww
72. t job without stalling SCRIPT 12 N DE A 5 Internal Functions 5 1 Function List e Ri R2 Real type input parameters 51 52 String type input parameters 1 Trigonometric Functions Function Description Return SR ons tni 21 21 w aV Aro Tangent est wih Real 2 Other Mathematic Functions 1 Function Description Return Cacus germ rea cona Caelates the ceingotavas Toth Caelatesttefoorofavae Aos Calelates the bsoute vane Sem Bard Generates pseudorandom number Re Cakulates the paint remainder RURA 3 Special Functions Function Description Return PageOpen S1 Opens a new page named as 1 Opensanewpagenamedas S _ PageClose S1 Closes an opened page DENN Opens a new frame named as 1 FrameOpen S1 Get a string from string table String Table R1 R2 String R1 Group No R2 String No GetTime R1 Get a clock data R1 type of data Re SCRIPT 13 Lll TimeStr R1 S2 51 S2 MakeCsv S1 R2 MakeCsvUsb S1 R2 DataLog S1 R2 RcpDownload 1 R2 RcpUpload S1 R2 RcpStop S1 RcpFileStore S1 R2 RcpFileRead S1 R2 Assemble a string of time H1 clock value from GetTime 0 String S2 Format string
73. t requirements of extremely high levels of safety and reliability When using the Xpanel with transportation vehicles trains cars and ships disaster and crime prevention devices various type of safety equipment non life support related medical devices etc redundant and or failsafe system designs should be used to ensure the proper degree of reliability and safety After the backlight of the Xpanel burns out the touch panel of the Xpanel is still active If an operator does not notice that the backlight burned out and touches the panel a potentially dangerous machine miss operation can occur Therefore do not use the Xpanel graphic objects for the control of any equipment safety mechanisms such as Emergency Stop switches etc that protect humans and equipment from injury and damage If the backlight of LCD suddenly turns OFF use the following steps to determine if the backlight is actually burned out Step1 If your Xpanel is not set to Standby Mode and the screen has gone blank the backlight of LCD is burned out INSTALLATION GUIDE 1 Ld xd Step2 Or if your Xpanel is set to Standby Mode but touching the screen can not wake Xpanel up your backlight is burned out Installation e High voltage runs through the Xpanel Do not disassemble the Xpanel otherwise an electric shock can occur Do not modify the Xpanel unit since the modified Xpanel cause a fire or an electric shock Do not use the Xpanel in flammable gasses s
74. tements The order of declaration must be matched with the order of input parameters Parameters will be initialized with input parameters from caller If there is need to declare multiple parameters use comma between parameter names This statement can be used in multiple until the beginning of program part 3 Example MyPgm SCRIPT 2 ioi ip be m VAR a VAR PARAM p1 p2 PARAM p3 Assume that the name of above example program is MyPgm This program can be called by external program or command line as following statement MyPgm 1 2 3 Parameters p1 p2 p3 will be initialized to 1 2 3 each Notice that variables a b c will be initialized to zero 2 2 Program Part In program part all the programming statements can be used except variable VAR and parameter PARAM declarations Calculation storing a data in some variable function call and many other expressions can be used in a statement Following is a simple example of statements 1 Tag b MyPgm Tag a 2 3 A statement must be ended by 5 character All functions return a value to caller In the above program example the returned value will be stored in Tag b 2 3 Constants Following notation is used for each type of constant 1 Octal constant Number characters between 0 and 7 can be used It must be started by zero ex 01277 2 Decimal constant Normal notation is used ex 15 3 14
75. tents of it This file s block number is 1 The block number 0 file DATA LOGGER 7 Ll id means the block file under the logging at the moment MODEL z 11 KEY Backspace Block 0 1 01 00 12 34 01 10 13 33 01 20 12 32 01 30 12 31 Block 1 KEY Y KEY Tab Block Hk The data log object provides a method for traversing between block files to the operator The traversing is performed by keyboard inputs see the following table XPanel can accept the keyboard inputs through the USB port But also the operator can make a keyboard input by touch operation Refer to the touch action type in object configuration dialog box Key Input Backspace Tab Left Arrow Right Arrow Up Arrow Down Arrow Home Table Movement Change the current displaying block file to the one of more recent Change the current displaying block file to the one of more past Scroll the display cell to the left Scroll the display cell to the right Scroll the display cell to the up Scroll the display cell to the down Move the display cell to the first logged data of current block file DATA LOGGER 8 Hecipe 1 Overview The recipe service of XPanel supports the multiple models This makes it possible to manipulate different rec
76. tes an external application program 51 Application program name with path and extension 52 Input parameter string for the application program Executes an external application program This program can be not only system included program also user programmed program Example Program RunApp Ping Exe t 100 100 100 1 Result Ping test screen will be popped up when this command or program is issued MakeCsv S1 R2 Makes a CSV formatted log file in SD memory S1 Log model name R2 Block number of designated log model Converts the designated block file to a CSV formatted file and stores it on the SD MMC memory A SD MMC memory has to be plugged before the issuing of this function A CSV file will be written in the folder XPanel of the SD MMC memory card The CSV file name is assembled with the date and time log started and it s from original block file YYMMDD HHmmSS CSV When the R2 parameter is zero this function will try to convert the current log proceeding uncompleted block file If the logging task of designated model is not running at the moment of the function call no CSV file will be created The parameter R2 can be designated up to the Maximum Block No which should have been set in the model configuration dialog box When the R2 parameter is 1 this function SCRIPT 17 DADA will try to convert the most recently log completed block file Example Program MakeC
77. th of the CSV file location must be root folder of each storage media The third parameter R3 indicates the storage media where the CSV file was stored It can be one of three numbers 0 to 2 XPanel provides predefined constants for them That is following constant symbols can be used as parameter R3 instead of number Weda Number CSVflelocslon mera o ioon xPaneh Example Program RcpCsvRd ModelName SDMEM Result Reads a CSV formatted file named as RcpFileName CSV in SD MMC memory card and stores the data in memory of XPanel RcpConfig Pops up the recipe data manipulation tool window No Parameter This function pops up a tool window for recipe This tool window shows the current recipe data in memory And it provides some tools for editing individual datum in a group changing current group saving the current data to file and up downloading the recipe data from to the device Please refer to the Recipe section for more information SCRIPT 21 feror Iw F ol TrendCsvWr S1 R2 Makes and stores a CSV formatted file from trend S1 Trend name R2 CSV file location code 0 local 1 SD MMC 2 USB This function makes a CSV formatted file from a trend object Output CSV file can be stored in not only local flash disk but external memory card Next screen capture shows an example of output CSV file Tre
78. the device 51 Recipe model name This function uploads a group data in device to the memory of XPanel The uploaded group data can be processed by other functions or recipe tool window RcpCsvRd S1 S2 Reads a group of recipe data from CSV formatted file 51 Recipe model name 52 CSV file name without extension and path R3 CSV file location code 0 local 1 SD MMC 2 USB This function reads a group of data from CSV formatted file and stores them to the memory of XPanel The CSV formatted file must have information about the number of data it has This number must be located in the top most of data list and the number must be matched with the one that assigned in the recipe model setup dialog box Edit Recipe Model Model Narne ceL ream El IceCream csv Seles Number Of Group 3 si 1 1024 Recipe rea Start Position RECIPE Number Of Data Number of data Handshake Word RECIPE WORD Bit RECIPE HAND Group Number RECIPE GRP Post Process For Uploaded Data v Automatically File Store On PLC Managed Upload 4 k ceCrea lt gt The second parameter S2 is name of CSV file to read There is no need to specify the extension But the path of the CSV file location must be root folder of each storage media The third parameter R3 indicates the storage media where the CSV file was stored It can be one of three numbers 0 to 2 XPanel provides predefined
79. the flow of program execution directly This statement needs a matching index in a program scope Index is a unique name of a jump destination in a program scope and it is started with character SCRIPT 9 Lll JumpHere destination of jump If A lt 10 1 Goto JumpHere change the flow of program This example program processes the same job with the previous examples of FOR and WHILE statement section The name of index JumpHere in the above example can not be duplicated with variables tags and program names 4 6 CONTINUE Keyword Continue keyword is very useful in loop When a CONTINUE keyword is met in the progress of a program the flow of the program will be moved to the first statement in the loop This keyword is effective in the loop of WHILE DO WHILE and FOR statement It is especially useful when there are many decision making in the loop such as IF ELSE Following two program examples process the same job While A 10 1 If A 5 Job to do when is smaller than 5 Job to do when A is larger than or equal to 5 SCRIPT 10 Lll While A 10 1 If A 5 Job to do when is smaller than 5 Continue Job to do when A is larger than or equal to 5 4 7 RETURN Keyword Every program returns a result value to caller RETURN keyword is used for designating a value to return and terminating the program Following example p
80. to the style of the new page following result can be shown 1 A pop up style If a new page has a style of pop up current page does not affected by this new page The new page pops up over current page 2 A page for frame This kind of page has a position number in a frame For open this page the frame has to be opened in advance The old page which has the same position number in the frame will be replaced by this page automatically PageClose S1 Closes an opened page S1 page name without extension Closes an opened screen page If the page of S1 parameter was not opened the current screen will not be affected by this function FameOpen St S1 new frame name without extension Opens a new screen frame Previous page or frame will be closed automatically The default pages for frame will be opened automatically SCRIPT 15 tam Beee Re e StringTable R1 R2 Get a string data from string table R1 String group number R2 String number in a group Gets a string data from the string table The string table must have been configured by String Editor Assign the group number of a string table to the R1 and the string number of a string in that group to the R2 parameter Returned data is a string type value and it can be used for string tag variable or other function s parameter Example Program StrTag StringTable 1 14 Result StrTag A string that is defined as 14 i
81. vided into two different areas High nibble of the word is the flags for request from device for example a PLC and low nibble of word is the flags for request from XPanel e Bit Handshake The bit handshake must be declared as a digital TAG in database It is set or reset by XPanel This flag indicates that the recipe data transfer is under the progressing Therefore by this flag the device can recognize the fact that its recipe data are ready for use or not Group Number RECIPE 4 ioi This field retains the group number for upload or download And it is effective only when the recipe data transfer is issued by device PLC side The device can choose a group in XPanel configuration file which is wanted to be up downloaded The group number can be a number between 0 to 1023 Following time chart shows the status of handshake signals during recipe data transfer It is an example of up download issued by PLC side For transfer a new recipe data from XPanel to device PLC the group number should be decided foremost and written to the memory of group number And next the device signals the 6108 or bit09 flag of word handshake Immediately after detection of that signal XPanel sets the bit handshake and starts to transfer the recipe group data which is designated by the group number field After the successful transfer XPanel resets the bit handshake signal and clears the word handshake also The device can recognize the completion
Download Pdf Manuals
Related Search
Related Contents
SEGURIDAD Y PROTECCIÓN PARA EL COMBUSTIBLE DIESEL Epson EB-1970W JVC GR-DX35 User's Manual Gigaset A400 Kit photo sous-marin XZ Instrução de Uso 使用上の注意改訂のお知らせ(ヘパリンNa透析用150単位/mLシリンジ Copyright © All rights reserved.
Failed to retrieve file