The text of a manual · part 39 of 44
Programmable Controller TOYOPUC PC3JG-P-CPU TIC-6088 / PC3JG-CPU TIC-6125 Operation Manual: 9. Built-in function, pages 346 to 355
Pages 346 to 355 of 387, from Programmable Controller TOYOPUC PC3JG-P-CPU TIC-6088 / PC3JG-CPU TIC-6125 Operation Manual
The original document is the PDF (16 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 Toyopuc OUT-15 and Toyopuc OUT-18
Page 346
[Setting the detailed parameter of slaves] (5) (1) (2)
(3) (3)-1
(3)-2
(1) [Slave connection setup] "Do" is set up in the case that connects a slave to the network. "Do not" is set up in the case that does not connect a slave to the network. (2) [Transferred bytes setup]
M: Master, S: Slave, ←: Transmission Direction
The number of slave I/O bytes is set up with decimal. The number of input bytes is set to [M ← Bytes transferred to slave], the number of output bytes is set to [S ← Bytes transferred to master]. I/O address of the upper row in [Transferred bytes setup] is previously allocated, I/O address of the lower is allocated in the following order. In the order of I/O address of the previous setting example, input is previous and output is following. The transmission direction changes by click of [Transmission Direction]. Range of the number of transferred bytes per one slave: Input 0-128 and output 0-128 The sum total of the number of transferred bytes: Less than 256 bytes.
9-121
Page 347
(3) [Connection path setup] Connection path is a parameter for choosing I/O data type within a slave. Refer to a "Device Profile" or "EDS file" of each slave maker for the setting value of Connection path. (3)-1 Connection type selection • Any one of "No set", "Poll", and "Bit-Strobe" is chosen. Both "Poll" and "Bit-Strobe" cannot be chosen. • When "No set" is chosen, default value is specified to be I/O data type of a slave. (3)-2 IN/OUT Connection Path setup • When a connection type is chosen as "Poll", "IN connection path" and "OUT connection path” is set up. • When a connection type is chosen as "Bit-Strobe", only "IN connection path" is set up (The setting part of OUT connection path is masked.). • Data (Hex) is inputted into the 2nd byte, the 4th byte, and the 6th byte from the head of a connection path (6 byte data). The setting range of each data is 00-FFh. • When "Poll" is chosen and it sets a path to either "IN connection path" or "OUT connection path", all (the 2nd byte, the 4th byte, and the 6th byte) the connection paths of another side set up "00." [Restriction matter] • The number of the maximum slaves that can set up a connection path is ten sets. • When a setup of "Number of real slave I/O bytes" is " Recognizes ", a connection path is set up after recognition processing of I/O bytes.
9-122
Page 348
(4) [Extended setting]
(5)
(4) (4)-1 (4)-2
In case that the correspondent slave is DRMT series, please set the following. (4)-1. Diagnosis function In case that the diagnosis function of DRMT series is used, [Enable] is set. In case that the diagnosis function of DRMT series is not used, [Disable] is set. Refer to "9.5.4.3 Collection of Diagnosis Data" for the details of diagnosis data. (4)-2. [Unconnected detecting Enable/Disable] [Enable] or [Disable] for the function of detecting disconnection is set to each point. Check is [Enable] and no check is [Disable].
00 – 3F are I/O address. (Note) Data of "Detection of disconnection Enable/Disable" is written into the slave by initial processing of the master when diagnosis function "Enable". This data is maintained even if the slave's power supply is turned on again. (5) [OK] is clicked after completing the setup.
9-123
Page 349
9.5.4.3. COLLECTION OF DIAGNOSIS DATA
In DRMT series, there are diagnosis data as ‘general-purpose status’, ‘short circuit data’, ‘disconnection data’, and ‘validity/invalidity of the disconnection detecting function’ besides the I/O data. DLNK-M2 saves/loads these diagnosis data by I/O communication and explicit message which conform to the DeviceNetTM. I/O communication is that I/O is always refreshed and explicit message communication is that the command is issued only when it is necessary and the response data is received. These diagnosis data is allocated to I/O in CPU by the link parameter. I/O data / diagnosis data flow I/O is always refreshed. Master(DLNK-M2)
CPU I/O allocation 1
2
I/O data
I/O data general status general status error record reset / arbitrary reading switch error record reset / arbitrary reading switch
3 validity/invalidity of the disconnection detecting function
4 5
Link parameter Setting data
I/O communication Slave(DRMT series) I/O data general status validity/invalidity of the disconnection detecting function validity/invalidity of the disconnection detecting function short-circuit data short-circuit data short-circuit data disconnection data disconnection data disconnection data
When the short-circuit and the disconnection are generated, I/O is refreshed.
Explicit messaging command response
I/O allocation by the link parameter of DLNK-M2 (Refer to “9.5.4.3.1 Collection of diagnosis data by link parameter” about details) 1. I/O data: the top address is set to ‘link area’. 2. General-purpose status and error record reset / arbitrary reading switch: the top address is set to ‘General-purpose status area’ in the extended setting. 3. Validity/invalidity of the disconnection detecting function: ‘validity/invalidity of the disconnection detecting function’ is set for the I/O address of the each slave. This data is kept during turning off the slave's power supply. 4. Short-circuit data: the top address is set to ‘ Short-circuit state area’ in the extended setting. 5. Disconnection data: the top address is set to ‘ Unconnected state area’ in the extended setting. (Note 1) In general-purpose status, error record reset / arbitrary reading switch, validity/invalidity of the disconnection detecting function, short-circuit data and disconnection data, the target slave is DRMT series and these are effective when set by the link parameter, diagnosis function "Enable". (Note 2) If the diagnosis functions of all slaves are ‘Disable’, ‘General-purpose status area’ of the node 00-63 must be set to the unused area because these are always refreshed. If the diagnosis function will not be used in the future, please use the link parameter of “DLNK-M". 9-124
Page 350
9.5.4.3.1. Collection of Diagnosis Data by Link Parameter I/O allocation to CPU for ‘general-purpose status’, ‘short-circuit data’ and ‘disconnection data’, and the setting of ‘validity/invalidity of the disconnection detecting function’ are set to the link parameter of DLNK-M2 with PCwin(Ver5.1 or later). Please refer to “9.5.4 DLNK-M2” for the method of setting the link parameter.
The link parameter setting screen of DLNK-M2 with PCwin
I/O allocation to CPU for ‘general status’, ‘short-circuit data’ and ‘disconnection data’ are set. Select the program No.(P1-P3)/the extended area, and set the top address.
The detail setting screen of the slave
If the diagnosis function is used for the DRMT series, ‘Enable’ is set.
‘validity/invalidity of the disconnection detecting function’ are set. ‘ ’ is checked to the I/O address ‘ ’ : validity, ‘ ‘ : invalidity
9-125
Page 351
9.5.4.3.2. General-purpose Status
If the general-purpose status is allocated to CPU by the link parameter, ‘general-purpose status’ is allocated to the top address to set [+00L] – [+1FH], and ‘error record reset / arbitrary reading switch’ is allocated to [+20L] – [+3FH] in CPU. (Refer to “9.5.4.3.3 Error Record Reset / Arbitrary Reading Switch” about details) The general-purpose status and the error record reset / arbitrary reading switches are allocated in 1byte per 1node. (Note) Even if the diagnosis functions of all slaves are set to ‘Disable’ in the link parameter of DLNK-M2, the general-purpose status and the error record reset / arbitrary reading switch of the node 00-63 are allocated. Allocation of the general-purpose status and error record reset / arbitrary reading switch relative byte data address +00L node 00 : general-purpose status +00H node 01 : general-purpose status | | General-purpose status area | | +1FL node 62 : general-purpose status +1FH node 63 : general-purpose status +20L node 00 : error record reset / arbitrary reading switch +20H node 01 : error record reset / arbitrary reading switch | | Error record reset / arbitrary reading switch | | +3FL node 62 : error record reset / arbitrary reading switch +3FH node 63 : error record reset / arbitrary reading switch The format of general-purpose status is the following. General-purpose status format bit 0 1 2 3 4
5
6 7 content Voltage flag of I/O power supply to I/O terminal block1(terminal with I/O address 0-F) 0 : I/O power ON , 1 : I/O power OFF Voltage flag of I/O power supply to I/O terminal block2(terminal with I/O address 10-1F) 0 : I/O power ON , 1 : I/O power OFF Reserved Reserved In case of the input unit Please refer to the detection flag of disconnection operation manual of 0 : normal (all sensor connection) the DRMT series 1 : disconnection (nothing less than a disconnected sensor is detected) ("2.5.2 Detection In case of the output unit timing of detection flag of disconnection disconnection") for 0 : normal (all load connection) 1 : disconnection (nothing less than a disconnected external load is detected) the state of the flag. In case of the input unit only In error : 1 detection flag of short-circuit (keep for minimum 0 : normal (all sensor are normal) 1s) 1 : short-circuit (nothing less than a sensor power supply is short-circuited) After releasing : 0 Response of setting ‘invalidity’ of the general-purpose status Slave's response 0 : error response , 1 : normal response for Explicit message which Response of setting the validity/invalidity of the disconnection detecting function master issues at 0 : error response , 1 : normal response initialization
9-126
Page 352
9.5.4.3.3. Error Record Reset / Arbitrary Reading Switch Format
In DRMT series, after detecting ‘short-circuit’ and ‘disconnection’, if the factor is removed, I/O control is returned automatically but the short-circuit data and the disconnection data are kept and I/O LED is maintained in the red flicker. Setting various bits of the error record reset switch can reset these kept data. The error record and the error are loaded to the diagnosis data map (Refer to “9.5.4.3.4 Diagnosis Data Map” about details) by setting various bits of the arbitrary reading switch. Format of error record reset / arbitrary reading switch bit content short-circuit error record reset for input unit (1 : reset) 0 disconnection error record reset for input unit (1 : reset) 1 2 set 0 disconnection error record reset for output unit (1 : reset) 3 short-circuit reading arbitrarily for input unit (1 : loading) 4 disconnection reading arbitrarily for input unit (1 : loading) 5 6 set 0 disconnection reading arbitrarily for output unit (1 : loading) 7
Error record reset switch (Note) It is validity only the rise differentiation Arbitrary reading switch (Note) It is validity only the rise differentiation
9.5.4.3.4. Diagnosis Data Map
In DRMT series, when detecting ‘short-circuit’ and ‘disconnection’, the master (DLNK-M2) saves the diagnosis data in the short-circuit data area or the disconnection data area automatically. Please refer to ‘(1) Format of short-circuit data area’ about the data from the top address [+00L] to [+3FH] in the short-circuit data area that is set in the link parameter. Please refer to ‘(2) Format of disconnection data area’ about the data from the top address [+00L] to [+3FH] in the disconnection data area that is set in the link parameter. Common explanation of ‘Short-circuit data area’ and ‘disconnection data area’ 1) The error record data and the error current data are saved at the same time 2) This area is a shift structure of four steps, and information 0 is latest data and data shifts in order of information 1 -> information 2 -> information 3 and information 3 disappears. 3) Get/Set flag (Only information 0) When the master (DLNK-M2) saves the error record data and the error current data, bit 0 of the Get/Set flag is set. Bit 0 of the Get/Set flag is observed, and when the bit is set, the error record data and the error current data are taken out and clear the bit. (Clear the bit at initialization) (Note) If the diagnosis function is set to ‘validity’ for as much as 1 slave, the data of the short-circuit data area and the disconnection data area is allocated to CPU
9-127
Page 353
(1) Format of short-circuit data area Data
Record data0 newest data
Current data0 newest data
Record data1 Current data1 Record data2 Current data2 Record data3 Current data3
Relative address
+00L +00H +01L +01H +02L +02H +03L +03H +04L +04H +05L +05H +06L +06H +07L +07H +08L +08H +09L +09H +0AL +0AH +0BL +0BH +0CL +0CH +0DL +0DH +0EL +0EH +0FL +0FH +10L | +17H +18L | +1FH +20L | +27H +28L | +2FH +30L | +37H +38L | +3FH
Content Get/Set flag (Reserved) Node address (Hex) (Reserved) Response code Low Response code High Error code Low Error code High
Description Bit0=0 : Get, Bit0=1 : Set, Bit1 – 7=0 00h 00h – 3Fh (0 – 63) 00h 69h(Attribute ID of explicit message) *1 00h error code (low byte) of message response (Normal : 00h)*2 error code (High byte) of message response(Normal : 00h)*2 Numerical value : I/O Address MSB 07 0F | | 3F
Short-circuit record data I/O 0 – 63
06 0E | | 3E
05 0D | | 3D
04 0C | | 3C
LSB 03 0B | | 3B
02 0A | | 3A
01 09 | | 39
00 08 | | 38
Bit data=0 : Normal , Bit data=1: Short-circuit Get/Set flag (Reserved) Node address (Hex) (Reserved) Response code Low Response code High Error code Low Error code High
Bit0=0 : Get, Bit0=1 : Set, Bit1 – 7=0 00h 00h – 3Fh (0 – 63) 00h 67h(Attribute ID of explicit message) *1 00h error code (low byte) of message response(Normal : 00h)*2 error code (High byte) of message response(Normal : 00h)*2 Numerical value : I/O Address MSB 07 0F | | 3F
Short-circuit current data I/O 0 – 63
06 0E | | 3E
05 0D | | 3D
04 0C | | 3C
LSB 03 0B | | 3B
02 0A | | 3A
Bit data=0 : Normal , Bit data=1: Short-circuit Same as record data0
Same as record data0
Same as current data0
Same as current data0
Same as record data0
Same as record data0
Same as current data0
Same as current data0
Same as record data0
Same as record data0
Same as current data0
Same as current data0
9-128
01 09 | | 39
00 08 | | 38
Page 354
(2) Format of disconnection data area Data
Record data0 newest data
Current data0 newest data
Record data1 Current data1 Record data2 Current data2 Record data3 Current data3
Relative address
+00L +00H +01L +01H +02L +02H +03L +03H +04L +04H +05L +05H +06L +06H +07L +07H +08L +08H +09L +09H +0AL +0AH +0BL +0BH +0CL +0CH +0DL +0DH +0EL +0EH +0FL +0FH +10L | +17H +18L | +1FH +20L | +27H +28L | +2FH +30L | +37H +38L | +3FH
Content Get/Set flag (Reserved) Node address (Hex) (Reserved) Response code Low Response code High Error code Low Error code High
Description Bit0=0 : Get, Bit0=1 : Set, Bit1 – 7=0 00h 00h – 3Fh (0 – 63) 00h 6A(Attribute ID of explicit message) *1 00h error code (low byte) of message response(Normal : 00h)*2 error code (High byte) of message response(Normal : 00h)*2 Numerical value : I/O Address MSB 07 0F | | 3F
Disconnection record data I/O 0 – 63
06 0E | | 3E
05 0D | | 3D
04 0C | | 3C
LSB 03 0B | | 3B
02 0A | | 3A
01 09 | | 39
00 08 | | 38
Bit data=0 : Normal , Bit data=1: Disconnection Get/Set flag (Reserved) Node address (Hex) (Reserved) Response code Low Response code High Error code Low Error code High
Bit0=0 : Get, Bit0=1 : Set, Bit1 – 7=0 00h 00h – 3Fh (0 – 63) 00h 68h(Attribute ID of explicit message) *1 00h error code (low byte) of message response(Normal : 00h)*2 error code (High byte) of message response(Normal : 00h)*2 Numerical value : I/O Address MSB
Disconnection current data I/O 0 – 63
07 06 05 04 03 02 01 0F 0E 0D 0C 0B 0A 09 | | | | | | | | | | | | | | 3F 3E 3D 3C 3B 3A 39 Bit data=0 : Normal , Bit data=1: Disconnection
Same as record data0
Same as record data0
Same as current data0
Same as current data0
Same as record data0
Same as record data0
Same as current data0
Same as current data0
Same as record data0
Same as record data0
Same as current data0
Same as current data0
9-129
LSB 00 08 | | 38
Page 355
9.5.4.4. Message Communication Function
CPU sends explicit message to a slave from a master by MSET command. (1) MSET ---- Explicit message command (FUN302) (1-1) Usable devices ( Ο: usable) X
Y
M K
V
T
C L
GY
EM
P
D R N S
B
Constant
OP1 OP2 OP3 EX
EY
GX
GM EK
EV
ET
EC
EL
EP
U EN
H ES
EB
OP1 OP2 OP3 (1-2) Number of steps: 5 (1-3) Symbol:
MSET
OP1
OP2
OP3
(1-4) Function: The message that is saved in the register area shown in OP2 is commanded to the master module shown in OP1, and the response is saved in the register area shown in OP3. OP1 ----- link program No., link No., data size of the transferred message are set. (Hex data) F
C
B
8 link program No.(1 - 3)
link No.(1 - 8)
7
0 data size of the transferred message(10 – 138bytes : 0A - 8Ah)
OP2 ---- The top address of the register area that the transferred message is saved is set. OP3 ---- The top address of the register area that the response data is saved is set. (1-5) Flag CY BO
Z
>
=
<
ER
Error flag (ER): Conditions for ON (1) The link programs No. is except 1 – 3. (Function error 1) (2) The link No. is except 1 –8. (Function error 1) (3) The link module of the specified links No. do not exist.
9-130