1. Communication Processing 1.1. Send/Receive Processing Send and Receive are completed by interrupt processing and the actual commands are processed by peripheral service processing. In the peripheral service, there seems to be no processing to take time such as the processing over more than one scan; thus, time slice processing is not executed. (The processing that needs writing to EEPROM is assumed to take time; however, SLC has restrictions on its status (screen) that makes write-processing possible, and the data size written to EEPROM is not so big. Thus, it is considered as no problem.) 1.2. Connection Recognition Connection recognition is executed in peripheral service processing every scan. P92 and 93 are checked and if a tool cable exists, communication processing is initialized to make communication possible. If the status changes to no connection on the contrary, communication processing is also initialized. 2. Communication Procedure 2.1. Transmission Format (1) Transmission Format Header Unit No. Data length 1B 1B 1B BB 0-9, F Mail Box Command Area Object data length 1B Mail Box Data Area (0-128B) Within 144 bytes in total Sum value End 1B 1B $0D Object sum value Data Name Size Data Header 1B $BB Unit No. 1B $00 to 09 Data 1B length Command Variable Area Data Area Variable 0-128B Sum value 1B End 1B $0F $00 to $FF $00 to $FF $0D Function Data indicating the head of a frame. Data indicating the destination unit no. of a command. Reads and processes the frame applicable to the unit no. set in a SLC. Broadcast when the unit number is set to $F. The total number of bytes of “Command Area”, “Data Area “ and “Sum Value”. A command code or parameter (response) indicating requested processing (or its result). Data necessary for requested processing (or its result). Secured if necessary. The sum value of “Text Length”, “Command Area”, and “Data Area” by increments of one byte. Data indicating the end of a frame. (2) Command/Response Area Format ■Command Data Name Command Code Command Area Length Data Area Length Data Area Size 1B Function The command code of requested processing. The total number of bytes of Command Code, Command Area Length, and Data Area Length. [HEX] The data size (byte) of a data area. [HEX] 1B 1B Variable A parameter necessary for requested processing. ■Response Data Name Command Code Command Area Length Data Area Length End Code Data Area Size 1B Function The command code of requested processing. 1B The total number of bytes of Command Code, Command Area Length, and Data Area Length. [HEX] 1B The data size (byte) of a data area. [HEX] 1B Variable Data indicating the execution status of a command Response data of requested processing. 2.2. Command List Comma nd Code Command Name PW Che ck SLC Mode RUN STOP Display Function Check 01 Mode Change X O O O 04 SV Write O O O O 05 SV Read O O O O 06 IOM Write O O O O 07 IOM Read O O O O 08 Clock Write X O O O 09 Clock Read X O O O 10 UM, IOM Clear X X O O 11 UM Protect (*1) O O O 12 Screen Read X O O X Key Write Status Read X O O X X O O X Error Release Present Value Read X O O X X O O O 13 16 17 18 Image Sets ”RUN” and “STOP” in a SLC and reads out the current mode. Writes the set value of an instruction (T, C, D, A, Weekly T, Calendar T) taking a set value. Reads the set value of an instruction (T, C, D, A, Weekly T, Calendar T) taking a set value. Writes data to all relay areas. More than one Write Area is specifiable. Available to System Setup Area too. Reads data from all relay areas. More than one Read Area is specifiable and whole the data can be read at a time. Available to System Setup Area too. Sets time to the internal clock of a SLC. Reads time from the internal clock of a SLC. Clears UM and all relay areas of a SLC. Available to set clear of System Setup Area. Sets/releases a password to/from a SLC, and reads whether a password is set or not. Reads the image currently displayed on LCD of a SLC. Writes a key code to a SLC. The status of a SLC (mode, error status), System information (SLC version, the number of expansion units/their unit types, Internal IO points) Releases errors in SLC. Reads the present value of an instruction (T, C, A, Hold Timer) taking a present value. (*1) Password Check is executed only when a set password needs to be released. 2.3. Communication Condition Network settings are fixed: Item Set Value Baud Rate 4800 Data Length 8BIT Start Bit 1BIT Stop Bit 1BIT Parity None 2.4. End Code ■ End Code List Code 00 01 Description Cause 02 Normal End Not Executable Mode Address Over 03 04 05 Sum Value Error Set Value Error Not Executable 06 07 08 09 10 11 Password Error No RTC Address Check Error Command Undefined Error LCD Exclusion Error Set value Read Prohibit in RUN Normal operation A command unsupported in RUN Mode was executed. The addresses of IOM Read/Write Commands exceed the maximum steps. The addresses of UM Read/Write exceed the maximum steps. An incorrect sum value. Data written to the System Setup Area was out of range. Incorrect setting time. A password was set during password registration. A password is being set or does not match. Time set/read were executed to a device type without RTC installed. A specified address value was incorrect. A specified command was undefined. Processing was disabled because of a LCD display status. Read of set values is prohibited. * When errors occur, the end code of the first error is applied. ■ Error without End Code (common to all commands) Description Parity over framing error in receiving command No end code received within 144 bytes. Receive a command starting other than BB in the start frame. Incorrect unit No. (not local node, other than 0-9 and $F) SLC Operation Initializes receiving Aborts commands, Initializes receiving Initializes receiving Aborts commands, Initializes receiving 3. SLC Area Image 3.1. IOM Area Image Relay Area Relay No. IOM Relative Address Built-in Input (I) 0-11 $0-1 Built-in Output (Q) 0-7 $2-3 Expansion Input (X) 0-11 $4-5 Expansion Output (Y) 0-11 $6-7 Communications Input (R) 0-7 $8-9 Communications Output (S) 0-7 $A-B Internal Auxiliary (M) 0-15 $C-D Internal Hold (H) 0-15 $E-F Button Input (B) 0-7 $10-11 Timer (T) 0-15 $12-13 Hold Timer (#) 0-3 $14-15 Weekly Timer (@) 0-7 $16-17 Calendar Timer (*) 0-7 $18-19 Counter (C) 0-15 $1A-1B Analog Comparator (A) 0-3 $1C-1D Display (D) (Dummy: Indefinite when read) Comparator Compare (P) 0-7 $1E-1F 0-15 $20-21 For System Setup Area, see the next section. * The relay numbers are stored in order from upper byte to lower byte. 3.2. System Setup Area Image Function (no. of bytes) Set Value Range Set Value IOM Relative Address Daylight Saving Setting (1B) $00-03 $00: No setting, $01: Force, $02: EU, $03: US $00 Language Settings (1B) $00-05 $00: EG, $01: JP, $02: GE, $03: FR, $04: IT, $05: SP $01 Backlight (1B) $00-03 $00: 2min, $01: 10min, $02: 30min, $03: ON $02 Contrast (1B) $00-04 $00: Light・・・ $04: Dark $03 Input Filter (1B) D0: Internal, D1: Expansion1, D2: Expansion2, D3: Expansion3 Turning on each bit sets Input Filter. $04 Modem Initialization Command (64B) $20-7D $05-44 Modem Send Delay (1B) $00-0A $00: 0 sec. $01: 1 sec ・・・・ $0A: 10 sec. $45 Node No. (1B) $00-09 $00: Unit 0, $01: Unit 1,・・・・ $09: Unit 9 $46 Time *Password Area is not specifiable. To access it, use UM Protection Command. 3.3. UM Area Image UM Area Relative Address Ladder Program Area (1152 bytes) T Parameter Area (52 bytes) # Parameter Area (28 bytes) @ Parameter Area (84 bytes) $0000-047F $0480-$04B3 $04B4-$04CF $04D0-$0523 * Parameter Area (68 bytes) $0524-$0567 C Parameter Area (36 bytes) $0568-$058B A Parameter Area (16 bytes) $058C-$059B D Parameter Area (260 bytes) $059C-$069F P Parameter Area (68 bytes) $06A0-$06E3 *All the areas are counted to get the sum value of UM area. 4. Command Specification 4.1. Way of Looking at Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er - O O O O O O X O X X X X X Langu age Clock Modem Delay Filter IN Filter EXT Node No. System screen X X X X X X O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd X X X X X Password: A command disabled if a password is set, which was found by Password Check -> X A command without Password Check -> − RUN Mode: A command executable in RUN Mode -> O Inexecutable -> X STOP Mode: A command executable in STOP Mode -> O Inexecutable -> X Basic (1) to System Screen (shaded parts): A command executable in each screen state of SLC -> O Inexecutable -> X 4.2. Caution when adding commands When new commands are added, it is necessary to note the following points: ・ As explained in the section 4.1, Exclusive Access Control is executed to each command per SLC screen. It is decided by Screen-to-software command Process Disabled Flag. When new commands are added, the Screen-to-software command Process Disabled Flag (Software Command Process Disabled Flag Table) needs to be added as well. Each command processing should be decided whether executable or not per screen state according to this flag. In addition, the Screen-to-software command Process Disabled Flag is provided for only 32 bits (32 commands), so commands should be added wihtin this range (if this range is going to be exceeded, the area expansion of the flag needs to be studied). This flag range corresponds to command numbers, and the command numbers should be from 0 through 31. ・ If a screen is added, it needs to be added in the shaded part of the section 4.1 as well. Each command is studied whether executalbe or not on the added screen. 4.3. Command/Response Specifications NO. 01 Name Mode Change Command No. 01 ■Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er - O O O O O O X X X X X O X Langu age Clock Modem Delay Filter IN Filter EXT Node No. System X X X X X X O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd X X X X X ■ Command Data Area Area Command Response 0 Command Code $01 Command Code 1 Command Area Length $04 Command Area Length 2 Data Area Length $00 Data Area Length $00 End Code $00/03/0A 3 $00:STOP,$01:RUN $01 $04 ■ Processing Overview ・ Changes the SLC mode to a specified mode. ■ Command Description ・ Decides whether or not to change the current mode according to the display statuses of LCD. See the section of Restrictions for the display statuses that allow the mode to be changed. ■ Response <End Code> $00: Normal End $03: Sum Value Error $0A: LCD Exclusion Error ■ Remark ・ The command changes the mode work only. The mode is actually changed in the processing per status. NO. 04 Name SV Write Command No. 04 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er X O O O O O O X X X X X O X Langu age Clock Modem Delay Filter IN Filter EXT Node No. System X X X X X X O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd X X X X X ■ Command Data Area Area Command Response 0 Command Code $04 Command Code 1 Command Area Length $07/08/09/0A Command Area Length 2 Data Area Length $00 Data Area Length $00 End Code $00/03/06/0A 3 Code per instruction type 4 Timer/Counter No. (Relay No.) [HEX] 5 Set value data (BCD) 6 ~ $04 $04 <-See “Object Code & Ladder Processing Specifications” for the order of set value. 7 8 9 Set value data (BCD) ■ Processing Overview ・ Writes the active set value of an instruction (T, C, A, Weekly Timer, Calendar Timer, Hold Timer) taking a set value (parameter). ■ Command Description <Code per instruction type> $01: Timer $02: Hold Timer $03: Weekly Timer $04: Calendar Timer $05: Counter $06: Analog Comparator Normal End without any processing if no corresponding instruction code exists, or if Busy Flag is not ON. <Set Value> ・ Timer: Time set value (2 bytes) ・ Hold Timer: Time set value (2 bytes) ・ Weekly Timer: Start/End days, Time when ON/OFF (5 bytes) ・ Calendar Timer: Date/Month of ON/OFF (4 bytes) ・ Counter: Counter set value (2 bytes) ・ Analog Comparator: Comparator functions, Set value (3 bytes) See “Object Code & Ladder Processing Specifications” for the specified format of each instruction type. ■ Response <End Code> $00: Normal End $03: Sum Value Error $06: Password Error (during password setting) $0A: LCD Exclusion Error ■ Remark ・ ・ ・ ・ Transfers set values to EEPROM when normal end. Recreates the sum value. Calculates areas from instruction types and relay numbers. Calls write to a work and comparison with the present value in RUN mode. NO. 05 Name SV Read Command No. 05 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er X O O O O O O X O X O O O X Langu age Clock Modem Delay Filter IN Filter EXT Node No. System O O O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd O O O O O ■ Command Data Area Area Command Response 0 Command Code $05 Command Code $05 1 Command Area Length $05 Command Area Length $06~09/04(with error) 2 Data Area Length $00 Data Area Length $00 End Code $00/03/06/0A 3 Code per instruction type 4 Timer/Counter No. (Relay No.) [HEX] 5 Set Value Data (BCD) See “Object Code & Ladder Processing Specifications” for the order of set value data. ■ Processing Overview ・ Reads the set value of an instruction (T, C, A, Weekly Timer, Calendar Timer, Hold Timer) taking a set value (parameter) ■ Command Description <Code per instruction type> $01: Timer $02: Hold Timer $03: Weekly Timer $04: Calendar Timer $05: Counter $06: Analog Comparator Normal End without any processing if no corresponding instruction code exists, or if Busy Flag is not ON. ■ Response <End Code> $00: Normal End $03: Sum Value Error $06: Password Error (during password setting) $0A: LCD Exclusion Error <Set Value> ・ Timer: Time set value (2 bytes) ・ Hold Timer: Time set value (2 bytes) ・ Weekly Timer: Start/End days, Time when ON/OFF (5 bytes) ・ Calendar Timer: Date/Month of ON/OFF (4 bytes) ・ Counter: Counter set value (2 bytes) ・ Analog Comparator: Comparator functions, set value (3 bytes) See “Object Code & Ladder Processing Specifications” for the specified format of each instruction type. NO. 06 Name IOM Write Command No. 06 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er X O O O O O O X X O X X O X Langu age Clock Modem Delay Filter IN Filter EXT Node No. System X X X X X X O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd X X X X X ■ Command Data Area Area Command Response 0 Command Code $06 Command Code $06 1 Command Area Length $05/07(when bit is set) Command Area Length $04 2 Data Area Length $01~$47(0 if bit is set) Data Area Length $00 End Code $00/02/03/06/0A 3 4 D7:ON: Set system settings, OFF: Set IOM D0:ON: Set bit, OFF: Set word Start IOM Relative Address 5 Bit No. (when bit is set) [HEX] 6 $00: Reset, $01: Set (when bit is set) ■ Data Area Range Area Command 0 IOM Data Response ~ 71 ■ Processing Overview ・ ・ ・ ・ ・ Writes data of a specified size from a specified IOM relative address. Writes data to all relay areas. Writes data to System Setup Area too. Enables data to be written at a time if written to IOM Area and System Setup Area respectively. Enables a bit to be specified (one bit for one command only). ■ Command Description <IOM Relative Address> Accessed in increments of word. See 3.1.IOM Area Image and 3.2 System Setup Area for the IOM relative address of each area. <Write Data Size> Specified in Data Area Length. Normal End without any processing when the data size is 0. With IOM specified, if bigger than 34 Normal End after writing data of 34 bytes. With System Setup Area specified, if bigger than 71 Normal End after writing data of 71 bytes. <Write Data> Writing data of an area less than one byte is written as it is without masking its non-existing bit areas. Each IOM area has 2 bytes, so in the case of continuous writing over areas or writing at a time, data is written to non-existing relay numbers as well. <System Setup Area> If data is written to System Setup Area, the range of the set values is checked. If the data is incorrect, it is regarded as Set Value Error and no data is written. <Password Check> Executed when System Setup Area is accessed. If any one of places is applied to Password Check, nothing is set and it is regarded as a password error. <Password> Password Area is not specifiable. Use UM Protect Command if you want to access it. ■ Response <End Code> $00: Normal End $02: Address Over (when a specified address exceeded an IOM relative address or the address overflowed because of the Write data size) $03: Sum Value Error $04: Set Value Error (when data was written to the System Setup Area but the set value was out of range.) $06: Password Error (during password setting) $0A: LCD Exclusion Error ■ Remark ・ ・ ・ No data is written to Button Input Area. In writing to System Setup Area, data is transferred to EEPROM Area and the sum value is regenerated. Reflection Timing of System Setup Area, Processing Daylight Saving: Reflected in the common processing. Without RTC, Normal End after nothing is written. Language Setting: Directly written to the applicable work. Backlight: Directly written to the applicable System Setup Area. It is reflected at the time of a key entry and display instruction. Without LCD, Normal End after nothing is written. Contrast: Calls contrast processing. Without LCD, Normal End after nothing is written. Input Filter: Directly written to the applicable System Setup Area. However, it is after RUN initial processing that the data is reflected as a set value. Modem Initialization Command: Directly written to the applicable System Setup Area. Modem Send Delay: Directly written to the applicable System Setup Area. Node No.: Directly written to the applicable System Setup Area. Reflected from next scan. Without match of the setting with the software tool, communication is disabled. Note: The end of Modem Initialization Command is decided by $20. $20 is set in the end in the software tool. NO. 07 Name IOM Read Command No. 07 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er I: O Sys: X O O O O O O X O O O O O X Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System O O O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd O O O O O ■ Command Data Area Area Command Response 0 Command Code $07 Command Code $07 1 Command Area Length $06 Command Area Length $04 2 Data Area Length $00 Data Area Length $00~$47(0: error) End Code $00/02/03/06/0A 3 D7:ON: Set system settings, OFF: Set IOM 4 Start IOM Relative Address 5 Read data size (byte) ($1~$47) ■ Data Area Range Area Command 0 Response IOM Data ~ 71 NO. 07 Name IOM Read Command No. 07 ■ Processing Overview ・ ・ ・ Reads data of a specified size from a specified IOM relative address. Reads data from all relay areas. Reads data from System Setup Area as well. ■ Command Description <IOM Relative Address> Accessed in increments of word. See 3.1.IOM Area Image and 3.2 System Setup Area for the IOM relative address of each area. <Read Data Size> Normal End without any processing when the data size is 0. With IOM specified, if bigger than 34 Normal End after reading data of 34 bytes. With System Setup Area specified, if bigger than 71 Normal End after reading data of 71 bytes. <Read Data> Read data of an area less than one byte is read out as it is without masking its non-existing bit areas. Each IOM area has 2 bytes, so in the case of continuous reading over areas or reading at a time, non-existing relay numbers are read out as well. No guarantee for the read data size. <Password Check> Executed when System Setup Area is accessed. <Password> Password Area is not specifiable. Use UM Protect Command if you want to access it. ■ Response <End Code> $00: Normal End $02: Address Over (When a specified address exceeded the IOM relative address, or the address overflowed because of the Read data size.) $03: Sum Value Error $06: Password Error (during password setting) $0A: LCD Exclusion Error NO. 08 Name Clock Write Command No. 08 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er ‐ O O O O O O X O X O O O O Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System O X O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd X O O O O ■ Command Data Area Area Command Response 0 Command Code $08 Command Code 1 Command Area Length $0A Command Area Length 2 Data Area Length $00 Data Area Length $00 End Code $00/03/05/07/0A 3 Second (BCD: 00-59) 4 Minute (BCD: 00-59) 5 Hour (BCD: 00-23) ->24h 6 Day (BCD: 00-06) -> Sun: 00, Mon: 01, … Sat: 06 7 Date (BCD: 00-31) 8 Month (BCD: 01-12) 9 Year (last two digits) (BCD: 00-99) $01 $04 ■ Processing Overview ・ Sets the time to the internal clock of SLC. ■ Command Description ・ Whether time data is set or not is decided according to the statuses of LCD. See the Restrictions section for the display that allows time to be changed. ■ Response <End Code> $00: Normal End $03: Sum Value Error $05: Not Executable (when a set data was not BCD or was out of range, or it was not possible to write data to RTC because of I2C Error. $07: No RTC (Time was set to a device type without RTC installed.) $0A: LCD Exclusion Error ■ Remark ・ ・ Data is set to RTC on a case-by-case basis. The first two digits of year data are fixed to “20” (the year of 2000). NO. 09 Name Clock Read Command No. 09 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er ‐ O O O O O O X O X O O O X Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System O X O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd X O O O O ■ Command Data Area Area Command Response 0 Command Code $09 Command Code 1 Command Area Length $03 Command Area Length 2 Data Area Length $00 Data Area Length $00 End Code $00/03/07/0A 3 $09 $0B/04 (with error) 4 Second (BCD: 00-59) 5 Minute (BCD: 00-59) 6 24h-> Hour (BCD: 00-23) 7 Sun: 00, Mon: 01, … Sat: 06-> Day (BCD: 00-06) 8 Date (BCD: 00-31) 9 Month(BCD: 01-12) 10 Year (last two digits) (BCD: 00-99) ■ Processing Overview ・ Reads time from the internal clock of a SLC. ■ Command Description ・ Returns the data that set in the Time Data Store Work in RTC refresh. ■ Response <End Code> $00: Normal End $03: Sum Value Error $07: No RTC (Time was read from a device type without RTC installed.) $0A: LCD Exclusion Error ■ Remark ・ The first two digits of year data are fixed to “20” (the year of 2000). NO. 10 Name UM, IOM Clear Command No. 10 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er ‐ X O O O O O X X O X X O X Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System X X X X X X O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd X X X X X ■ Command Data Area Area Command Response 0 Command Code $0A Command Code $0A 1 Command Area Length $04 Command Area Length $04 2 Data Area Length $00 Data Area Length $00 End Code $00/01/03/0A 3 Clear Target Area(1: Clear)-> System IOM UM 4 5 NO. 10 Name UM, IOM Clear Command No. ■ Processing Overview ・ Clears UM and all relay areas of a SLC. Able to clear System Setup Area as well. ■ Command Description <Ladder Program> ・ Clears parameter areas too. ・ Clears a password too. <System Setup> ・ Checks a password. If any one of places is applied to Password Check, nothing is cleared and it is regarded as a password error. ■ Response <End Code> $00: Normal End $01: Not Executable in RUN Mode $03: Sum Value Error $06: Password Error (during password setting) $0A: LCD Exclusion Error ■ Remark ・ ・ ・ Uses the processing for DELETE PROG in common. Clears EEPROM area too. Generates the sum value. 10 NO. 11 Name UM Protect Command No. 11 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er O Note O O O O O O X X O X X O X Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System X X X X X X O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd X X X X X Note: when release processing is executed with a password set. ■ Command Data Area Area Command Response 0 Command Code $0B Command Code $0B 1 Command Area Length Command Area Length $04/05 (when read) 2 Data Area Length $04/06 (when release/set) $00 Data Area Length $00 End Code $00/01/03/0A 3 $00: Release, $01: Set, $02: Read the presence/absence of setting Password (BCD 4 digits) H 4 5 $00: No setting, $01: With setting L ■ Processing Overview ・ Sets/releases a password to/from SLC and reads whether a password is set or not. ■ Command Description <Password Check> Verifies a password with that of parameter, and releases it if matches. <Password> Required when a password is set/released. ■ Response <End Code> $00: Normal End $03: Sum Value Error $05: Not Executable (A password was set during password registration) $06: Password Error (Mismatch of a password) $0A: LCD Exclusion Error ■ Remark ・ The flag of presence/absence of a password is updated when a password is set/released. NO. 12 Name Screen Image Read Command No. 12 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er ‐ O O O O O O O O O O O O O Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System O O O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd O O O O O ■ Command Data Area Area Command Response 0 Command Code $0C Command Code $0C 1 Command Area Length $03 Command Area Length $06/$04 (with error) 2 Data Area Length $00 Data Area Length $30/00 (with error) End Code $00/03 3 4 Icon Data 5 Screen Code 6 7 8 9 ■ Data Area Range Area Command 0 Response Screen Image Data ~ 47 ■ Processing Overview ・ Reads the screen image currently shown on LCD of SLC. ■ Command Description ・ ・ ・ Transfers the data of one LCD screen currently shown in SLC. Even if no LCD, SLC creates screen data. Returns the ON/OFF information of icons. D4: RUN D3: ERR D2: UP D1: DOWN D0: PASSWORD Returns screen code information too. ■ Response <End Code> $00: Normal End $03: Sum Value Error ■ Remark NO. 13 Name Key Write Command No. 13 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er ‐ O O O O O O O O O O O O O Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System O O O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd O O O O O ■ Command Data Area Area Command Response 0 Command Code $0D Command Code 1 Command Area Length $04 Command Area Length 2 Data Area Length $00 Data Area Length $00 End Code $00/03 3 DEL ALT ? ? ? ? OK ESC ■ Processing Overview ・ Writes a key code to SLC. ■ Command Description ・ ・ ・ Setting 1 to the key bit of a key turns the key on, and setting 0 turns the key off. Allows more than one key to be entered at a time. Key entry by the command will be a target of Backlight Function. ■ Response <End Code> $00: Normal End $03: Sum Value Error ■ Remark ・ Set to a key code work. Setting to a key code work makes the command reflect in button input. $0D $04 NO. 16 Name Status Read Command No. 16 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er ‐ O O O O O O O O O O O O O Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System O O O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd O O O O O ■ Command Data Area Area Command Response 0 Command Code $10 Command Code $10 1 Command Area Length $03 Command Area Length 2 Data Area Length $00 Data Area Length $13~16/04 (with error) Variable according to no. of expansion units $00 End Code $00/03 3 4 SLC status (Mode, Error status) 5 SLC status (Internal IO points, Structure) 6 Software Date Year Ten’s place 7 (ASCII Code) One’s place 8 Software Date Month Ten’s place 9 (ASCII Code) 10 One’s place Software Date Date Ten’s place 11 (ASCII Code) 12 SLC version ”V” (ASCII Code) 13 Integer of SLC version Ten’s place (ASCII Code) One’s place 14 One’s place 15 Dot [.] (ASCII Code) 16 Decimal of SLC version The first decimal place (ASCII Code) The second decimal place 17 18 Number of Expansion Units 19 Expansion Unit Type (Expansion 1) 20 ~ (for the number of expansion units) ■ Processing Overview ・ Reads out SLC status (mode, error status) and system information (SLC version, number of expansion units, expansion unit type, internal IO points). ■ Response <End Code> $00: Normal End $03: Sum Value Error <SLC Status> D7 D6 D5 D4 Memory I/O Bus Unit Error Error Over D3 D2 IIC Error Verify Error M/C Error D1 D0 RUN/ STOP RUN:1 STOP:0 D7 D6 D5 D4 D3 D2 D1 D0 With or With or With or With or Internal without without without without IO M/C RTC LCD AD points with/ with/ with/ with/ without: without: without: without: 20/10: 1/0 1/0 1/0 1/0 1/0 <No. of expansion units>: $0~3 <Expansion unit type> D7 Unit Type D6 D5 IN points 00: Basic 01: Communication 10: Dummy 1 11: Dummy 2 D4 D3 D2 D1 OUT points 000: 0 point 000: 0 point 001: 4 points 001: 4 points 010: 8 points 010: 8 points 011: 16 points 011: 16 points 100: 32 points 100: 32 points *For mixed unit types, IN: 4 points, OUT: 4 points D0 NO. 17 Name Error Release Command No. 17 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er ‐ O O O O O O O O O O O O O Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System O O O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd O O O O O ■ Command Data Area Area Command Response 0 Command Code $11 Command Code 1 Command Area Length $03 Command Area Length 2 Data Area Length $00 Data Area Length $00 End Code $00/03 3 $11 $04 ■ Processing Overview ・ Releases errors in a SLC. ■ Command Description ・ ・ ・ Releases all errors. Normal End without errors. After Fatal Error occurs in RUN, releasing the error without changing the mode turns the mode to STOP (to detect errors again in RUN initialization and so on). ■ Response <End Code> $00: Normal End $03: Sum Value Error ■ Remark ・ ・ ・ Releases an error code within command processing. If cannot be released, the error has a release-impossible flag, and the command does not release the flag. It is output again by common processing. Also the display of the SLC is restored from an error screen. Calls error release and screen restore. NO. 18 Name Present Value Read Command No. 18 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er ‐ O O O O O O X O X O O O X Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System O O O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd O O O O O ■ Command Data Area (with 1 parameter specified) Area Command Response 0 Command Code $12 Command Code $12 1 Command Area Length $05 Command Area Length 2 Data Area Length $00 Data Area Length $05/06/07//08/ 04 (with error) $00 End Code $00/03/0A 3 Code per instruction type 4 Timer/Counter No. (Relay No.) Present Value Data (BCD) H 5 L 6 Status ■ Command Data Area (with 2 parameters specified: P instruction) Area Command Response 0 Command Code $12 Command Code $12 1 Command Area Length $06 Command Area Length $08/04 (with error) 2 Data Area Length $00 Data Area Length $00 End Code $00/03/0A 3 Code per instruction type 4 Timer/Counter No.1 (Relay No.) 5 Timer/Counter No.2 (Relay No.) 6 Timer/Counter No.1 Present Value Data (BCD) H L Timer/Counter No.2 Present Value Data (BCD) H 7 L ■ Processing Overview ・ ・ Reads out the present value of an instruction (T, C, A, Hold Timer) having a present value. And returns the status for an instruction (T, C, D, Hold Timer) having a status (See “Command Data Area: with 1 parameter specified). Able to read out the present values of two relay numbers in one instruction if the instruction is T, C, or Hold Timer (P instruction) (See “Command Data Area: with 2 parameters specified). ■ Command Description <Code per Instruction Type> $00: Analog Input Value $01: Timer $02: Hold Timer $05: Counter $06: Analog Comparator $07: Display Reads the present value of only Timer, Hold Timer and Counter when 2 parameters are specified. Normal End without any processing if no applicable instruction code exists or Busy Flag is not turned on. Does not check the Busy Flag if 2 parameters are specified. Returns the present value stored at that point. Returns the voltage conversion values (BCD) of $00: Analog Input 0 (I4(Ia)) and $01: Analog Input 1 (I5(Ib)) by setting $00/$01 to relay numbers when analog input value ($00) is specified. ■ Response <End Code> $00: Normal End $03: Sum Value Error $0A: LCD Exclusion Error <Present Value> ・ In the case of Timer, Hold Timer and Counter, returns a 2-byte present value and status. ・ In the case of Analog Comparator, returns a 4-byte conversion value in the order of analog input 1/2. ・ With 2 parameters specified, returns an applicable 2-byte present value. ・ In the case of Display, the present value does not exist and status is moved up to the front and set. ・ When Analog Input Value ($00) is specified, returns a 2-byte voltage conversion value of Analog Input 0(I4(Ia)) or Analog Input 1(I5(Ib)). <Status> ・ Returns a 1-byte status for Timer, Hold Timer, Counter, and Display. ・ Analog Input Value and Analog Comparator have no status area. ・ Does not return a status when 2 parameters are specified. Status Bit (common in all instructions) D6: Trigger input status D5: Reset input status D4: Direction input status Indefinite for the other bits ■ Remark ・ The present values of Weekly Timer and Calendar Timer are read out by the Clock Read command. NO. 99 Name EEPROM Read (hidden command) Command No. 99 ■ Restrictions Passwo rd RUN Mode STOP Mode Basic (1) Basic (2) Terminal Menu Editor Monitor Delete SAVE LOAD Erase Paramet er ‐ O O O O O O O O O O O O O Langu age Clock Modem Delay Filter IN Filter EXIT Node No. System O O O O O O O Daylight Passwo Backligh Contrast Modem Saving rd t Comma nd O O O O O ■ Command Data Area Area Command Response 0 Command Code $63 Command Code $63 1 Command Area Length $07 Command Area Length $05/04 (error) 2 Data Area Length $00 Data Area Length Read data size (byte) End Code $00/02/03/05 3 4 5 6 D3: System Setup Area, D2: UM, D1: M/C*, D0: Internal Relative Byte Address H L Read data size (byte) [HEX] $00-$80 Read data size (byte) [HEX] $00-$80 7 8 ■ Data Area Range Area Command Response 0 Contents ~ ~ 127 *: M/C Area cannot be read physically. Since it is necessary to specify a target, please set D0 bit. NO. 99 Name EEPROM Read Command No. ■ Processing Overview ・ Reads UM or data in EEPROM of System Setup Area. ■ Command <UM Relative Byte Address> ・ Does not read data if the start address + the Read data size exceeds the maximum of each area (Address Over). The area range to be read out: System Setup Area: From Daylight Saving through System Setup Area Sum Value UM Area: From UM Start through With/Without M/C Initialization ・ Does not read data if the start address exceeds the maximum (Address Over). ・ Does not read data if the Read data size exceeds 128 bytes. ■ Response <End Code> $00: Normal End $02: Address Over $03: Sum Value Error $05: Not Executable (I2C Error) ■ Remark 99