en:strumenti:qmoveplus:j1p20:mimj1p20fx_base

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:strumenti:qmoveplus:j1p20:mimj1p20fx_base [2016/10/13 17:15] qem211en:strumenti:qmoveplus:j1p20:mimj1p20fx_base [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 396: Line 396:
 <pagebreak> <pagebreak>
  
-====== System functions ======+/*-------------------------------------------------- Generalità di funzionamento ------------------------*/
  
-{{page>en:lib:mdl:mdl-f-funzsis-010}}+====== Operating Overview ====== 
 +===== Foreword ===== 
 +This chapter covers aspects and descriptions of the product functionalities that are often related to the firmware, which enable the functionalities that enable its operation as a QEM Qmove+ programmable system.
  
-===== - System Functions list =====+===== - Data and memories organisation ===== 
 +{{page>en:lib:mdl:mdl-f-orgdatmem-010}} 
 + 
 +===== - CPU Status ===== 
 +{{page>en:lib:mdl:mdl-f-scintr-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-scboot-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-scautodiagn-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-scsysboot-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-scfunsis-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-screset-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-scready-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-scrun-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-scstop-010}} 
 + 
 +===== - System Functions ===== 
 +{{page>en:lib:mdl:mdl-f-fselenco-011}} 
 + 
 +==== Access to the System Functions ==== 
 +{{template>en:lib:tpl:tpl-f-fsproced-010|key=F2|page=2}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsmsgerr-010}} 
 + 
 +==== Description ==== 
 +{{page>en:lib:mdl:mdl-f-fsreschk-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsmctona-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsnatomc-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsappdel-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsappupl-010}} 
 + 
 +=== System Settings === 
 +{{template>en:lib:tpl:tpl-f-fssysset-010|key=F2|page=2}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsdatomc-010}} 
 + 
 +=== Set NEW Password === 
 +{{template>en:lib:tpl:tpl-f-fssetpsw-010|page=2}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsremnan-010}} 
 + 
 +=== Show NAND Flash files === 
 +{{template>en:lib:tpl:tpl-f-fsshonan-010|key=F2|key_vis=F2}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fstouch-011}} 
 + 
 +=== Set Ethernet communic. parameter === 
 +{{template>en:lib:tpl:tpl-f-fsseteth-010|key=F2|page=2}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsbacnan-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsrstnan-010}} 
 + 
 +{{page>en:lib:mdl:mdl-f-fsbacres-010}} 
 + 
 +===== - Information of programming ===== 
 +This chapter outlines all product information that is necessary for programming, in other words during the development of a QCL application. 
 + 
 +==== Development Environments ==== 
 +{{template>en:lib:tpl:tpl-s-ipambsvi-010|hw_slots=3|can_ini=4|can_max=32}} 
 + 
 +A typical BUS declaration to use in the BUS section of the configuration unit: 
 +<code QCL> 
 +BUS 
 +   1 1P20F 10 
 +   2 1MD1F . 
 +</code> 
 +The firmware version must naturally correspond and the specialist card name at slot 3 must be correct. See the right chapter. 
 + 
 +==== Used memories ==== 
 +{{template>en:lib:tpl:tpl-s-ipmemuti-010|mem_qcl=512KB|mem_hmi=1.5MB|mem_dat=400KB}} 
 + 
 +==== Communication ports ==== 
 +{{template>en:lib:tpl:tpl-s-ipcom-010|ports=AUX1 e AUX2|dip=6|page=2}} 
 + 
 +==== Firmware's error message ==== 
 +{{template>en:lib:tpl:tpl-s-ipfirerr-010|slot=3}} 
 + 
 +{{page>en:lib:mdl:mdl-s-ipvarsis-010}} 
 + 
 +==== - The devices ==== 
 +The term device identifies a category of software devices designed to perform more or less complex support and control actions, to solve problems tied to the automation of systems. There are two types of device: internal and external. Internal devices have their codes residing and performed by the firmware of the actual product. External devices have the code residing and executed in the “intelligent” specialist cards that have their own calculation capability. The controller can only manage internal type devices . The list of devices implemented in the firmware depends on the firmware **version**. This paragraph is designed to illustrate the list and characteristics of the devices available. 
 + 
 +Firmware version **10** implements the following devices: 
 +^Device name^Sampling time\\ minimum (msec)^Sampling time\\ maximum (msec)^Execution time (%)^ 
 +|[[en:software:devices:ANINP]]|1|250|14,25| 
 +|[[en:software:devices:CALENDAR]]|-|-|0| 
 +|[[en:software:devices:CANOPEN]]|1|250|100| 
 +|[[en:software:devices:COUNTER3]]|1|250|5,94|firmware's error message 
 +|[[en:software:devices:DAC]]|-|-|0| 
 +|[[en:software:devices:DATASTORE]]|1|20|90,5| 
 +|[[en:software:devices:FREQ]]|1|250|4,75| 
 +|[[en:software:devices:MMIQ2]]|1|10|90,5| 
 +|[[en:software:devices:MODBUS]]|1|250|32,07| 
 +|[[en:software:devices:QMOS]]|-|-|0| 
 +|[[en:software:devices:RECDATA]]|1|250|5,34| 
 +|[[en:software:devices:SERCOM]]|1|250|9,26| 
 + 
 +Firmware version **20** implements the following extra devices: 
 +^Device name^Sampling time\\ minimum (msec)^Sampling time\\ maximum (msec)^Execution time (%)^ 
 +|[[en:software:devices:ANPOS2]]|1|250|8,31| 
 +|[[en:software:devices:EANPOS]]|1|250|55,94| 
 +|[[en:software:devices:HEAD2]]|1|250|23,75| 
 +|[[en:software:devices:OOPOS3]]|1|250|27,91| 
 + 
 +Firmware version **30** also implements the following devices: 
 +^Device name^Sampling time\\ minimum (msec)^Sampling time\\ maximum (msec)^Execution time (%)^ 
 +|[[en:software:devices:CAMMING3]]|1|250|55,94| 
 +|[[en:software:devices:INTERP]]|1|250|35,63| 
 +|[[en:software:devices:JOINT]][(The effective sampling time is double the actual setting)]|1|250|95,01| 
 +~~REFNOTES~~ 
 + 
 +===Details of devices=== 
 +This section describes additional information about the devices. This information will complement and complete the device of user manual available in the QEM site. Information related to the device in this particular product. 
 + 
 +==CANOPEN== 
 +If the device declaration  [[en:Software:devices:CANOPEN]] indicates the zero speed, then it can be set by SW1 dip's 5 and 7.  
 +The first slot to address resources that reside in Canopen modules is 4. 
 + 
 +==DATASTORE== 
 +The files processed by the device [[en:Software:devices:DATASTORE]] are all contained in the /DS directoty. If this directory does not exist, it is created automatically.  
 +The device [[en:Software:devices:DATASTORE]] can operate both with the MMC/SD card and with the internal NAND memory (not removable). To define which mass memory to operate the priority paramenter is used (0=MMC/SD, 1=NAND). 
 +If the application has to access the two supported devices frequently and the physical removal of the MMC/SD card is not required, a special setup can be used for the priority parameter that avoids having to continuously run the memory MOUNT UMOUNT. In pratice, when wanting to change memory, before running the UMOUNT command, set "priority = -1". This avoids the UMOUNT phase is avoided in the device, making the next MOUNT command to the memory very fast. 
 + 
 +An example of QCL code to change device:  
 + 
 +<code QCL> 
 +SUB SETMMC 
 +  WAIT NOT data.st_busy 
 +  IF data.st_mount 
 +    data.priority = -1 
 +    data.UMOUNT 
 +    WAIT NOT data.st_mount 
 +    CALL CHECK_ERR_WRN 
 +  ENDIF 
 +  data.priority = 0 
 +  data.MOUNT 
 +  WAIT data.st_mount 
 +ENDSUB 
 +   
 +SUB SETNAND 
 +  WAIT NOT data.st_busy 
 +  IF data.st_mount 
 +    data.priority = -1 
 +    data.UMOUNT 
 +    WAIT NOT data.st_mount 
 +    CALL CHECK_ERR_WRN 
 +  ENDIF 
 +  data.priority = 1 
 +  data.MOUNT 
 +  WAIT data.st_mount 
 +  CALL CHECK_ERR_WRN 
 +ENDSUB 
 +</code> 
 + 
 +There is a particular setting of the parameters that allows to check the existence of a file in the device. Use the "filenum" parameter set to -1 and with the OPENFILE command the device, instead of opening the file, it searches for the first file in the "/DS/" directory of the selected memory. When it is found, the file name is set by the device in the parameter "filenum" (and its type in the parameter "filetype"). Setting -1 in "filenum" again and running the OPENFILE command, the next file name is found and so on. Every time an OPENFILE operation is run with filenum different to -1, the search loog is closed. When the search has ended and there are no more files present, then the device will set as answer to the command OPENFILE "filenum = -2". The execution of the command is signalled by the flag st_busy = 0.  
 +If the file extension is not HEX or CSV, the file is ignored by the search. If the file name is not compatible with those managed by [[en:Software:devices:DATASTORE]] (numbers 0 to 9999999) then "filenum" will remain set to -1 and a warning is given. 
 + 
 +The "disk size" and "diskfree" parameters are represented in KB. 
 + 
 +==RECDATA== 
 +The device can memorise up to 10000 step. 
 + 
 +==QMOS== 
 +The parameter "frwuvalue01" contains the number value of the product serial number. 
 + 
 +==FREQ== 
 +To define the input associated to the device [[en:Software:devices:FREQ]] use the number field provided in the device declaration. The availability of frequency inputs has to be checked with the hardware version of the product. To ricavare the relation between number and terminal pin, use the information  contained in the "Address" column given in the terminal tables.  
 + 
 +==CAMMING3== 
 +The parameters related to the sectors  (CodeQm, CodeQs…) are not retentive. On startup they always take on the value 0. 
 + 
 +<pagebreak>
  
-{{page>en:lib:mdl:mdl-f-fselenco-010}} 
  
 ====== - Accessories available ====== ====== - Accessories available ======
  • Last modified: 2019/08/29 17:01