{"id":3214,"date":"2026-11-17T18:38:23","date_gmt":"2026-11-17T10:38:23","guid":{"rendered":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m03-en-07\/"},"modified":"2026-11-17T18:38:23","modified_gmt":"2026-11-17T10:38:23","slug":"mplc-m03-en-07","status":"publish","type":"post","link":"https:\/\/resource.fatek.com\/index.php\/2026\/11\/17\/mplc-m03-en-07\/","title":{"rendered":"Chapter 7 Memory card function"},"content":{"rendered":"<p>M-Series PLC supports FATEK Memory Card, and the supported features may vary among series. The memory card and description are shown below:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Item<\/p>\n<\/td>\n<td>\n<p>MFM06<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>System<\/p>\n<\/td>\n<td>\n<p>FAT32<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Function<\/p>\n<\/td>\n<td>\n<p>Firmware update<\/p>\n<p>System Backup and Restoration (Register\/Program\/System Data)<\/p>\n<p>Memory Card Register Read\/Write<\/p>\n<p>Protection of Copy<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><strong>Firmware Update<\/strong><\/p>\n<p>Multiple expansion modules and CPU Unit firmware can be updated to easily complete system upgrades.<\/p>\n<p><strong>System Backup and Restoration (Register\/Program\/System Data)<\/strong><\/p>\n<p>Users can quickly copy the program during mass production through the memory card. After the designer completes the first machine tool, subsequent machines can use this function to quickly complete a large number of copy shipments.<\/p>\n<p><strong>Memory Card Register Read\/Write<\/strong><\/p>\n<p>During the execution of the Ladder program, the user backs up the register data through the special command WR-MP (161), or writes the backup data to a specific register address through the special command RD-MP (162).<\/p>\n<p><strong>Protection of Copy<\/strong><\/p>\n<p>One-to-one binding between the memory card and the CPU Unit provides a protection method for the user to misuse the memory card. If you want to unbind, you need to execute the unbind action on the original CPU Unit.<\/p>\n<h3>7-1 Writing Backup Information<\/h3>\n<p>The execution time of backing up information is when the CPU Unit is powered on, and the restriction is that it must be in STOP mode. Therefore, if the memory card written into the system backup is to be backed up on a CPU Unit computer, it must be inserted into the slot before power-on, and the DIP switch must be switched to STOP mode before power-on. Subsequent CPU Units will perform restoration operations according to the backup content of the memory card.<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\21.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-001.png\" \/><\/p>\n<p>Figure 21 Writing Backup Information<\/p>\n<h4>7-1-1 Writing Backup Information through Software                           <\/h4>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\22.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-002.png\" \/><\/p>\n<p>Figure 22 Replicating Program and Register to Memory Card<\/p>\n<ul>\n<li>Data_Data Register to be replicated<\/li>\n<\/ul>\n<p>With such option, you may replicate the program and register content to the memory card. After selecting \u201cAdd\u201d, the system will display the data register picture showing the register that has been appointed for replicating to the memory card. On such planning page, you may define the scope of register that will be read back from the memory card when turning on the PLC. If not required, you may back up the data register on the memory card and then press \u201cStart\u201d to start the replicating process.  <\/p>\n<p>\u203b The PLC allows you to replicate max. 4 lots of data registers to the memory card. You may execute the addition or deduction by clicking \u201cAdd\u201d or \u201cDelete\u201d.  <\/p>\n<p>\u203b Upon each start, the memory card will display the data register being replicated on the memory card such as the machine adjustment value or the constant application value. As a result, you may use the initial value of the data register corresponding to the RAM of the CPU module as the value being written to the memory card in order that correct operating data will be saved permanently and that the maintenance will be executed more easily. <\/p>\n<p>\u203b To copy the content of all registers to the memory card, simply click \u201cSystem backup\u201d without the need of executing the addition item by item.<\/p>\n<ul>\n<li>Replicated Data_System Backup (including PLC ID)<\/li>\n<\/ul>\n<p>If it is required to include the PLC ID in the selected system backup copy, the PLC ID and the program will be loaded by the Memory Card upon each start. Depending on the options to be replicated, the Memory Card will upload all of the register data and the contact status that will be replicated per time (selecting \u201cUpload for each start\u201d) or once (selecting \u201cUpload once when initialized\u201d). In other words, the Memory Card created by such mode can be used to replicate massive amounts of data and upload the required ID (i.e. Program ID and PLC ID) to serve as the operation protecting control program in the PLC CPU Unit without the need of setting the ID through the program editing tool. When using Program ID and PLC ID as the operation protecting control program, do not install the Memory Card created by such mode on the PLC CPU Unit; otherwise, the protection purpose will never be achieved.<\/p>\n<ul>\n<li>Replicated Data_System Backup (excluding PLC ID):<\/li>\n<\/ul>\n<p>If it is not required to include the PLC ID in the selected system backup copy, the Memory Card created by such mode will not include the replicated PLC ID. In this case, the Memory Card will upload the program upon each start. Depending on the options to be replicated, the Memory Card will upload all of the data, the register and the contact status that should be replicated per time (selecting \u201cUpload for each start\u201d) or once (selecting \u201cUpload once when initialized\u201d). When installing the Memory Card being set with Program ID for operation protecting on another PLC, the PLC ID of such PLC must be the same as the Program ID used by Memory Card so that such PLC will operate normally.<\/p>\n<p>For the system that needs the Program ID and PLC ID to achieve the operation protection, such method can be used for replicating the ID to the Memory Card in order to realize mass production and long-term maintenance purposes.<\/p>\n<h4>7-1-2 Manual Backup Production                                              <\/h4>\n<p>In order to meet the application requirements of different customers, the replication of the Memory Card can also be completed by setting the content value of the special register. The UperLogic users can skip this part because the setting is completed when the UperLogic performs the Memory Card operation option.<\/p>\n<p>Related Register of Replicating Memory Card:<\/p>\n<p>\u25cf R35480: Test-run modification mode or replicate the Memory Card command and status:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register<\/p>\n<\/td>\n<td>\n<p>Setting<\/p>\n<\/td>\n<td>\n<p>Description of Function<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>R35480<\/p>\n<\/td>\n<td>\n<p>5530H (Test-run Modification Mode)<\/p>\n<\/td>\n<td>\n<p>If the Memory Card has been programmed with a Ladder program, the Ladder program stored in the RAM of the CPU module will not be overwritten by the Ladder program of the Memory Card every time it is turned on; that is, the Ladder program of the RAM of the CPU module will remain at the last modification state (when the PLC is running or being modified, it actually executes the Ladder program in the RAM of the CPU module). After the machine is in operation, if you need to modify the program, you can use this function; after all the modification and testing are completed, replicate the Ladder program and data register to the Memory Card. In case you want to give up during the program modification process and want to restore the original state, you only need to clear R35480 to 0 and restart the computer.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Other Value<\/p>\n<\/td>\n<td>\n<p>If the Memory Card has been programmed with a Ladder program, the Ladder program on the Memory Card will overwrite the Ladder program stored in the RAM of the CPU module each time the machine is turned on, and the PLC will automatically enter the RUN mode. If a Memory Card is installed in the CPU module, after each test is completed, it is best to replicate the Ladder program and data register to the Memory Card for long-term storage and convenient maintenance.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Table 10 Function of memory card-related register_R35480<\/p>\n<p>\u25cf R35479 : Reading selection of the data register written in the Memory Card; when programming the Ladder program to the Memory Card, if there is also a plan to burn the data register (part or all) at the same time, each time the computer is turned on, The content of the data register that has been replicated to the Memory Card will be initialized to the value at the time of burning; this application will replicate the tuning parameters (stored in the data register) to the Memory Card after the test is completed. Mass production or maintenance would be of great help. However, there are many applications that only need to initialize the data register programmed into the Memory Card at the first boot, and the data register must maintain the value before shutdown when booting up later. The user can control the value of the data register R4046 to achieve the above two applications, the description is as follows: <\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register<\/p>\n<\/td>\n<td>\n<p>Setting<\/p>\n<\/td>\n<td>\n<p>Description of Function<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>R35479<\/p>\n<\/td>\n<td>\n<p>5530H<\/p>\n<\/td>\n<td>\n<p>The data registers replicated to the Memory Card will not be initialized at startup, that is, the data registers will retain the value before shutdown.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Other Value<\/p>\n<\/td>\n<td>\n<p>Every time the computer is turned on, the contents of the data registers programmed into the Memory Card will be initialized to the values \u200b\u200bat the time of replicating.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Table 11 Function of memory card-related register_R35479<\/p>\n<p>\u203b If you only need to initialize the data registers programmed into the Memory Card at the first boot, you only need to write the value of R35479 into 5530H in the Ladder program. <\/p>\n<p>\u25cf In RUN\/STOP mode, the PLC can issue the command to clear the Memory Card or replicate the Ladder + Register command:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register<\/p>\n<\/td>\n<td>\n<p>Setting<\/p>\n<\/td>\n<td>\n<p>Description of Function<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"13\">\n<p>R35480<\/p>\n<\/td>\n<td>\n<p>5550H<\/p>\n<\/td>\n<td>\n<p>Issue the Clear Memory Card Command<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5551H<\/p>\n<\/td>\n<td>\n<p>Clearing<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5552H<\/p>\n<\/td>\n<td>\n<p>Clear Comparison<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5553H<\/p>\n<\/td>\n<td>\n<p>Clear Completed<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5554H<\/p>\n<\/td>\n<td>\n<p>Clear Failed<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5560H<\/p>\n<\/td>\n<td>\n<p>Issue the Command to Replicate Ladder + Register<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5562H<\/p>\n<\/td>\n<td>\n<p>Replicating Ladder Program <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5563H<\/p>\n<\/td>\n<td>\n<p>Replicating Register<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5566H<\/p>\n<\/td>\n<td>\n<p>Comparing the Replicated Ladder Program<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5567H<\/p>\n<\/td>\n<td>\n<p>Comparing the Replicated Register<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>556AH<\/p>\n<\/td>\n<td>\n<p>Ladder + Register Replication Completed<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>556BH<\/p>\n<\/td>\n<td>\n<p>Ladder Program Replication Error<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>556CH<\/p>\n<\/td>\n<td>\n<p>Register Replication Error<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Table 12 Function of memory card-related register_R35480_2<\/p>\n<h4>7-1-3 Clearing Memory Card Data                                             <\/h4>\n<p>Such option allows the user to remove the program or the data saved on the Memory Card. Press \u201cStart\u201d and the system will start the removal action. After that, the corresponding window will pop up informing the user if the clearing action is successfully done.<\/p>\n<h4>7-1-4 Entering Test-run Modification Mode                                    <\/h4>\n<p>Such option allows the user to select whether to enter the Test-run Modification Mode (i.e. whether allowing the program and the data on the Memory Card to override that saved on the CPU Unit). Press \u201cStart\u201d and you may enter the Test-run Modification Mode (without overriding the data on the CPU Unit).<\/p>\n<p>\u203b When installing the Memory Card, if you do not know whether the project has been replicated to the Memory Card or whether the replicated project is the required target, you should set the PLC to Test-Run Modification Mode and then install the Memory Card for the sake of safety. In this way, you may prevent the program in the PLC from being overridden.<\/p>\n<h4>7-1-5 Entering Normal Mode option                                          <\/h4>\n<p>Press \u201cStart\u201d to complete the normal mode setting. <\/p>\n<p>\u203b If the project and the data register have been replicated to the Memory Card R35480 and if the value is not equivalent to 5530H, then the project on the Memory Card will override that in the RAM upon each start. If the R35479 value of the data register being replicated to the Memory Card is not equivalent to 5530H, then the system will select the register that will be read by the Memory Card according to the selection made during the user\u2019s replication and then initialize the data register corresponding to the RAM in the CPU Module to the value being replicated to the Memory Card. In the meantime, the PLC will enter RUN Mode automatically.<\/p>\n<h3>7-2  Writing Firmware Information<\/h3>\n<p>In addition to using the software UperLogic to update the firmware of the CPU Unit and expansion modules, the Memory Card also supports firmware updates. Product upgrades or accidental repairs are made according to different scenarios.<\/p>\n<p>The Memory Card can be programmed for the following functions:<\/p>\n<p><strong>CPU Unit firmware update<\/strong><\/p>\n<p>It is used to update the current CPU Unit firmware of the same or above version. After power on, wait until the Run light is on, and insert the Memory Card to update.<\/p>\n<p><strong>CPU Unit Firmware Rescue<\/strong><\/p>\n<p>To prevent unexpected situations, it can be used to rescue and update the current CPU Unit, insert the Memory Card in STOP mode before powering on and power on to update.<\/p>\n<p><strong>Expansion Module Firmware Update<\/strong><\/p>\n<p>It is used to update the firmware of one or more expansion modules of the same or higher version. The same module models will be updated synchronously. After powering on and waiting for the Run light to light up, insert a memory card to update.<\/p>\n<p><strong>Expansion Module Firmware Rescue<\/strong><\/p>\n<p>To prevent unexpected situations, it can be used to rescue and update an expansion module that enters the rescue mode. After powering on and waiting for the Run light to light up, insert the Memory Card to update.<\/p>\n<p>Select the type of settings to be made, and select the firmware file of the corresponding device. After selection, the firmware file information selected by the user will be displayed below. When creating the firmware updating or the Rescue Card, the CPU can be used together with the Expansion Module; however, the firmware rescue car and the firmware updating are incompatible with each other.<\/p>\n<p>\t<img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\23.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-003.png\" \/><\/p>\n<p>Figure 23 Firmware update or rescue<\/p>\n<p>For details on how to update the firmware through the Memory Card, please refer to Section 14-2.<\/p>\n<p>\u203bIf the firmware version of the expansion module is changed using the Memory Card, it needs to be disconnected from the software, and then reconnected to UperLogic before the display will be updated.<\/p>\n<h3>7-3  Switching Copy Protection<\/h3>\n<p>The copy protection function provides a protection mechanism that allows users to prevent the memory card from being misused in an unintended CPU Unit device. The memory card with copy protection turned on will be bound to the current CPU Unit, and the bound memory card will not be able to be used on other CPU Unit devices. If you want to cancel the copy protection, you need to cancel the protection on the bound CPU Unit.<\/p>\n<p>Enable or disable the card and the CPU Unit serial number binding function:<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\24.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-004.png\" \/><\/p>\n<p>Figure 24 Enable or disable CPU Unit binding<\/p>\n<p>After selecting, it will bind the serial number of the card and the current CPU Unit. After pressing \u201cNo\u201d, the system will unlock the binding function. <\/p>\n<h3>7-4  Memory Card Information<\/h3>\n<p>After clicking, you may check the message of the card currently selected:<\/p>\n<p><img decoding=\"async\" alt=\"D:\\patrick\\\u8aaa\u660e\u66f8\u7ffb\u8b6f_\u529f\u80fd\u7bc7\\\u5716\\25.PNG\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-005.png\" \/><\/p>\n<p><strong>Capacity<\/strong><\/p>\n<p>Total capacity of the memory card.<\/p>\n<p><strong>Available Capacity<\/strong><\/p>\n<p>The available capacity of the memory card will be calculated after the execution of the first command, and will be ended calculating when the CPU Unit is in operation.<\/p>\n<p><strong>Backup Model<\/strong><\/p>\n<p>Information about the version of the CPU Unit used to create the memory card content.<\/p>\n<p><strong>Copy Protection<\/strong><\/p>\n<p>Enable or disable copy protection.<\/p>\n<p><strong>System Backup<\/strong><\/p>\n<p>CPU Unit -related information of system backup.<\/p>\n<p><strong>Update\/Rescue Firmware Version<\/strong><\/p>\n<p>Display the updated firmware object and version information contained in the memory card content.<\/p>\n<h3>7-5  Reading the Data Register Being Replicated to Memory Card<\/h3>\n<p>\u25cfBased on the setting of R35479, the data register replicated to the Memory Card (such as the adjusted value or the fixed application value) shall be read by the Memory Card according to the value of R35479 upon each start. After that, the data register being saved in the RAM of the CPU Module shall be initialized to the value of the Memory Card at that time in order that correct operating data will be maintained.<\/p>\n<p>\u25cf R35469\u2013R35478 are used to read the data register being replicated to the Memory Card. Before replicating the Ladder program and the Register to the Memory Card, it is required to set the value of R35469\u2013R35478 and then replicate these values to the Memory Card. When starting the machine each time, the system will execute the following actions according to R35469\u2013RS35478 being replicated to the Memory Card.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Register<\/p>\n<\/td>\n<td>\n<p>Setting <\/p>\n<\/td>\n<td>\n<p>Description of Function<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">\n<p>R35469<\/p>\n<\/td>\n<td>\n<p>A66AH<\/p>\n<\/td>\n<td>\n<p>When starting the machine each time, you may read the data register being replicated to the Memory Card according to the instructions provided in the table below (such function shall be available for the shutdown holding-type register).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Other value<\/p>\n<\/td>\n<td>\n<p>The aforesaid function shall not be available when R35479 value equals to 5530H. If it is not required to run such function upon each start, you should set R35469 as \u201c0\u201d.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35470<\/p>\n<\/td>\n<td>\n<p>1\u20134<\/p>\n<\/td>\n<td>\n<p>The lot count of the data register (4 lots at most) retrieved from the Memory Card.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35471<\/p>\n<\/td>\n<td>\n<p>Length 0<\/p>\n<\/td>\n<td>\n<p>Reading the data length of Lot #1 registers from Memory Card: <br \/>The data length scope of R0\u2013R3839 registers being read shall be 1\u20133840. <br \/>The data length scope of R5000\u2013R8071 registers being read shall be 1\u20133072.<br \/>The data length scope of D0\u2013D4095 registers being read shall be 1\u20134096. <br \/>The data length scope of R4000\u2013R4165 special registers being read shall be 1\u2013166. <br \/>If the data length is 7FF7H, it means such data will be used as the system backup (including PLC ID and station number). It will be ignored by the system if the data length is incorrect (data length or \u201cdata length + initial address\u201d is not covered in the aforesaid scope).<br \/>* If the data length is correct, then the registers being replicated to the MEMORY_PACK shall start from R35472, with R35471 representing the length, in order to read back the corresponding registers being saved in the CPU.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35472<\/p>\n<\/td>\n<td>\n<p>Start 0<\/p>\n<\/td>\n<td>\n<p>Reading the initial address of Lot #1 registers from Memory Card:<br \/>The scope of initial address to be read for R0\u2013R3839 registers shall be 0\u20133839.<\/p>\n<p>The scope of initial address to be read for R5000\u2013R8071 registers shall be 5000\u20138071.<br \/>The scope of initial address to be read for D0\u2013D4095 registers shall be 10000\u201314095.<br \/>(i.e. it is required to add 10000 for the initial address of Dxxxx registers that should be read).<br \/>The scope of initial address to be read for R4000\u2013D4165 registers shall be 4000\u20134165, and R35472 shall be used together with R35471.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35473<\/p>\n<\/td>\n<td>\n<p>Length 1<\/p>\n<\/td>\n<td>\n<p>Reading the data length of Lot #2 registers from Memory Card:<\/p>\n<p>The scope of data length shall be the same as R35471.<br \/>Incorrect data length will be ignored by the system.<br \/>* If the data length is correct, then the registers being replicated to the Memory Card shall start from R35474, with R35473 representing the length, in order to read back the corresponding registers being saved in the CPU.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35474<\/p>\n<\/td>\n<td>\n<p>Start 1<\/p>\n<\/td>\n<td>\n<p>Reading the initial address of Lot #2 registers from Memory Card:<br \/>The scope of initial address shall be the same as R35472.<br \/>R35474 shall be used together with R35473.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35475<\/p>\n<\/td>\n<td>\n<p>Length 2<\/p>\n<\/td>\n<td>\n<p>Reading the data length of Lot #3 registers from Memory Card:<br \/>The scope of data length shall be the same as R35471.<br \/>Incorrect data length will be ignored by the system.<br \/>* If the data length is correct, then the registers being replicated to the Memory Card shall start from R35476, with R35475 representing the length, in order to read back the corresponding registers being saved in the CPU.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35476<\/p>\n<\/td>\n<td>\n<p>Start 2<\/p>\n<\/td>\n<td>\n<p>Reading the initial address of Lot #3 registers from Memory Card:<br \/>The scope of initial address shall be the same as R35472.<br \/>R35472 shall be used together with R35475.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35477<\/p>\n<\/td>\n<td>\n<p>Length 3<\/p>\n<\/td>\n<td>\n<p>Reading the data length of Lot #4 registers from Memory Card:<br \/>The scope of data length shall be the same as R35471.<br \/>Incorrect data length will be ignored by the system.<br \/>* If the data length is correct, then the registers being replicated to the Memory Card shall start from R35478, with R35477 representing the length, in order to read back the corresponding registers being saved in the CPU.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R35478<\/p>\n<\/td>\n<td>\n<p>Start 3<\/p>\n<\/td>\n<td>\n<p>Reading the initial address of Lot #4 registers from Memory Card:<\/p>\n<p>The scope of initial address shall be the same as R35472.<br \/>R35478 shall be used together with R35477.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>Table 13 Memory Card Replication Related Register Function<\/p>\n<h3>7-6  Reading and Writing Memory Card through Function Instruction<\/h3>\n<p>To meet the applications required by different Clients, apart from using the software and the register to read and write the Memory Card, it also allows the user to read and write the commands (FUN161, FUN162) with Memory Card on the Ladder in order to read or write the data in the Memory Card flexibly. Provided below is the description and the application example of FUN161 and FUN162 commands.<\/p>\n<p>FUN161 commands example:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Write Data Record into the MEMORY_PACK<\/p>\n<p>\uff08Write memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-006.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>S\uff1aStarting address of the source data<\/p>\n<p>BK\uff1aBlock number of  the MEMORY_PACK\uff0c0\uff5e1<\/p>\n<p>Os\uff1aOffset of the block<\/p>\n<p>Pr\uff1aAddress of the pointer<\/p>\n<p>L\uff1aQuantity of writing\uff0c1\uff5e128<\/p>\n<p>WR\uff1aStarting address of working registers, it takes 2 registers <\/p>\n<p>S may combine with V\u3001Z\u3001P0\uff5eP9 for indirect addressing application.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<td>\n<p>XR<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>|<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>V, Z<\/p>\n<p>P0 ~ P9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bk<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td>\n<p>0-1<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Os<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-32510<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1-128<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>WR<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<td>\n<p>Write Data Record into the MEMORY_PACK<\/p>\n<p>\uff08Write memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>The main purpose of the MEMORY_PACK of M-Series PLC is used for long term storing of the user&#8217;s ladder program, except this, through this instruction, the MEMORY_PACK can be worked as the portable MEMORY_PACK for machine working parameters&#8217;s saving and loading. When execution control\u301dEN\u301echanges from 0\u21921, it will perform the data writing, where S is the starting address of the source data, BK is the block number of the MEMORY_PACK to store this writing, Os is the offset of specified block, Pr is the pointer to point to corresponding data area, L is the quantity of this writing. The access of MEMORY_PACK manipulation adopts the concept of RECORD data structure to implement with. The working diagram as shown below :<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-007.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-008.png\" \/><\/p>\n<ul>\n<li>When input &quot;INC&quot; = 1, the content of the pointer will be increased by one after the execution of writing, it points to next record.<\/li>\n<li>If the value of L is equal to 0 or greater than 128, or the pointed data area over the range, the output &quot;ERR&quot; will be 1, it will not perform the writing operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<td>\n<p>Write Data Record into the MEMORY_PACK<\/p>\n<p>\uff08Write memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<ul>\n<li>It needs couple of PLC solving scans for data writing and verification; during the execution, the output &quot;ACT&quot; will be 1; when completing the execution and verification without the error, the output &quot;DN&quot; will be 1; when completing the execution and verification with the error, the output &quot;ERR&quot; will be 1.<\/li>\n<li>M-Series PLC MEMORY_PACK can be configured to store the user&#8217;s ladder program or machine&#8217;s working parameters, or both. The ladder program can be stored into the block 0 only, but the machine&#8217;s working parameters can be stored into block 0 or 1; the memory capacity of each block has 32K Word in total.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Writing the record into block 1 with the different length<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-009.png\" \/><\/p>\n<\/td>\n<td>\n<p>WriteSDMem( EN:= M0, INC:= M1, S:= R0, Bk:= 1, Os:= 0, Pr:= D1, L:= 20, WR:= R2900, ACT=&gt; M100, ERR=&gt; M101, DN=&gt; M102);<\/p>\n<p>WriteSDMem( EN:= M2, INC:= M3, S:= R100, Bk:= 1, Os:= 10000, Pr:= D2, L:= 50, WR:= R2910, ACT=&gt; M103, ERR=&gt; M104, DN=&gt; M105);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<td>\n<p>Write Data Record into the MEMORY_PACK<\/p>\n<p>\uff08Write memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN161P<\/p>\n<p>WR-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-010.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>FUN162 commands example:<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Read Data Record from the MEMORY_PACK<\/p>\n<p>\uff08Read memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Symbol<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-011.png\" \/><\/p>\n<\/td>\n<td colspan=\"2\">\n<p>BK\uff1aBlock number of the MEMORY_PACK\uff0c0\uff5e1<\/p>\n<p>Os\uff1aOffset of the block<\/p>\n<p>Pr\uff1aAddress of the pointer<\/p>\n<p>L\uff1aQuantity of reading\uff0c1\uff5e128<\/p>\n<p>D\uff1aStarting address to store the reading record<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td rowspan=\"2\">\n<p>Range<\/p>\n<p>Operand<\/p>\n<\/td>\n<td>\n<p>HR<\/p>\n<\/td>\n<td>\n<p>ROR<\/p>\n<\/td>\n<td>\n<p>DR<\/p>\n<\/td>\n<td>\n<p>K<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>R0<\/p>\n<p>\u2223<\/p>\n<p>R34767<\/p>\n<\/td>\n<td>\n<p>R43224<\/p>\n<p>\u2223<\/p>\n<p>R47319<\/p>\n<\/td>\n<td>\n<p>D0<\/p>\n<p>|<\/p>\n<p>D7999<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Bk<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Os<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Pr<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>0-32510<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>L<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>1-128<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>D<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td>\n<p>\u25cb*<\/p>\n<\/td>\n<td>\n<p>\u25cb<\/p>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td colspan=\"3\"><\/td>\n<\/tr>\n<tr>\n<td colspan=\"4\">\n<ul>\n<li>If the MEMORY_PACK of the M-Series PLC has stored the data record written by the FUN161 instruction, they can be read out for machine&#8217;s working through this instruction, it will reduce the tuning time for machine operation.<\/li>\n<li>When execution control &quot;EN&quot; = 1 or from 0\u21921( P instruction), it will perform the data reading, where BK is the block number of the MEMORY_PACK storing the record, Os is the offset of specified block, Pr is the pointer to point to corresponding data area, L is the quantity of this record, and D is the starting address to stor this reading of record. The access of MEMORY_PACK manipulation adopts the concept of RECORD data structure to implement with.<\/li>\n<\/ul>\n<p>The working diagram as shown below :<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<td>\n<p>Read Data Record from the MEMORY_PACK<\/p>\n<p>\uff08Read memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-012.png\" \/><strong>    <\/strong><\/p>\n<ul>\n<li>When input &quot;INC&quot;=1, the content of the pointer will be increased by one after the execution of reading, it points to next record.<\/li>\n<li>If the value of L is equal to 0 or greater than 128, or the pointed data area over the range, the output &quot;ERR&quot; will be 1, it will not perform the reading operation.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<td>\n<p>Read Data Record from the MEMORY_PACK<\/p>\n<p>\uff08Read memory pack\uff09<\/p>\n<\/td>\n<td>\n<p>FUN162 P<\/p>\n<p>RD-MP<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Example<\/p>\n<\/td>\n<td colspan=\"2\">\n<p>Reading the record from block 1 with the different length<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">\n<p>\u203b It is necessary that correct data in MEMORY_PACK or this example can\u2019t execute correctly.<\/p>\n<div class=\"fatek-tw\">\n<table>\n<tr>\n<td>\n<p>Ladder diagram<\/p>\n<\/td>\n<td>\n<p>ST<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-013.png\" \/><\/p>\n<\/td>\n<td>\n<p>ReadSDMem( EN:=M10, <\/p>\n<p>           INC:= M11, <\/p>\n<p>           Bk:= 1, <\/p>\n<p>           Os:=0, <\/p>\n<p>           Pr:= D10, <\/p>\n<p>           L:= 20, <\/p>\n<p>           D:= R0, <\/p>\n<p>           ERR=&gt; M110);<\/p>\n<p>ReadSDMem( EN:=M12, <\/p>\n<p>           INC:= M13, <\/p>\n<p>           Bk:= 1, <\/p>\n<p>           Os:= 10000, <\/p>\n<p>           Pr:= D11, <\/p>\n<p>           L:= 50, <\/p>\n<p>           D:= R100, <\/p>\n<p>           ERR=&gt; M111);<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/resource.fatek.com\/wp-content\/uploads\/fatek\/mplc-m03-en-07\/mplc-m03-en-07-014.png\" \/><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>M-Series PLC supports FATEK Memory Card, and the suppor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47],"tags":[],"class_list":["post-3214","post","type-post","status-publish","format-standard","hentry","category-en-mplc-m03"],"_links":{"self":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/comments?post=3214"}],"version-history":[{"count":0,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/posts\/3214\/revisions"}],"wp:attachment":[{"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/media?parent=3214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/categories?post=3214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resource.fatek.com\/index.php\/wp-json\/wp\/v2\/tags?post=3214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}