The text of a manual · part 7 of 15
SYSMAC C200H-IDS01-V1/IDS21 ID Sensor Operation Manual: SECTION 2 Operation, pages 46 to 53
Pages 46 to 53 of 114, from SYSMAC C200H-IDS01-V1/IDS21 ID Sensor Operation Manual
The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Omron C200H-IDS01-V1
Page 46
The User Program
Section 2-3 2:
Write protection (no)
End address available range: 00, 01 to 7F Addresses between 80 to FD cannot be the end address. If the end address is set to 00, addresses 01 to FD will be write-protected. Addresses FE and FF are reserved for the system and the user cannot use these addresses. Write Protection Example (DC with 254-byte Memory) 1,2,3...
1. In the following example, addresses 0001 to 0012 are write-protected. Address
Bit 7
0000
1
6 0
5 0
4 1
3
2
0
9
0
1 1
0 0
2 Address
0000 0001
Write protected zone 0012
00FD
2. If the end address is 00, all areas except address 0000 will be write-protected. In the following example, the end address is set to 00. Address
Bit 7
0000
1
6 0
8
5 0
4 0
3
2
0
0
1 0
0 0
0
Address 0000 0001
Write protected zone
00FD
How to Cancel Write Protection
To cancel write protection, set the leftmost bit of address 0000 to 0. When write protection is cancelled, the data in address 0000 will be null and void. Note a) Address 0000 is never write-protected. b) Write protection is effective from address 0001 through the succeeding addresses. This means that the user must write any data
31
Page 47
The User Program
Section 2-3 to be write-protected to address 0001 and the succeeding addresses.
2-3-4
Write Protection Examples Data written to the Data Carrier can be write-protected. First, write the data to the desired area of the Data Carrier’s memory by using Write, then write-protect the area using the procedures described in this section. Addresses 0002 through 0005 of the Data Carrier’s memory are used to enable and clear the write protect function. Set these addresses as follows: Bit
7
6
5
4
3
Address 0002
Write 3 protect X16
X162
Address 0003
X161
X160
Address 0004
X163
X162
Address 0005
X161
X160
Bit 7 of address 0002
2
1
0 Write protect beginning address Setting range: 0006 through 07FF Write protect end address Setting range: 0006 through FFFF When 0800 is set to FFFF; 07FF is assumed.
1
Enables write protect function
0
Clears write protect function
To clear the write protect function, turn OFF all address bits from 0002 through 0005. Example 1: Clearing Write Protection
To disable or clear write protection, turn OFF address bits 0002 through 0007. If the only 0 bit is the 7th bit of address 0002, the write protect function is ignored. Bit Address 0002
Address 0003
Address 0004
Address 0005
32
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 0
0
0 0
0
0
0
0 0
0
0 0
0
0
0
0 0
0
0 0
0
0
0
0 0
Page 48
The User Program
Section 2-3
Example 2: Write-protecting Addresses 0015 through 0120 Setting Bit Address 0002
7
6
5
4
3
2
1
0
1
0
0
0
0
0
0
0
0
1
0
1
0
0
0
8 Address 0003
Address 0004
Address 0005
0
0
0
1
0
1 5
1 0
0
0
0
0
0 1
0 0
0
1 2
0
0
0 0
Result Data Carrier's memory 0000 0006 0015 Write-protected area 0120 Data can be written to addresses 0006 through 0014, and 0121 through 07FF. 07FF
33
Page 49
The User Program
Section 2-3
Example 3: Write-protecting Addresses 0700 through 0350 Setting Bit Address 0002
Address 0003
Address 0004
Address 0005
7
6
5
4
3
2
1
0
1
0
0
0
0
1
1
1
0
0
1
1
0
0
8 0
0
7 0
0
0
0
0 0
0
0 0
0
0
0
0 0
1
3 0
1
0
0
5
0
Result 0000 0006 Write-protected area 0350
0700 Write-protected area 07FF Addresses 0006 through 0350 and 0700 through 07FF are write-protected. Data can be written to addresses 0351 through 06FF.
34
Page 50
The User Program
Section 2-3
Example 4: Write-protecting Address 02BE Only Setting Bit Address 0002
Address 0003
Address 0004
Address 0005
7
6
1
0
5
4
3
2
0
0
0
0
8 1
0
1
0
1
1
1
0
0
1
0
1
0
1
0
1
0
E 0
0
0
0 1
0
2
B 0
1
2 1
1
1
1 E
B
Result 0000 0006
02BE
07FF
Write-protected area
Only address 02BE is write-protected.
35
Page 51
The User Program
Section 2-3
Example 5: Write-protecting Addresses 0600 through 07FF Setting Bit Address 0002
Address 0003
Address 0004
Address 0005
7
6
5
4
3
2
1
0
1
0
0
0
0
1
1
0
0
0
1
1
1
1
8 0
0
6 0
0
0
0
0 1
1
0 1
1
1
1
F 1
1
F 1
1
1
F
1 F
Result 0000 0006 Write-protected area
0600
07FF
How to Cancel Write Protection
2-3-5
Addresses 0600 through 07FF are write-protected. When address 0800 is set to FFFF as an end address, 07FF is assumed.
To cancel write protection, set the leftmost bit of address 0002 to 0. When write protection is canceled, the data in address 0002 to 0005 will be null and void.
The Data Carrier’s Production Date The Data Carrier’s production date is registered in the first 2 bytes (addresses 0000 and 0001) of the Data Carrier’s internal memory before shipment from the factory. No data can be written to these two bytes; an attempt to do so will result in a write protect error. The life of the Data Carrier is approximately 8 years. Develop a program that monitors the Data Carrier’s production date and reminds the user to replace it before it becomes unusable. With the user program in the CPU or a Host Computer, execute Read in order to read the date of production and monitor the life of the Data Carrier.
36
Page 52
The User Program
Section 2-3 The date of production is registered in the following format: 6
5
4
3
2
1
Bit
7
Address 0000
Higher digit of month
Lower digit of month
Address 0001
Higher digit of year
Lower digit of year
0
Note Only the last 2 digits of the year are registered. The following figures show examples of registered dates: March 1988 6
5
4
3
Bit
7
Address 0000
0
3
Address 0001
8
8
2
1
0
2
1
0
December 1990
2-3-6
Bit
7
Address 0000
1
2
Address 0001
9
0
6
5
4
3
Detection of Data Carrier’s Life The detecting method of the Data Carrier’s life varies with the kind of memory (SRAM or EEPROM) incorporated by the Data Carrier. In the case of the Data Carrier with SRAM, the life of the built-in battery will be checked. In the case of the Data Carrier with EEPROM, the number of overwriting operations (possible up to 100,000 times or a desired number of operations) will be checked.
Data Carrier with SRAM (Built-in Battery) Battery Voltage Check 1,2,3...
1. The voltage of the Data Carrier’s built-in battery can be checked only if the user reads the two-byte data in addresses 0000 to 0001. The Data Carrier is not designed so that the voltage is automatically checked, because at the time of battery check, a certain amount of current flows through the internal circuitry of the Data Carrier, which in turn consumes the electricity of the battery. We recommend the user to make a program so that the voltage of the battery can be checked once a day. Battery Low Check Execution Command a) Read command b) Auto read command 2. When the voltage of the battery is low, the DC Warning Flag (word n+4 bit 7) will be turned ON.
37
Page 53
The User Program
Section 2-3
Data Carrier’s Life after Generation of Battery Low Signal
Replace the Data Carrier with a new one as soon as possible when the battery low signal is turned ON, even though the Data Carrier can be used for approximately one month after its battery low signal is turned ON.
Data Carrier with EEPROM (With No Battery)
By counting the number of overwriting operations, it is possible to check the life of the Data Carrier’s EEPROM. The Data Carrier’s EEPROM allows a total of 100,000 or a desired number of overwriting operations.
!WARNING Do not throw the Data Carrier into fire or heat the Data Carrier to a temperature exceeding 100°C. Doing so may cause ignition or burning of the built-in lithium battery.
!WARNING Do not short the battery terminals or charge, disassemble, heat, or incinerate the battery. Doing any of these may result in leakage, rupture, heat generation, or ignition of the battery. Note The Data Carrier with SRAM incorporates a thionyl chloride lithium battery. The internal resistance of the thionyl chloride lithium battery will rise if the battery is not used for several months, in which case, the Data Carrier will generate a battery low signal if a battery check is carried out (even if the battery is not low). When using a Data Carrier that has not been used for over a month, carry out some trial operations for approximately 10 minutes in order to reactivate the battery. The trial operations will not significantly shorten the life of the battery.
38