Home

μGPCsx Manual (Instruction Word)

image

Contents

1. Processor link 1 1 1h operation definition abnormality 6 1Ah Appendix 2 2h a 15 Fh Ste tet E E E Appendix 21 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Appendix 12 Application program abnormality factor word offset value 38 26h 39 27h Failure Application WDT abnormality 10 Ah Application execution abnormality It is turned ON when the execution time of the Serious default task exceeds the set value of the failure watchdog timer It is turned ON when abnormality such as l l Serious temporary size over etc has occurred while fail r executing the user program 8 26h FB instance setting It is turned ON when the designated storage Serious 11 Bh abnormality address does not exist etc failure 12 Initial value setting It is turned ON when the set initial value Serious Ch abnormality exceeds the range of storage area etc failure A POU instruction It is turned ON when there is abnormality in Serious 14 Eh i abnormality POU failure 15 Fh Task registration It is turned ON when there is abnormality in Serious abnormality task registration failure 9 27h 0 0h 5 Fh SFM boundary definition setting abnormality 0 0h O level task dop level task Oleveltaskdrop It is turned ON when the capacity has been set that exceeds the maximum capacity of instance memory for the sys
2. ni0000 mrQO00 E The data in register ki0000 2 is loaded and stored in register mi0000 Next the data in register mi0000 is loaded and stored in register mrOOOO Since register mr0000 is a register of the real number type type conversion from an integer to a real number is carried out and a data 2 0 is stored Chapter 5 5 6 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Bian elena siete Integer 0 48 us Basics Real number 0 45 us The input numerical value is output to REG and the data of REG is made to be the output numerical value It is used when data in the midst of operation should be retained in REG Example of use miVUU0 mills milli HiH H miUUUS The data in register mi0000 and the data in register mi0001 are added and the result is stored in register mi0002 Next the data in register mi0003 is subtracted from the data in register mi0002 and the result is stored in register mi0004 Chapter 5 In register mi0002 the addition data in the midst of operation is stored Stee E E E E E 5 7 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Integer 1 15 us Data flow language Adaiian g us Basics Real number 1 13 us Two input numerical values are added and the result is output The operation can be made even if their types are different Howev
3. lt Abnormal flag of each node gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h 5h 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 20h 15 14 13 12 11 10 9 8 71 6 5 4 3 2 4 21h 16 22h 32 23h 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 24h 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 25h 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 26h 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 98 27h 112 28h 128 29h 144 2Ah 160 2Bh 176 2Ch 192 2Dh 208 2Eh 224 2Fh 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 Appendix 6 Appendix ae ee eee ee eee RRR ERR RE REE RR ER RR ERR RE RRR ES Ee 2 Own node control table word offset value 48 30h 73 49h It controls the data concerning the setting of the own node Each setting data is assigned as shown in the figure below Node number 1 byte Notused O Node name 10 bytes Manufacturer s model 10 bytes State ofthe own node Toye o nousa State ofthe FL net 1 byte M Common memory area 1 Transmittal area size 2 bytes Common memory area 2 Foremost address of transmittal area 2 bytes Minimus alowable frame interval 1 bye Notus Token monitoring tme 1 byte Notused Protocol version 1 byte
4. lt Matters requiring attention when using M_RECV gt The same as M_SEND See lt Matters requiring attention when using M_SEND gt lt Error status gt Name Code Contents Abnormal parameter 177 B1h When 0 has been input as the receiving data storage variable size Channel close 199 C h When the destination of communications has been closed Note If this code has been received then the applicable channel should be closed first and a request for opening should be made once again Abnormal port designation 200 C8h When the destination of communications has not been opened Buffer overflow 206 CEh If data exceeding the designated receiving data size have been received then at this time effective receiving data are stored in the receiving data storage variable Abnormal connection 207 CFh When the connection number that has not been opened is used number When it has been tried to receive using the connection number Chapter 5 that is being received this occurs when 2 M_RECVs are used in parallel with the same connection number Shee tte ig E 5 107 Chapter 5 Explanations of Instruction Words Chapter 5 9 108 Chapter 5 Explanations of Instruction Words lt Example of use of a program 1 gt An example of a program is presented herein to send data from A gt B in a system as given below by means of the channel open M_OPEN message transmittal M_SEND me
5. lt Error status gt Name o feos eones OOOO Abnormal parameter 177 B1h When 0 has been input as the transmitting data storage variable size Abnormal message 195 C3h When no message can be transmitted to the communications transmittal module with which communications are made When there is no response from the communications module with which communications are made When no ACK is returned after transmittal has been completed Chapter 5 Channel close 199 C7h When the destination of communications has been closed Note When this code has been received close the applicable channel once and then make an open request again Abnormal port designation 200 C8h When the destination of communications has not been opened Buffer overflow 206 CEh When the number of transmitted data has exceeded 1017 words versatile communications mode Abnormal connection 207 CFh When the connection number that has not been opened is used number When it has been tried to transmit using the connection number that is being sent this occurs when 2 M_SENDs are used in parallel with the same connection number CE E u E E ig E 5 105 Chapter 5 Explanations of Instruction Words LR eR ee eee Ree RRR RRR RRR RRR RRR RR RRR RE ES ee ee Data flow language MERELY Function 4 Message receiving It carries out message receiving with the destination of communications which has been set in M_OPEN The s
6. 2 The parameters of variable designation format are input one by one starting at the foremost address of variable designation mi0000 lt q Foremost address of variable designation Processing code Variable designation format FD EC ni 0004 ee TCD L EC 4 mi 0005 TCD H FD eH _ Virtual address LL LETT igo virtual address LH 00 ete 0 __ Virtual address HL 00 Virtual address HH BOOOOO RWRITE 00 Fig 2 Relation between the byte block write circuit diagram and the variable designation format Note 1 The channel number of the NP1L FL1 is fixed at 0 Note 2 The data is input which is to be written Channel number k00 _O_ from b00001 as has been designated as 2 the foremost address of the readout data i designation designated by the readout data size 500005 Foremost address of readout data size b00001 Lo 5 88 Chapter 5 Explanations of Instruction Words ae ee eee ee eee RRR ERR EER REE RR ER RR ERR RE RR Ee Ee 2 Word block write It is a message function to write data in units of words in units of 16 bits for 1 address via a network onto the virtual address space 32 bit address space of the destination node For the address map of the virtual address space refer to the specifications of each node Variable designation method 2 write request code FDEE Request message FDEE h FL net Virtual addre
7. It designates the foremost address of the receiving data Parameter address It designates the foremost address of parameters for port initialization RAS information address It designates the foremost address of C_FREE operation information Open status It is a code to show the result of port initialization Transmittal completed It is turned ON when transmittal has been completed 1 scan Transmittal abnormality It is turned ON when an error has occurred in transmittal 1 scan Transmittal status It is a code to show the result of transmittal Receiving completed It is turned ON when receiving has been completed 1 scan Receiving abnormality It is turned ON when an error has occurred in receiving 1 scan Receiving status It is a code to show the result of receiving Receiving data length It stores the received data length RS 485 post number It stores the post number of the versatile communications module Note When using this function secure the function instance memory of 3500 words It can be set in the system configuration definition by choosing property parameter of CPU module For the details of this function refer to the separate manual 9 124 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee 1 Format of the RAS information address Starting from the foremost address designated by the RAS information foremost address parameter are in
8. Reduce the load of the own CPU module 177 B1h Parameter The input exceeded the abnormality specified range of input 193 Cth 195 C3h 199 C7h 200 C8h Channel open abnormality Message transmittal abnormality Channel close and the destination of Port designation abnormality The station number is incorrect The communications mode is incorrect The channel number is incorrect The message transmittal cannot be effected No response sent by the destination of communications has been received The station number is incorrect A response with abnormality code has been received The destination of communications has not supported it The communications are outside the configuration Communications is closed The receiving port number is out of the range of 1 127 The port has already been designated within the resource The destination of communications has not been opened yet Appendix She E E E E E Appendix 37 Appendix Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee The client port numbers are FULL Connection Within the resource 57 number client or more numbers are ADAGAN port number opened simultaneously FULL The number of ports opened has exceeded the specified number The number of data transmitted exceeds 4096 bytes The receiving data exceeds the storage variable size When a v
9. Stee E E E E E 5 71 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee TODINT Integer conversion Data flow language Function 3 Real number i conversion Function The designated data is converted to the designated type and the result is output TODINT the real number input is converted to a 32 bit integer The setting contents of the function argument 1 Transferrer 2 points used even address It designates the address where the input real number data is converted to a 32 bit integer and output 2 Transferee 2 points used even address 1 It designates the address where the sign is output when the input real number data is converted to a 32 bit integer TOREAL the 32 bit integer input is converted to a real number The setting contents of the function argument 1 Transferrer 2 points used even address It designates the address where the input 32 bit integer data is converted to a real number and output 2 Transferee 2 points used even address 1 It designates the address where the sign is output when the input 32 bit integer data is converted to a real number Example of use mr 0000 TODINT mrQQ0 TODINT In the case of TODINT if the setting is made as Argument shown on the right and the data in the input real aoe number register mr0000 is 12 5600 then Transterrer et 0010 13 mi0011 1 even address ou Transferee mi001 1
10. 108 102 f 101 100 99 98 97 96 135 87n 127 126 125 124 423 122 121 120 119 118 117 rre 115 114 113 112 When a remote I O module exists under the control of the remote I O master 0 and it is in a serious failure or in a light failure the bit corresponding to the remote post number of the module is turned ON lt Abnormality information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 eon is a a 2 n e e 7 s s 4 3 2 1 o jon 31 90 29 26 27 26 25 24 23 22 21 20 19 v0 a7 16 eanl ar 46 as a4 43 42 a1 40 30 38 37 a6 05 34 3 32 139 68n 63 62 61 60 59 se o7 56 55 oa 59 52 st 50 49 48 scn 79 78 77 76 vs 74 73 72 71 70 69 68 67 66 65 64 141 0h 95 94 93 92 91 90 9 88 o7 66 es o4 69 62 et 80 142 En 114 110 109 108 407 106 105 104 103 102 101 100 99 98 97 96 arn 127 126 125 124 123 122 121 120 119 118 117 116 as ma ra 112 Hereafter how to read the information in 21 27 is the same as that in 20 Appendix She E E E E E Appendix 29 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 21 Remote I O master 1 I O module configuration abnormality information word offset value 144 90h 159
11. 57 56 55 54 53 52 51 50 49 48 228 E4n 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 229 Esh 95 94 93 92 91 90 69 88 67 86 05 e4 e3 02 et 80 230 E6h 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 98 E7h 231 lt Abnormality information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h Sh 2h 1h Oh 15 14 13 12 1 10 9 8 7 6 5 4 3 2 4 0 232 E8h 15 14 13 12 11 10 9 8 7 e6 5s 4 3 2 1 0 ome 234 EAH 235 EBh 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 236 Ecm 79 78 77 76 78 74 73 72 71 70 69 68 7 6s 6s oF 237 Ebm os 84 o3 o2 ot oo 80 8 a7 86 65 o4 85 2 81 80 238 EEh 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 math Appendix She E E E E E Appendix 35 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 27 Remote I O master 7 I O module configuration abnormality information word offset value 240 FOh 255 FFh readout only lt Configuration information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h 5h 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 co as Ji as 12 m ole lel 7 s s 4 3 2 1 0 342 Fh 243 Fan 63 62 61 60 69 68 57 56
12. Abnormal channel open When an abnormal value is set in 2 201 No vacant port When trying to open more ports than the specified number in 1 communications module 5 86 Chapter 5 Explanations of Instruction Words ae ee eee ee eee RRR ERR REE R EER RE RRR ERR RE RR Ee Ee When a value other than 0 has been set as the variable Tan eroze exceeded designation method and the limitation value of the message data size of the communications module by way of which the reading is made has been exceeded Chapter 5 Stee E E E EE 5 87 Chapter 5 Chapter 5 Explanations of Instruction Words LaR RRR RR RRR RRR RRR RRR RRR RR RRR RRR ERR RRR RE Eee 1 Byte block write It is a function to write data in units of bytes in units of 8 bits for 1 address via the FL net onto the virtual address space 32 bit address space of the destination node For the address map of the virtual address space refer to the specifications of each node Variable designation method 2 write request code FDEC Request message FDEC h FL net Virtual address space 8 bits Destination node EF Response message FEB4 h 0 1 2 Post number of the SX bus 246 CPU number 8 FFFFFFFF Fig 1 Image of the byte block write lt Example of a byte block write program gt This is an example of writing data of 5 words onto the virtual address 64 h and thereafter of CPU connected to the FL net unit of node number
13. If a setting is made as shown on the right when FREE B00000 is turned ON data of the length set in mi0010 is transmitted from g00000 to external Transmit request _9000 __ puhi Transmittal data address g00000 Receiving data address g00200 Also the data received from external equipment is stored in g00200 and the data length is RAS information address g00400 Secor Open status miooo Transmittal completed B00001 Transmittal abnormality B00002 Transmittal status mio001 Receiving completed B00003 E Pp PT SS Chapter 5 9 128 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee E Data flow language AIP interface Function 4 It uses the versatile communications module to perform interfacing with the AIP manufactured by Komatsu The setting contents of the function argument 1 Communications parameter address It designates the foremost address of parameters for port initialization 2 RAS information address It designates the foremost address of the K_AIP operation information B Communications enabled It is turned ON when port initialization has been completed normally showing that communications with AIP are enabled 4 Open status It is a code to show the result of port initialization 5 Transmittal abnormality It is turned ON when an error has occurred in transmittal 1 scan 6 Transmittal
14. 1100 0001 0001 0101 0111 1001 1101 1101 0010 0011 0110 0101 1010 1111 1110 0100 1011 1110 1111 miUU01 Gray code conversion of the data in register mi0000 is performed and the result of operation is stored in mi0001 If the data in register mi0000 is 10 12 is stored in register mi0001 10 1010 1100 12 T T Gray code Integer Chapter 5 5 36 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language 4 Integer 7 06 us Function 2 Insensitive band Real number 6 50 us If the input numerical value is within the range of the insensitive band 0 is output If the input numerical value is out of the range of the insensitive band then the insensitive value absolute value is subtracted from it and the result is output If D3 lt D1 lt D2 0 D3 If D3 lt D1 D2 D1 D3 If D3 gt D1 D2 D1 D3 Example of use E kiddi miQ00l 10 If the data in register mi0000 is greater than the data obtained by sign conversion from the data in register ki0000 10 and is smaller the positive data 10 then 0 is stored in register mi0001 Chapter 5 If the data in register mi0000 is equal to or greater than the data in register ki0000 10 then the result of subtracting the data in register ki0000 10 from the data in register mi0000 is stored in register mi0001 If the data in register mi0000 is equal to or
15. 6h Sh 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 aon fis a is 2 u olelel7 e s 4 3 2 1 0 162 A2h 163 ash 63 e2 61 00 59 se r se 55 sa sa sz st 50 40 148 160 AOh 161 Ath asn 7o 78 77 76 75 74 79 72 71 70 69 oe 67 66 65 os 165 ash 95 94 o3 o2 o1 90 60 a8 o7 s6 85 ea 03 o2 81 00 aen 111 110 109 408 107 106 105 104 103 102 107 100 99 98 97 96 167 A7h lt Abnormality information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 rea anys 1a 13 a2 a ao o Je 7 es 4 2i To mma 170 AA 171 aBh 63 62 61 60 50 se sr se ss s4 sa so st 50 40 48 172 ach 79 78 77 76 75 74 73 72 71 70 69 68 67 66 05 4 173 abn 95 94 93 92 o1 00 eo 08 ev s6 05 e4 03 a2 ot 00 174 Aen 111 140 409 408 107 106 105 104 103 102 101 100 99 98 97 96 175 AFH Appendix She tte E E E Appendix 31 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 23 Remote I O master 3 I O module configuration abnormality information word offset value 176 BOh 191 BFh readout only lt Configuration information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h 5h 4h 3h 2h 1h Oh 15
16. 97 96 5Bh 113 112 5Ch 128 3 5Dh 144 5ER 161 160 5Fh 176 6th 208 62h 225 224 63h al 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 94 95 96 60h 193 192 97 98 99 Appendix 28 Appendix eae ee eee ee eee RRR ERR RE REE RR ER RR ERR RE R RR EE 20 Remote I O master 0 I O module configuration abnormality information word offset value 128 80h 143 8Fh readout only When a remote I O module exists under the control of the remote I O master 0 and it is normal or in a light failure the bit of the remote post number of the applicable module is turned ON Resource running Resource operatior Resource state information information OFF OFF Nonexistent ON Normal ON Light failure OFF Serious failure lt Configuration information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h Sh 2h 1h Oh 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 eon 1s 4 3 2 n ololel7 e s 4 3 2 1 0 em 31 0 20 28 27 26 25 24 25 22 at 20 19 18 17 16 130 82h 131 63h 63 62 61 60 69 58 67 66 55 54 53 52 51 50 49 48 132 8an 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 128 80h 129 81h 139 85h 95 94 o3 92 o1 90 ao ee 7 66 05 e483 2 81 00 134 gen 111 110 109 108 107 406 105 104
17. As for others check the amount of data at each mode 2 The input relay should be kept ON while receiving messages from the startup of the input relay to the startup of the normal flag or error flag Turning the input relay OFF means the temporary suspension of receiving 3 After the temporary suspension of receiving has been made when the input relay is started OFF ON the receiving is restarted At this time even if the connection number receiving data storage variable and receiving data storage variable size are changed it is restarted with the input values before the suspension The changes will not be reflected on the processing of message receiving After the processing of message receiving is over if the input relay is kept ON in the next scan as well then a new processing of message receiving will be started Keep the receiving data storage variable while processing the message receiving If it has been changed the receiving message data will not be guaranteed When the number of data as has been designated by the receiving data storage variable size exceeds the variable size as has been designated by the receiving data storage variable the other variable area may be changed Input the variable size that has been designated without fail as the receiving data storage variable size 7 The program should be created so that any input to the input relay will be made after the normal flag of M_OPEN has been turned ON
18. Data Type and Range That Can Be Handled Kinds Of Br e eer eee 3 1 SFI LOJE Dala i ae ne en eee E cee ee eee eee 3 1 sT NMO D2 gt nee ea E eee ee en ee eee oe 3 1 Kinds of Data Types ss sctasissoeccsc ress eeeeee iorwesencavmaceweeeweresdecuceecee seeceeecieeesees 3 2 32 1 Types ofLogic Dalda eee ne eee een eet eee ete enn ee eee meee 3 2 3 2 2 Types of Numerical Data cccccccccsccceeceeeceeseeeeeceeeeeeceecaeeseeeaeeaeeees 3 2 16 bit integer type i FOFM cccccceeeeeeeeneeeneeeeeceeseeeseneseneeeeeeeesenesenesenes 3 2 16 bit BCD type U fOrM cccceseceeeeeeeeeeeeeneeenecaeseeesenesenseeeeeeesenesenesaaes 3 2 32 bit INTEGEF type W TOMIM scsesecscedesedecedecadssedenncececanetncedecodicedecndeceincateeedie 3 3 32 bit BCD type v fOormM ssssnsnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnmnnn 3 3 32 bit real number type r fOrM ccceec cece eeeeeeeeeeeeeeeeeeseneseneeeneseneseeees 3 4 Relation Between the Logic Data and the 16 Bit Integer Data RRON Peeeeenene see nee ne eee 3 5 Chapter 3 Ste tte E E E Chapter 3 Data Type and Range That Can Be Handled Chapter 3 Chapter 3 Data Type and Range That Can Be Handled eae ee eee ee eRe eR RR ERR EER REE RR ERR RE R RR ERR RES EO Chapter 3 Data Type and Range That Can Be Handled The data handled in the u GPCsx is represented by a label name of 2 digit type plus 4 digit hexadecimal number Also the foremost
19. _ Variable designati FD EF A gnation format t E Effective size 2 ni 0002 TCD L EF TCD H SS FD BUOUUU REREAD BUOUUI 5 Sam fe Fig 8 Relation between the profile readout circuit diagram and the variable designation format iS Note 1 The channel number of the NP1L FL71 is O fixed at 0 Note 2 The size of readout data should satisfy the Channel number koom 0O following Amount of the data to be read out number Variable designation method ki0003 of words lt Size of the received data Foremost address of variable mi0000 Note 3 For the readout data size refer to the profile designation use of the destination node Readout data size ki0004 In the case of the NP1L FL1 the size of Foremost address of readout data size b00001 aan profile is 113 bytes Therefore the word size to be read out should be designated as 57 words Stee tt E E E 5 83 Chapter 5 Explanations of Instruction Words aR RRR RR REE RRR RRR RRR RRR RRR RRR RRR ER RR ERR EES 5 Communications log data readout It is a function to read out from the network the log information of the destination node Variable designation method 2 readout request code FDF5 Response massage FEBD p irati iam ne Node number 2 Fig 9 Image of the communications log data readout lt Example of a setting of communications log data readout argument gt It reads out the communications log data 512 bytes of the FL ne
20. _ Variable designation format FD FO 40 te lP nO TCD H FD Chapter 5 agg BOUUUD REWRITE BODOC Fio Relation between the network parameter write circuit diagram and the variable designation format Note 1 The channel number of the NP1L FL1 is V i 0 alue fixed at 0 Post number of the SX bus ki000 246 Note 2 Note that the address is different from the Channel number ki0001 common memory that is referred to by the kio002 2 FLRAS function Variable designation method ki0003 2 10 Foremost address of variable mi0000 designation Readout data size ki0004 5 90 Chapter 5 Explanations of Instruction Words eae ee eee ee eee RRR ERR EER REE RR ER RR ER RRR RRR Ee EO Foremost address of readout data size b00001 az Chapter 5 Shee E E E E E 5 91 Chapter 5 Explanations of Instruction Words aR RRR RR RRR RR RRR RRR RRR RRR RRR RRR RE RRR ERR ER ee 4 Start stop command It is a function to perform the remote start stop of the destination node from the network Variable designation method 2 stop request code FDF1 start request code FDF2 Request message Stop FDF1 h Start FDF2 h FL net Destination node Response message Stop FEB9 h Start FEBA h Node number 2 Fig 7 Image of the start stop command lt Example of a stop command program gt The parameters of variable designation format are input one by one starting at the foremost
21. numerical data e g i00000 Ste E E E E E 3 1 Chapter 3 Data Type and Range That Can Be Handled LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 3 2 Kinds of Data Types 3 2 1Types of Logic Data There is no particular distinction of types The data that can be handled is 1 ON or O OFF 3 2 2Types of Numerical Data 3 3 Chapter 3 There are the following 5 kinds which will be explained in 3 3 and thereafter 1 16 bit integer type i form 2 16 bit BCD type u form 3 32 bit integer type w form 4 32 bit BCD type v form 5 32 bit real number type r form 16 bit integer type i form It represents a 16 bit integer value signed data as 1 unit 1 word The range of data that is handled internally is 32 768 32 767 8000H 7FFFH Such a numerical data is called a 16 bit integer data 16 bit BCD type u form It represents a 16 bit BCD binary coded decimal data of 4 digit as 1 unit 1 word The range of data that is handled internally is 0000 9999 0000H 270FH Such a numerical data is called a 16 bit BCD data Note The 16 bit BCD data can only be used with regard to a data exchanged with an input and output I O unit I O data 3 2 Chapter 3 Data Type and Range That Can Be Handled eae ee eee ee eee RRR ERR EER REE RR ER RR ERR RRR RR Ee EO 3 5 32 bit integer type w form 3 6 It represents a 32 bit integer value signed data as 1 unit 2 words
22. oom 4 s 2 u oles s 7 e s a s 2110 210 D2h 211 oah 63 62 61 60 59 68 67 56 85 54 53 52 51 50 49 48 212 D4h 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 208 DOh 209 Dth 213 05m 95 o4 93 e291 90 89 88 e7 eo e5 ea aa a2 et 80 214 Den 144 110 409 108 107 106 105 104 M103 102 107 100 99 98 o7 06 215 07h lt Abnormality information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 ist sl w2 w wolels 7 e s 4 3s 2 1 o res ez or 60 50 8 67 56 55 4 59 52 si 50 40 40 Cre 78 77 76 75 74 73 72 71 70 69 68 67 66 05 4 ras o4 os o2 or 00 eo 08 a7 a6 05 e4 03 a2 ot 00 ret 110 109 108 107 106 105 404 108 102 101 100 99 98 97 96 Appendix Appendix 34 Appendix eae ee eee ee eee RRR ERR REE REE RR ER RR ERR RRR RR ERE 26 Remote I O master 6 I O module configuration abnormality information word offset value 224 EOh 239 EFh readout only lt Configuration information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 14 13 12 11 10 9 8 7 2 1 0 15 6 5 4 3 is a 2 u olelel 7 s s 4 3 2 1 0 224 Eh 225 E1h 226 E2h 227 E3h 63 62 61 60 59 58
23. 1 digit of the hexadecimal number can be replaced by the index label X Y Z Examples of a label 10X123 bOy234 mr02AF 3 1 Kinds of Data The data handled in the u GPCsx can roughly be divided into 2 kinds logic data and numerical data 3 1 1Logic Data Logic data is a data that represents logic of 1 bit namely 1 or 0 Logic data is processed by logic operations etc Logic data is stored in a relay and it can be referred to in a program by designating a relay number Chapter 3 The result of operation of the comparison operation symbol is a logic data Points In the u GPCsx that which stores logic data is called a relay 1 in logic data corresponds to the state of ON of a relay and 0 in logic data corresponds to the state of OFF of a relay 3 1 2Numerical Data Numerical data is a data that represents 16 bits 1 word or 32 bits 2 words as 1 unit Numerical data is stored in a register and it can be referred to in a program by designating a register number The input condition of the comparison operation symbol is a logic data Point In the u GPCsx that which stores numerical data is called a register An uppercase character should be used as the initial letter of the relay number of a logic data e g 100000 A lowercase character should be used as the initial letter of the register number of a
24. 3 Chapter 5 There are Passive method for receiving and Active method for transmittal as the open methods For communicating there are open processing for receiving and open processing for transmittal In order to transmit the equipment to which the transmittal is made needs to be ready for receiving and so the open processing of the Passive method needs to be completed first If the input relay is turned ON OFF while in the open state the close processing is performed When reopen is made after the close processing is over it is required that the destination of communications side should be closed first followed by the processing of reopen 5 98 Chapter 5 Explanations of Instruction Words eae ee eee ee eee RRR ER REE RR EER eR ERR RE R RR ERR RES EO lt Details of the arguments gt 1 Station number L H 2 words It sets the IP address of the destination of communications The IP address is set by a hexadecimal number or a decimal number Lower 16 bits should be set to station number L and upper 16 bits should be set to station number H Example When the IP address is 172 16 0 1 the setting should be made as follows ACh 10h 00h Oth 1 2 16 g Station number L 0001 h or 1 Station number H AC10 h or 21488 2 Communications mode The communications mode of the connection to which channel open is made should be set to 1 word data as bit information The
25. 55 4 53 52 st 50 40 48 244 Fan 79 78 77 7e 75 74 73 72 71 70 69 68 67 66 os 4 240 FOh 241 Fh 245 Fsn 95 94 99 92 o1 90 09 a8 87 86 05 e4 e e a1 80 246 Fen 111 140 108 108 107 106 105 104 103 102 101 100 90 98 97 96 247 Fh lt Abnormality information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 24s Feh 15 4 131217 10 918 7 6 5 4 s 2 1 0 249 F8h 250 FAh 251 FBh 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 252 Fch 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 253 FD 95 94 o3 92 91 90 e9 0 e7 06 05 04 3 e2 or 60 254 FEh 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 255 FFh 28 SX bus transmission error rate information word offset value 508 1FCh 511 1FF readout only The number of times of tact in which the SX bus error has occurred out of the 100 000 times of tact that have been executed is indicated by the parts per million ppm If there is 1 time of error out of the 100 000 times the value will become 10 The refresh of the value is made every 100 000 times of execution 908 1FCh Maximum value lower word The maximum value of the transmiss
26. 9Fh readout only lt Configuration information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h Sh 2h 1h Oh 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 oon 1s 4 3 2 n wlolel7 e6 s 4 3 2 1 0 146 92h 147 93h 63 62 61 60 59 58 57 56 65 64 63 62 61 50 49 48 144 90h 145 91h 148 aan 7o 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 149 osh 95 o4 93 92 ot 90 se e a7 ao a5 4 89 e2 or 80 150 96h 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 151 97h lt Abnormality information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 rasp ss w w wolslel7 e s 4 3 2 1 o res ez or 60 50 58 67 56 55 4 59 52 50 40 40 Cre 78 77 76 75 74 73 72 71 70 69 68 67 66 05 64 ras o4 os o2 or 00 eo 08 ov s6 05 ea 03 a2 ot 20 a11 110 409 108 107 106 105 404 108 102 101 100 99 98 97 96 Appendix Appendix 30 Appendix eae ee eee ee eee RRR ERR REE REE RR ER RR ERR RRR RR ERE 22 Remote I O master 2 I O module configuration abnormality information word offset value 160 AOh 175 AFh readout only lt Configuration information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h
27. E E 2 1 Chapter 2 Programming Method Using the u GPC Language TERRE RRR RRR RRR RRR RRR RRR RR RRR RRR ERR RE RRR Ree ee Of the 19 vertical rows each row line comprises a label name part a symbol insertion part and a data comment part In a program that uses crosspoints a programming is made over multiple rows but a program exceeding 19 lines shall be divided in multiple pages using a temporary label 5 Program comment In the programming sheet column 13 can be used for comments as shown in the programming example in the figure below and if a coil is placed with a ladder symbol it is reflected to the position of comment at the applicable contact point lIt is automatically displayed unless it is input at the contact side Note however that the maximum characters that can be input are three 2 byte characters six 1 byte characters and hence consider a character string that is best suited to your identification of it Also as in the first line the position for comments bearing no symbols can be used for comments in its entirety Chapter 2 This program is an example of solution to an exercise problem for training NOOO Oooo 5 5 p0gpz20 Operation Stop When OFF Tso0000 TOO oo ITROOOOH OFF time _ E When ON When OFF a a a a T m J J d l podize Problem 2 _ EE SS S EE Se Lei a a ee ee i I I I I 1 mi 0000 mi i f ES aa ae S re Rt HOS Fal li P
28. Ki0000 ki01FF oe Constant data Load kr0000 krOOFF a siete Of integer pioooo piooo9 tt 10 Real number pr0000 pr0009 si0000 si00FF_ Load Stack register 510000 sr007F Store Load Indx_Z Store 1 The number of patters that can be used varies depending on the setting of the number of points of pattern data 2 No odd number can be used Chapter 4 4 4 Chapter 4 Kinds of Relays and Registers eae ee eee ee eee RRR ERR REE REE RR ER RR ERR RRR RR ERE 3 Shared structure of registers The global register and stack register are in the relation of a shared body to realize the ease of handling The relation of a shared body between the relays integer registers and real number registers of the global memory is given in the table below Among them sr0000 represents a live line data and sr0002 represents Integer Real number Relay name register register sr0000 S10000 i the first argument Integer Real number Relay name register register G00000 G00001 G00002 g00000 G0000F gr0000 G00010 G00011 G00012 g00001 S10020 Si0002 g00002 gr0002 sr0002 g00003 G0003F Note Since the relation of a shared body allows an operation from any register special attention should be paid when using it Chapter 4 Stee ttig E 4 5 Chapter 4 Kinds of Relays and Registers LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 4 3 Outline of the Sp
29. Notused Appendix Shee E E E EE Appendix 7 Appendix Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Node number The number set at the node number setting switch on the front of the NP1L FL1 is indicated in a hexadecimal number Node name The node name set in the FL net parameters in the system configuration definition is indicated For instance if the node name is TOYO DENKI the indication shall be as follows e Manufacturer s model In the case of NP1L FL1 it is specified as NP1L FL1 and indicated as shown in the kaak below 6 State of the own node It shows the state of the own node NP1L FL1 Fh Eh Dh Ch Bh Ah oh oh mh eer 12 141 10 9 8 Zoan 4 40h or etre PO Not used Token monitoring time abnormality 1 abnormality detected Initial setting abnormality 1 abnormality detected Waiting for receiving a frame 1 waiting for receiving Own node number duplicated 1 duplication detected Own node setting completed 1 setting completed 0 not completed Appendix 8 Appendix eae ee eee ee eee RRR ER RRR R EER RE RRR ERR RE RRR Ee Ee e State of the FL net The information on the state of the FL net can be divided into the information shared on the network and the information controlled by each node independently Fh Eh Dh Ch Bh Ah Qh 8h 7h ceececceccscceeseeeeeees 15 14 13 12 11 10 9 8 Zo an Own node partici
30. RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee ia Data flow language Scaling 7 27 us Function 3 j Scaling sum of product operation is added to the input numerical value and it is then output The setting contents of the function argument 1 Gain multiplication coefficient of the sum of product operation 2 Offset addition coefficient of the sum of product Output Input Gain Offset Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below The input waveform is output by means of the gain offset Scaling Gain kr0000 1 0000 Offset Chapter 5 Input Output Shee E E E E E 5 59 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Backlash Bia 8 8 us Function 3 H Backlash a kind of integral compensation is added to the input numerical P and it is then output The setting contents of the function argument 1 Reset Reset operation of input and output short circuiting is commanded 2 Width of backlash W Turn the reset SW ON without fail at the time of starting operation Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below Backlash Reset G00001 Width of backlash krOO0O 20 000 Input Output Cha
31. SX bus should be set at 1 of the destination of communications Channel number is fixed at O For the station number the IP address 192 0 0 9 of the destination of communications should be converted to hexadecimal numbers setting C000 to H and setting 0009 to L Module type number should be set at 0 for it is communication outside of the configuration Communication mode should be set by referring the preceding page Communications submode should be set as with delivery confirmation at the destination node Transmitting port number should be set so that it may not overlap with the receiving port number Error flag BOOOOO will be turned ON if an error occurs when the M_OPEN function has been executed the status A connection number is assigned when the channel open processing has been successfully completed Its result is output to M OPEN Argument Label Value __ Channel number kioo 0 Sub mode Error Flag B00000 Status o ay Status mi0000 mi0001 M_RECV mi0001 Receiving data storage b00002 variable variable size Error Flag B00010 Chapter 5 Ste E E E E E 5 111 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Chapter 5 9 112 Arguments of M_RECV As for the connection number the connection number that has been obtained in M_OPEN is used as it Is In
32. The value that is actually used in a function is the request part of the processing code The number of parameters is set at the foremost address lower 8 bits of the request command are set at the second and higher 8 bits are set at the third Processing code essani Number of Type of message TCD code Note 1 Message function used dai parameters lt a 5 Byte block readout Note 2 65003 FDEB 65203 FEB3 oe a RREN 476 476 bytes variable o a method 2 R_WRIT E Byte block write Note 2 65004 FDEC 65204 FEB4 Vaniabledesiqnation method 22 476 bytes R_READ Word block readout 65005 FDED 65205 FEB5 476 bytes variable designation method 2 Word block write 65006 FDEE 65206 FEB6 R WRIT 476 bytes variable designation method 2 Network parameter readout 65007 FDEF 65207 FEB7 BORAN 56 bytes variable designation method 2 R_WRIT ri Network parameter write 65008 FDFO 65208 FEB8 variable designation method 2 20 bytes ie WRIT Start 65010 FDF2 65210 FEBA R ay variable designation method 2 Communications log readout 65013 FDF5 65213 FEBD R READ 480 bytes variable designation method 2 R_WRIT 10 Communications log clear 65014 FDF6 65214 FEBE variable designation method 2 R_WRIT 11 For use for message return test 65015 FDF7 65215 FEBF variable designation method 2 1024 bytes R_READ E Profile readout 65011 FDF3 65211 F
33. a Nee 6 7 W Explanation 6h Common module It is turned ON when there is abnormality in the common abnormality Note 1 module on the SX bus other than the own CPU module 3h 7h 4 4h 11 Bh User ROM card It is turned ON when the contents of the user ROM card are 12 a a different from those in the memory inside the CPU Ch a 2 The contents to be verified are system definition project and password It is turned ON when abnormality has occurred in the key 13 14 5 Fh switch loader switch for versatile communications switching Dh Other hardware abnormality The CPU module operates as TERM when there is abnormality in the key switch Also it operates as the loader side when there is abnormality in the loader switch for versatile communications switching Eh Battery abnormalit It is turned ON when the voltage of the batteries for data y y backup has decreased or there are no batteries It is turned ON when in the application program either of 1 User light failure the bits of the user light failure flags word offset 18 20 has been turned ON Note 1 The common module is the SX bus directly connected module that does not occupy the input and output area CPU module communications module etc Note 2 Only the product that can handle the user ROM card compact flash card is applicable 5 CPU abnormality factor word offset value 6 6h readout only 0 Oh Operati
34. address where the transmittal data is stored 3 Transmittal data storage variable size It sets the data size in which the transmittal data is stored In units of words 4 Error flag When the message transmittal has not been made normally it is turned ON for 1 scan 5 Status When the message transmittal has not been made normally its contents are output H_ SENT Input Slay fony Normal flag lt Operations of instruction gt 1 Transmittal of messages is carried out to the station having the connection number as has been set to the connection number at the startup of the input relay OFF ON The transmittal processing is not completed within 1 scan 2 When the transmittal processing has been completed normally the normal flag is turned ON for 1 scan 3 When the transmittal processing has not been completed normally the error flag is turned ON for 1 scan and the error code is output to the status lt Matters requiring attention in the instruction gt 1 The amount of data that can be transmitted in 1 message transmittal is 1017 words Versatile communications mode As for others check the amount of data at each mode 2 The input relay is invalid while messages are being transmitted from the startup of the relay input to the startup of the normal flag or error flag 3 Do not change the transmittal data storage variable while messages are being transmitted If it has been chang
35. changed to ki0004 0 then the information of the operation flag of CPU to the master will be stored in b00003 as a numerical value BOOUOD Sb esduters If the SYSRAS function is set as shown on the right then the information on Resource operation start is stored in mi0000 SYSRAS Resource switch setting information is stored in mi0001 Transferrer offset Kio010 0 Resource serious failure factor is stored in mi0002 Transferrer address mioooo Resource light failure factor is stored in mi0004 Number transferred ki0011 6 CPU abnormality factor is stored in mi0OO6 in a numerical value Note Values are given to mi0003 and mi0005 but the user needs not pay particular attention to it Chapter 5 She tte E EE 9 123 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Versatile ae Function 4 communications Function It is a function for versatile communications The setting contents of the function argument 1 2 3 4 9 6 7 8 9 10 11 12 13 14 19 Chapter 5 Transmittal request It starts the transmittal of data When the transmittal is over it needs to be turned OFF by the application Transmittal data length It designates the transmittal data length by the number of bytes Transmittal data address It designates the foremost address of the transmittal data Receiving data address
36. channel number of the NP1L FL1 is Variable designation method ki0003 fixed at 0 Foremost address of variable mi0000 Note 2 Since there are 28 words in the network Casigrancn parameters the readout data size should be Peadout data size ki0004 set at 28 or more Foremost address of readout data size b00001 ae Note 3 Note that the address is different from the common memory that is referred to by the FLRAS function Chapter 5 5 82 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee 4 Profile readout It reads out from the network the system parameters inherent information of the destination node There are 2 parameters as the system parameter Common parameter indispensable Only common parameters are available for the NP1L FL1 Parameter inherent to the device arbitrary Variable designation method 2 readout request code FDF3 Request message FDF3 h FL net Response message FEBB h Destination node Node number 2 Fig 7 Image of the Profile readout lt Example of a network parameter readout program gt The network parameters of the FL net unit of node number 2 are read out The parameters of variable designation format are input one by one starting at the foremost address of variable designation mi0O00 lt q Foremost address of variable designation Processing code mi O00 lt
37. delay time that has been set is added to the input numerical value and the result is output The setting contents of the function argument 1 Reset Reset operation of input and output short circuiting is commanded 2 Delay time T second 3 Sampling time ZT second The number of samples TA T is valid when it is 1000 or less The delay is gone when the reset SW is turned ON Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below Depending on the delay time the input waveform is delayed by T second and then output Delay Reset Delay time krO000 5 0000 Sampling time kr0001 1 0000 Chapter 5 Input Output 5 54 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Constant frequency 8 0 us Function 2 pulse H Function The input numerical value is turned ON OFF at set intervals and then is output The setting contents of the function argument 1 Reset Reset operation of input and output short circuiting is commanded 2 ON time Second The time for turning the output ON should be designated 3 OFF time second The time for turning the output OFF should be designated Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken fro
38. given below Although the graph is the same as ARC since the curve right before the straight line B1 4 is also set a waveform like an S form is output Note Ifthe input value is changed while accelerating OF decelerating an overshooting may occur Goo000 kr0000_ 10 000 Maximum falling rate kr0001 10 000 kr0002_ 0 020 k i k Decreasing decreasing ratio 0 0020 ncreasing decreasing ratio kr0005 0 0020 See ane kro006 0 0040 deceleration ceasing coefficient i 0 ing ri 2 Decreasing rising ratio r0003 0 020 ing 4 l Time Input Output Chapter 5 5 44 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee SIN Trigonometric 196 LES Data flow language function COS 16 8 us Function 3 Inverse trigonometric TAN 30 4 us Kneu ATAN 20 5 us Trigonometric function inverse trigonometric function operation is performed on the input numerical value and the result is output D sin function D2 sin D1 cos function Di D2 cos D1 J tan function Di D2 tan D1 m EE 42 asin function Di D2 sin D1 ab ra acos function Di D2 cos D1 e atan function Di D2 tan D1 Note Only operation with real numbers is valid Example of use mr0000 SIN mrQ001 mr0001 SIN mr0000 Sine of the data in register mrOO00 is obtained and the result of operation i
39. is ON and relay B00001 is OFF relay BO0010 is turned ON In other cases than this relay B00010 is turned OFF Ste tt E E E 5 3 Chapter 5 Chapter 5 Explanations of Instruction Words LaR RRR eR RRR RRR RRR RR RRR RRR RRR RRR RE RRR ERR EE ee RELAY LD language B contact AR 0 02 us If RELAY is OFF the input logic value is output If it is ON the output logic value is turned OFF B as OFF OFF X don t care Example of use E00000 BUOUUI a BOUUI When relay B00000 is ON and relay B00001 is OFF relay BO0010 is turned ON In other cases than this relay B00010 is turned OFF Chapter 5 5 4 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee LD language Coil RELAY H 0 10 us Function It outputs the input logic value to RELAY RELAY X Example of use TOO000 guiz OUUUZ0 BOOOOU When relay 100000 is ON both relay 000020 ON and relay BOOOOO are turned ON When relay 100000 is OFF both relay 000020 and relay BOOOOO are turned OFF Chapter 5 Ste tte E E E 5 5 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee a Load Integer 0 48 us Data flow language Basics REG Store H Real number 0 45 us Load The data in REG is made to be the output numerical value Store The input numerical value is output to REG Example of use ki0000 midon
40. logical codes or numerical codes arranged in series It must be placed between networks without fail While 10 sets of symbols can be inserted into 1 circuit the loading must always be made after the storing Example of use BOUUUUU E0000 BOOUUE BUOUUS BUOUU4 BUOUUS BOUUUE BOOUUY BOUND BOOUDS bb a 4P P 4P _ 4t 4 4 BOUUUA BOUDUB BOUUUC BOODOD BOODUE BOOOUF T l bb qt 4t IAlrba SS aii Chapter 5 5 48 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Termination of the LD language processing of a RETURN 14 0 us subroutine program Function The subroutine program is terminated It is used when in a subroutine program you wish to terminate it under a certain condition Example of use a a ern e1000 sills Subroutine program o 0040 i0006 sifd0A When relay 100000 is OFF the data in register si0002 the data in ki0000 5 is stored in register si0008 and data sioo40 100000 5 is loaded to register mi0000 The data in stack siooo6 zoooog Cd register si0006 the data in 20009 is stored in register si0008 mioooo i si000A and loaded to register mi00071 si000A miooo si However when relay 100000 is ON although the data 5 in stack register si0002 is stored in stack register si0008 as it is the data in stack register si0006 at the time of 10000 has been turned ON is stored in si0
41. occupied The range of data that is handled internally is 2147483648 2147483647 80000000H 7FFFFFFFRH Such a numerical data is called a 32 bit integer data Note The 32 bit integer data can only be used with regard to a data exchanged with an input and output I O unit I O data 32 bit BCD type v form lt represents a 32 bit BCD binary coded decimal data of 8 digit as 1 unit 2 words occupied The range of data that is handled internally is 00000000 99999999 00000000H OSFSEOFFH Such a numerical data is called a 32 bit BCD data Chapter 3 Note The 32 bit BCD data can only be used with regard to a data exchanged with an input and output I O unit I O data Ste E E E E E 3 3 Chapter 3 Data Type and Range That Can Be Handled LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 3 32 bit real number type r form It represents a 32 bit floating point format data as 1 unit 2 words occupied The range of data that is handled internally is 6 2573187 x 10 6 2573187 x 10 Such a numerical data is called a 32 bit real number data For reference The 32 bit real number data is handled internally as follows There is no need for a user to pay attention to it 1 x 2 71 x 1 f s value of the sign part e value of the exponent part f value of the mantissa part normalized to a 23 bit binary number aP Sen ur Q 2 31 30 23 22 0 1 bit 8 bi
42. oer ie eres 1 mounted 0 not mounted being mounted Note 1 7 7h User ROM card write protect 1 write prohibited Note 1 0 write enabled effective when 1 6 is ON 8 8h STOP position It is turned ON when the key switch is in the STOP position 9 9h TERM position lower It is turned ON when the key switch is in the TERM position lower TERM position It is turned ON when the key switch is in the TERM upper Note 2 Note 3 position upper 11 6h 11 6h RUN RUN postion RUN postion is turned ON when the key switch is in the RUN position 12 15 a Note 1 Only the product that can handle the user ROM card compact flash card is applicable Note 2 The TERM position flag is turned ON when the key switch is in an unstable state as well Note 3 In the case of the high performance CPU module that can handle the user ROM card it is turned ON when in the UR8M_TERM position Appendix Appendix 14 3 2 2h Appendix ae eee eee eee eR RR ERR RE R Re ERR ER RR ERR RRR RR Ee Resource serious failure factor word offset value 2 2h readout only It is a failure factor that causes the stop of operation of the resource 1 CPU system Explanation 0 Oh CPU abnormality It is turned ON when a serious failure has occurred in the own CPU module 1 1h Power supply abnormality It is turned ON when disconnecting of power supply has occurred It is turned ON when abnormality has occurred in the ow
43. of input and output short circuiting is commanded 2 Lower limit frequency gt 0 0 positive value Lower limit frequency of 3 db decrease 3 Upper limit frequency gt 0 0 positive value Upper limit frequency of 3 db decrease Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below Filter 60000 Lower limit frequency kr0000 0 0001 Upper limit frequency kr0001 0 0500 Chapter 5 Shee E E E E E 5 51 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Function 2 PID compensation 14 8 us PID compensation for the input numerical value is performed and the result is output The setting contents of the function argument 1 Reset Reset operation of input and output short circuiting is commanded 2 Hold Integration stop SW 3 Zero clear A relay is designated that commands the zero reset 4 Proportioning gain 5 Integral gain Integral coefficient in the second unit system the time during which the output value reaches the input value second 6 Differential gain Differential coefficient in the second unit system when the change in input is 1 0 per second 1 0 is output 7 MAX limit The upper limit value output is designated 8 MIN limit The lower limit value output is designated When the reset is
44. of the function argument 1 Input register It connects external equipment of which output data is switched by a strobe 2 Output register Strobe output to be connected to the strobe input of external equipment 3 Name of the foremost matrix input register It designates the foremost register name in which the data that has been input by the strobe output is stored one by one Example of use Input register i00000 register name for data input of 1 word Output register 000001 output register name for generating strobe pulses Name of the foremost matrix input register mi0010 i00000 data that has been input by the strobe output of 000001 000010 00001F is stored one by one from mi0010 to mi001F i00000 1 OO0010 ON mi0010 1 Scan time of the task in 00000 2 000011 ON mi0010 2 A eee 00000 3 ON mi0010 3 Boonie ne i00000 16 00001F ON mi001F 16 000011 15 00000 17 000010 ON mi0010 17 00000 18 000011 ON mi0011 18 000012 if ee 00001F 3 Hi Transfer from Transfer from i00000 mi0010 j00000 mi001 Fy Transfer from i Transfer from i00000 mi0011 i00000 gt y Transfer from mi0010 i00000 gt mi0012 5 118 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee FLEAS FLEAGSS FLEASY Obtaining RAS information of the Function 4 FL net Function It obtains the RAS information of th
45. smaller than the data obtained by sign conversion from the data in register kiOQOOO 10 then the result of adding the data in register kiOO000 10 from the data in register mi0000 is stored in register mi0001 Ste tte ig E 5 37 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Integer 12 4 us Pattern E Approximation conversion of the input numerical value by line segmentation with pattern memory is performed and the result is output The pattern data should be set beforehand by the pattern data in the tool The data for the horizontal axis should be arranged without fail in the order of the value starting from the smaller data followed by the greater data The horizontal axis corresponds to the input value of a function and even if the data that has deviated from the pattern data has been input it is converted by extending the line having the inclination of the pattern data being then output If the input is smaller than P1 it is converted to the approximation straight line that has been obtained by extending straight line P1 P2 and the result is output If it is greater than P6 it is likewise converted to the approximation straight line that has been obtained by extending straight line P5 P6 and the result is output Output Input Output Chapter 5 5 38 Chapter 5 Explanations of Instruction Words ae eee eee eee eR RR ER REE RR
46. status It is a code to show the result of transmittal 7 Receiving abnormality It is turned ON when an error has occurred in receiving 1 scan 8 Receiving status It is a code to show the result of receiving Details of the communications parameters Nome tem oY words Post number of the versatile communications module It sets the post number on the SX bus of the versatile communications module It designates the interface port of the versatile communications 1 Port number module 0 RS 232C port 1 RS 422 port a It designates the message transmittal and receiving port 5 number with the versatile communications module 1 127 Note It should not overlap with other message transmittal and receiving port number Message port number Chapter 5 It designates the transmission rate bps Transmission rate 0 1200 1 2400 2 4800 3 9600 4 19200 5 38400 6 57600 bps Note When using this function secure the function instance memory of 3500 words It can be set in the system configuration definition by choosing property parameter of CPU module For the details of this function refer to the separate manual Shee E E ig s 9 129 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Chapter 5 Example of use AUUOOU k AIP K_AIP Argument Label Value Contents of arameter address p NS ki0000 RAS information address mio Ki00
47. the receiving data storage variable the foremost address of the label in which receiving is made should be set and in the receiving data storage variable size the number of words of the data to be received should be set Error flag B00010 will be turned ON if an error occurs when the M_RECV has been executed Its result is output to the status Chapter 5 Explanations of Instruction Words ae eee eee eee eR RR ER REE RR EER RE RRR ERR RE RRR Ee EO bUOU0E l bUUUOS a 10 bUUUD4 H 10 bUUUOS H 2 bUUUOE H E000 M_OFEN BUUZU1 BUUZO1 M_SEND EATE 3 Arguments of M_OPEN Post number of the communications SX bus should be set at 1 of the destination of communications Channel number is fixed at 0 For the station number the IP address 192 0 0 8 of the destination of communications should be converted to hexadecimal numbers setting C000 to H and setting 0008 to L Module type number should be set at 0 for it is communication outside of the configuration Communication mode should be set by referring the preceding page Communications submode should be set as with delivery confirmation at the destination node Transmitting port number should be set so that it may not overlap with the receiving port number Error flag B00000 will be turned ON if an error occurs when the M_OPEN function has been executed Its result is output to the status A c
48. tte E E E 5 75 Chapter 5 Explanations of Instruction Words LaR RRR RR RR RR RRR RRR RRR RRR RRR RRR RE RRR ERR EE ee lt About the variable designation method gt The contents to be set at the variable designation method of R READ and R_WRIT are indicated herein The variable designation method is specified for each object of access of the destination of communications 1 When the variable designation method 0 It is designated when the memory on CPU of the u GPCsx system is used via a network not dependent on its type CPU number Memory type gt Lower address Higher address Standard memory Memory type code System FB memory System memory Note Do not designate other values than 1 3 5 9 and 10 as the memory type code User FB memory 2 When the variable designation method 2 It is designated when using the equipment that is connected to a network of OPEN specifications such as JPCN1 Effective size Address 1 press Note In this case effective data should be input in the lower 8 bits of an array of which width is 16 bits This is because 8 bit data cannot be handled in the uGPCsx system Chapter 5 5 76 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee lt Support message list gt A support message list for the message transmission to be set in the variable designation address is indicated below
49. turned ON short circuiting between the input and output is performed whereby an arbitrary value can be preset Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below Filter Hole e000 Zero clear Go0002 si Proportioning gain kr0001 kr0002 Integral gain kr0001 3 0000 Differential gain kr0002 0 0100 MAX limit MIN limit kr0004 30 000 Chapter 5 Time 5 52 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language A Function Temporary delay response to the input numerical value is output The setting contents of the function argument 1 Reset Reset operation of input and output short circuiting is commanded 2 Time constant T second Turn the reset SW ON without fail at the time of starting operation Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below During the period in which the input has been changed by the time constant the output values are plotted to draw an arc Filter Input Output Chapter 5 Ste E E E E E 5 53 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Delay Function 2 Time delay eS ical The
50. 000 h __ Virtual address HL 00 banana PRE an Lae Virtual address HH 00 BOOOO1 Fig 4 Relation between the word block readout circuit diagram and the variable POSi nUMper Ol HE SADUS noms designation format Channel number ki0001 ki0002 Variable designation method ki0003 Note 1 The channel number of the NP1L FL1 is Foremost address of variable mi0000 fixed at 0 designation Note 2 The size of the readout data should satisfy Readout data size oa the following Foremost address of readout data size b00001 ha Amount of the readout data number of words lt Size of the received data 5 80 Chapter 5 Explanations of Instruction Words eae ee eee eee eee RRR RRR ERR EER RE RRR ERR RE RRR Ee 3 Network parameter readout It is a message function to read out network parameters of the destination node from Network Variable designation method 2 readout request code F DEF In the network parameter readout the following information is read out Request message FDEF h O Node name FL net 4 5 Not used Response message FEB7 h Destination node 9 10 Manufacturer s model Node number 2 14 n 16 Size of common memory area 17 Foremost address of common memory area 18 Size of common memory area 19 NO used Ime for the timeout of token monitoring os 21 E NouS Fig 5 Image of the network parameter data 22 gee 23 State of the upper layer 24 Seti
51. 01 If the data in register mi0000 is 10 then 11 is stored in register mi0001 Chapter 5 mi0000 0000 0000 0000 1010 10 ki0000 0000 0000 0000 0011 3 mi0001 0000 0000 0000 1011 11 5 16 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Exclusive OR of 1 15 us Basics numerical values j Exclusive OR operation of two input T _ values is performed and the result is output DI Ds D3 D1 D2 De Note Only operation with integers is valid Example of use miQ0U0 miV0Ul ki Gul J Exclusive OR operation of the data in register mi0000 and the data in register ki0001 3 is performed and the result is stored in register mi0001 If the data in register mi0000 is 10 then 9 is stored in register mi0001 Chapter 5 mi0000 0000 0000 0000 1010 ki0000 0000 0000 0000 0011 mi0001 0000 0000 0000 1001 Ste E E E EE 5 17 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language BELAY Integer 1 52 us l a contact Basics Real number 1 33 us If RELAY is ON the input numerical value is output If it is OFF the output numerical value is made to be 0 If RELAY ON D2 D1 If RELAY OFF D2 0 Example of use ni0000 100000 milni pH When relay 100000 is ON the data in register mi0000 is stored in register mi0001 When relay 100000 is O
52. 01 ro Communications enabled B00000 a Open status mi0000 ee Transmittal abnormality B00001 Transmittal status miooo Receiving abnormality 800002 Receiving status miooo2 The above setting is to insert the versatile communications module to SX post number 1 thereby connecting with AIP by means of the RS 232C at 19200 bps 5 130 Appendix eae eee eee eee eR RR ERR EER REE RR ER RR ERR RRR RR Ee Ee Appendix Appendix 1 Symbols and each name ccccceseceeeeeeeeeeeseeeeeeeseneseneeaeees A 1 Appendix 2 Link data area inside the FL net module E A 4 Appendix 3 System memory area OTZ WOTSI A 12 Appendix 4 Error status related to the message function A 37 Shee tht E E E Appendix Appendix Appendix Appendix S8e C2 RP Be eCBC Ra BCR RCE RCC EEE BCE EERE EUatUaeCthUaethUcathlUcaetUaethUe Us hme Appendix 1 Symbols and each name 1 LD language Table 5 1 A contact B contact Logic reversal Coil Coupling element Coupling element load store ee ae a O HRARAR lt JFPAKAKH RETURN H 2 Data flow language basics Table 5 2 Store amp load c contact Compare high Compare low Compare equal Priority given to a Priority given to a upper level lower level poole Logical sum Exclusive OR Addition Subtraction Multiplication multiplication a Local constant Local constant Division Remainder integer real number ee be ee
53. 1 0 since the equipment is the FL net module ET 3 l Foremost address of variable mi0000 a Channel number is fixed at 0 in the case of the designation FL net module Readout data size ki0004 i 1 Node number is the 2nd FL net module and a aeuiee seh PEAQOUC QALA 60000 a hence it is 2 Error Flag Goo000 mi0010 For the variable designation method since the FL net module is used in this case it is 2 For the foremost address of variable designation the foremost label should be designated from which the parameters to be set will be read In this case it is mi0000 Next the number of parameters should be set to the designated label and in this case since it is 2 mi0000 2 and then referring to the support message list lower 8 bits 240 FO of the applicable request command 65008 FDFO should be set to mi0001 and upper 8 bits 253 FD should be set to mi0002 As for the readout data size since there are 10 words in the case of the network parameters a value not smaller than this figure should be set Concerning the foremost address of the readout data the foremost address of the label from which the data to be written should be designated Error flag should be turned ON for 1 scan when there has been a readout failure Status should indicate the contents of error when the error flag has been turned ON With the foregoing setting information on the module that is mounted on other base boa
54. 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 ist a 2 u olelel 7 s s 4 3 2 1 0 an res e2 er 60 so se 57 se 55 54 53 s2 51 50 49 40 7o re 77 76 75 74 7a 72 71 70 60 68 67 66 65 4 176 177 178 179 180 181 182 183 BOh U gt Nr uU WW W O A OQ ee 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80_ Ben 111 110 109 408 107 106 105 104 403 102 101 100 99 98 97 96 B7h OR m AM AM A lt Abnormality information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h 5h 4h 3h 2h 1h Oh 15 14 13 12 1 10 9 8 7 6 5 4 3 2 1 0 14 eeh 15 14 is 2 mo o 8 7 esale 2 A 186 BAh een 63 62 o1 eo 59 se 57 56 55 54 53 52 51 50 49 48 188 BCh 79 78 7 76 75 74 73 72 71 70 69 68 67 66 65 64 189 BDh 95 94 93 92 91 90 69 88 e7 86 05 e4 03 e2 et 80 BEh 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96_ 191 BFh Appendix Appendix 32 Appendix eae ee eee ee eee RRR ERR REE REE RR ER RR ERR RRR RR ERE 24 Remote I O master 4 I O module configuration abnormality information word offset value 192 COh 207 CFh readout only lt Configuration information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 15 14 13 12 n 10 9 8
55. 2 am 63 62 61 60 50 68 67 56 55 64 53 52 51 50 49 48 en 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 oh 95 94 93 92 91 00 89 88 87 86 85 84 83 a2 81 80 aan 141 110 109 108 107 406 105 104 103 102 101 100 99 98 97 96 4Ch 128 4Dh 145 144 4Eh 161 160 4Fh 176 50h 193 192 51h 208 52h 225 224 53h 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 68 69 70 71 72 73 74 75 4Bh 113 112 76 77 78 79 80 1 2 3 19 SX bus directly connected module degeneration mode information word offset value 84 54h 99 63h readout only When a module exists on the SX bus which cannot be degenerated or to which individual reset cannot be made the bit of the SX bus post number of the module is turned ON Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 15 14 13 142 1 10 9 8 7 6 5 4 3 2 4 0 54h 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 55h 17 16 56h 32 57h 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 58h 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 59h 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 5Ah 111 110 109 108 107 106 105 104 103 102 101 100 99 98
56. 3 Data flow language function 1 Table 5 3 Absolute value Sign conversion 1 complement Increment Decrement One half conversion po 2 2 ejej a Gray code binary Appendix Shee tte E EE Appendix 1 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 4 Data flow language function 2 Table 5 4 Insensitive band Pattern Differential Phase PI compensation ARC compensation compensation average compensation Constant cycle Variable setting Upper and lower Unconditional Conditional Nae Hysteresis l l pulse pattern limiter subroutine subroutine KRAAK KRAAK 5 Data flow language function 3 Table 5 5 Cotangent _ OFF timer ON differential OFF differential Backlash poewes correction BI Bi a Scaling Binary Gray Division and Integer Real number conversion oe conversion conversion a ae orgs epee NT TORERE zo Appendix Appendix 2 Appendix ae ee eee ee eee RRR ER RRR R Re ERR ERR RE RRR Ree RR Ee 6 Data flow language function 4 Table 5 6 read write transmittal receiving i Paik oa ee TE i Mea a Mae ee So ee Matrix information of the information of the Set Reset Data transfer FL net system memory a eee STEP ED om MOV Obtaining RAS Obtaining RAS Obtaining RAS Varsaiie Data transfer Counter information of the information of the information of the oo communications FL net FL net system memory KOVAD UJPDONWH FLRASS FLRASY ST SRA
57. 5 Explanations of Instruction Words ae eee eee eee eR RR ER REE RR EER RE RRR ERR RE RRR Ee EO Number Contents of words It designates the receiving method of data 0 none When the data has been received the receiving is completed 1 variable length When the data enclosed by the foremost code and the end 13 Frame detection code has been detected the receiving is completed 2 fixed length When the received data reaches the number of receiving bytes the receiving is completed 44 Number of At the time of fixed length it designates the number of receiving bytes At receiving bytes the time of variable length it designates the number as 0 pAb TO OS At the time of variable length it designates the number of bytes of the 15 of the foremost cod foremost code 16 Foremost code 1 er a Foremost code 5 Number of bytes At the time of variable length it designates the number of bytes of the end of the end code code a End code 1 At the time of variable length it designates the end code 3 ae Endcode5 At the time of variable length it designates the foremost code It is a setting as to whether a horizontal parity is added or not which is used to check the transmission error of text data 0 none 1 setting to be made in the order of upper lower Upper byte of BCC Lower byte of BCC 2 setting to be made in the order of lower upper It sets the position and range of calculation o
58. 58 59 60 AJO o _ m m m n m nmn mn m mm mm m m m ee ee 61 Dm 159 168 187 156 158 184 153 62 151 150 149 148 147 146 145 a e2 Em 175 174 173 172 171 470 169 168 167 166 165 168 163 162 161 160 63 Fn 19 190 109 186 187 186 185 764 109 182 181 180 179 78 177 176 64 aon 207 206 205 208 203 202 201 200 199 198 197 196 196 194 199 19 65 41h 223 222 221 220 210 218 217 216 215 214 213 212 211 210 209 208 66 42h 239 238 287 236 295 234 233 292 291 230 229 206 227 226 225 224 67 aan 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 Appendix She E E E E E Appendix 27 Appendix 84 85 86 87 88 89 90 91 2 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 18 Configuration abnormality information word offset value 68 44h 83 53h readout only When a module exists on the SX bus and it is in a serious failure or in a light failure the bit corresponding to the SX bus post number of the module is turned ON Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 aml is a as a2 n o o e 7 l e sl 4 3 2 1 ash 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 46h 3
59. 7 6 5 4 3 2 1 0 cois 14 is 2 o 9 el7 e s 4 3 2 1 0 194 C2 195 C3h 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 196 C4h 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 192 COh 193 Cth 197 csh 95 94 93 92 91 90 so 8 o7 06 05 oa 09 e a1 00 198 cen 111 140 109 408 107 106 105 104 103 102 101 100 99 98 97 96 199 C7h lt Abnormality information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h Sh 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 20 cen 15 4 13 wll wlslsl7 el s 4 3s 2 1 o 201 Cah 202 CAn 203 cen 63 62 61 eo so se 57 se ss oa sal se ot 50 49 48 204 com 79 78 77 76 7s 74 73 72 71 70 69 68 67 66 65 64 205 con 95 94 93 92 91 90 eo ee 7 86 05 e4 0a 2 et 80 206 CEn 411 110 109 108 107 406 105 104 108 102 401 100 99 98 97 96 207 CFh Appendix She E E E E E Appendix 33 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 25 Remote I O master 5 I O module configuration abnormality information word offset value 208 DOh 223 DFh readout only lt Configuration information gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h 5h 4h 3h 2h 1h Oh 15 14 13 12 1 10 9 8 7 6 5 4 3 2 1 0
60. CE E E E E E EE 5 65 Chapter 5 Explanations of Instruction Words LaR RRR eR RRR RRR RRR RR RRR RRR RRR RRR RE RRR ERR EE ee Example of use BOOOOO TSTD BOOO01 After relay B00000 is turned ON upon lapse of the time set by TSTD relay B00001 is turned ON Within 1 scan BOOULO TRIG BOUUL1 After relay B00010 is turned OFF upon lapse of the time set by TRTC relay B00011 is turned OFF B00010 B00011 Chapter 5 Within 1 scan 5 66 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee ON differential USUC Data flow language Function 3 OFF differential DSDC It has gathered the ON differential relay US UC and the OFF differential relay DS DC in one line and the operation is the same except that it is without rid 1 scan delay USUC Ifthe input bit is turned ON 1 scan is turned ON without the 1 scan delay BOOUUO sooga UCOOOD BODOC 4 With this what was written in 2 lines can be written in 1 line B0000 USUE a E e a LEGS DSDC Ifthe input bit is turned OFF 1 scan is turned ON without the 1 scan delay BOOUIO DSOO00 DCOUOG BOUT 1 4 With this what was written in 2 lines can be written in 1 line BOOULO Ds De bh E e a TTE G Chapter 5 Stee E E E E E 5 67 Chapter 5 Explanations of Instruction Words aR RRR RR RR RRR RRR RRR RRR RR RRR RRR RRR RR ERR EES ee Example of use B
61. D type V fOPM cece cece cece eecceeeeeeceeeaeeceeceeeseeceeeseeeeeeseeseeeseeeaes 3 3 3 7 32 bit real number type r fOorM cece cece eee eeeceeceeeceeeeeeseeceeeseeeeeeeeeeaes 3 4 3 8 Relation Between the Logic Data and the 16 Bit Integer Data TEOR eea A N 3 5 Chapter 4 Kinds of Relays and Registers cccccscceeeeeeeeeeeeeeeeeeeeeeseeeeees 4 1 4 1 Relation Between the Local Variable and Global Variable and the Subprogram s nsneenninsineinnnrrnrnnnrnrrnrnrrrirnrnrrrrnrrnrrninnrnrrnrnrrnrrnrnrrnennrenne 4 1 4 2 Number of Relays and Registers That Can Be Used cccceeeeeees 4 2 4 3 Outline of the Special Relay ccccccscccscceecceeseeeceeceeeceeceeeeeceeeaeesaes 4 6 Chapter 5 Explanations of Instruction Words Appendix Appendix 1 Symbols and each name cccccceecceceeeceeeeeeceeseeceeeaeeeeeeaeeeeees A 1 Appendix 2 Link data area inside the FL net module ccccccseeeeeeeeees A 4 Appendix 3 System memory ALEa ccccccccecceeeceeceeeceeeeeeceeeeeeseeeseeseeeaeeseeees A 12 Appendix 4 Error status related to the message fuNnction ccccceeeeeeeee A 37 She E E E E E 5 Chapter 1 Outline aR RRR RR RR RRR RRR RRR RRR RRR RRR RRR ERR RE RRR Eee ee Chapter 1 Chapter 1 Outline Chapter 1 Outline eae eee eee eee eRe Ree REE eR REE RR ER RR ERR RE RRR Ee EO Chapter 1 Ste tte E E E Chapter 1 Outline
62. D1 gt 0 D2 D1 Example of use a mi 000 FY _ x __4 10 Absolute value conversion is performed to the data in register ki0000 10 and 10 is stored in register mi0000 krQUO0 mrUUoo 4 5 000 Chapter 5 Absolute value conversion is performed to the data in register kr0000 5 0000 and 5 0000 is stored in register mrOOO0 5 26 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee ir flow language Complement operation of the input numerical value is performed and the result is output Dl De D2 NOT D1 Note Only operation with integers is valid Example of use mi 0000 mild Efe 4 Complement operation of the data in register mi0000 is performed and the result is stored in register mi0001 If the data in register mi00O0 is 10 11 is stored in register mi0002 mi0000 0000 0000 1010 10 mi0001 1111 1111 0101 11 Chapter 5 Shee E E E E E 5 27 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Integer 0 04 us Function 1 is added to the input numerical value and the result is output D2 D1 1 Ea De D2 D1 Example of use ee mi QU00 i i If 1 is added to the data in register ki0000 10 and the operation result 11 is stored in register mi0OO0 Chapter 5 5 28 Chapter 5 Explanations of Instruction
63. EBB variable designation method 2 480 bytes 00000 59999 ie ig 12 Permeable type message 0000 EA5F M_SEND M_RECEIVE R_READ Address readout 100 64 150 96 variable designation method 0 Note 4 sa R_WRIT et Address write 101 65 151 97 variable variable designation method 0 _ method 0 Note 4 pe Example 200 C8 250 FA 492 bytes is a hexadecimal representation Since the u GPCsx does not support the data type of byte it cannot accept the byte block readout or byte block write request given by the destination node It is a value containing TCD codes The maximum size is the maximum value of the memory area designated by each CPU module The number of parameters is the number of parameters set by the variable designation Chapter 5 For instance when the network parameter read is used at the foremost address of the variable designation the number of parameters 2 in this case is set at the first lower 8 bits EF of the value of the request part FDEF of the processing code are set at the second and higher 8 bits FD are set at the third Shee tte E EE 5 7 7 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee lt Virtual address space gt Memory of the uGPCsx Virtual address space Input and output memory OOUOUOUOON Standard memory O2HOOUOUOON 040 00000h system memory OOOOUOUOUON In
64. EER RE RRR ERR RE RRR Ee EO Data flow language Differential Function 2 compensation O ele Three times averaging of differentiation values of the input numerical value is performed and the result is output The setting contents of the function argument 1 Differential gain differential coefficient in the second unit system when the change in input is 1 0 per second 1 0 is output For the sake of safety averaging is made against a rapid change As the operation parameter mrxxxx can also be used in addition to krxxxx in which case each parameter should be set by the user program Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below Differential compensation Differential gain kro000 10 000 In a place where the input value is constant inclination equaling to 0 the differential value is also 0 and thence the output becomes 0 The output value changes only in a part where the input value is always changing Note In the trend graph given below the rapidly changing part is not displayed on the graph Chapter 5 Shee E E E E E 5 39 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Function 2 Phase compensation 10 2 us Phase compensation for the input numerical value is performed and the result is output The setting conte
65. Eee 16 Resource configuration abnormality information word offset value 50 32h 51 33h readout only It is used to recognize in the application program the sate of the resource CPU module lt When in redundancy mode gt Resource running Resource operation f i i Resource state information information ON Normal in operation or being stopped ON Light failure in operation or being stopped OFF Serious failure being stopped or dropped lt Resource running information gt w B Name Explanation 0 0h CPUO configuration 1 1h CPU1 configuration 2 2h CPU2 configuration 3 3h CPU3 configuration It is turned ON when a CPU module of the applicable number l exists on the SX bus and the resource running status is normal 4 4h CPU4 configuration or in a light failure 50 32h 5 5h CPUS configuration 6 6h CPU6 configuration 7 7h CPU7 configuration 8 8h 15 Fh lt Resource operation information gt O Oh CPUO abnormality 1 1h CPU1 abnormality 2 2h CPU2 abnormality 3 3h CPU3 abnormality It is turned ON when a CPU module of the applicable number exists on the SX bus and the resource running status is ina 4 4h CPU4 abnormality serious failure or in a light failure 51 33h 5 Sh CPU5 abnormality 6 6h CPU6 abnormality 7 7h CPU7 abnormality 8 8h Appendix Appendix 26 Appendix ae ee eee ee eee RRR ER RRR R Re ERR ERR RE RRR Ree RR Ee 17 Co
66. Error flag should be turned ON for 1 scan when there has been a readout failure Status should indicate the contents of error when the error flag has been turned ON With the foregoing setting information on the module that is mounted on other base board can be obtained Chapter 5 Note 1 Note that the value of the network parameter is similar to that of the FLRAS function but the address is different Note 2 Note that the contents of data at the time of reading are different from those at the time of writing Stee E E E E E 5 85 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Remote data write aa Function 4 RWRITE It writes data onto the equipment that is connected to the network by designating the address directly via a communications module The setting contents of the function argument 1 Post number of the SX bus Post number of the SX bus of the module by way of which the communications are made 2 Channel number Channel number of the communications module 3 Node number Node number of the destination of communications 4 Variable designation method It should be designated for each object of access of the destination of communications see the next page 5 Foremost address of variable designation It designates the foremost address by which the type of data to be written is designated 6 Written data size It designat
67. FF 0 is stored in register mi0001 Chapter 5 5 18 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language bueoniact BELAY Integer 1 52 us Basics Real number 1 33 us If RELAY is OFF the input numerical value is output If it is ON the output numerical value is made to be 0 If RELAY ON D2 0 If RELAY OFF D2 D1 Example of use mge 100000 milli HH When relay 100000 is OFF the data in register mi0000 is stored in register mi0001 When relay 100000 is ON 0 is stored in register mi0001 She tt E E E 5 19 Chapter 5 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language conta RELAT RELLY Integer 1 31 us Basics Real number 1 15 us Depending on the logical value of RELAY either of the two input numerical values is selected and output If RELAY ON D3 D1 If RELAY OFF D3 D2 If RELAY ON D3 D2 If RELAY OFF D3 D1 Example of use miQUU0 IOUU00 miQ0Ue miil When relay 100000 is OFF the data in register mi0001 is stored in register mi0002 When relay 100000 is ON the data in register mi0000 is stored in register mi0002 Chapter 5 kiQU00 IOUU00 mills J ki 0001 b When relay 100000 is OFF the data in register ki0000 3 is stored in register mi0003 When relay 100000 is ON the data in register ki0001 6 is stor
68. O1F Store Latch relay ose LRO1FF Load Reset coil Latch register 1r0000 1ro01F Ir001F Store L LCO1FF L Latch contact one ae eae Ic0000 Ic001F Ic001F ON differential relay us0oo0 us001F F Sloe ON differential register Differential ee CO1FF oaa contact poo oE uc001F Coil DS0000 DS01FF DSO1FF Load OFF differential relay ds0000 ds001F Store OFF differential DC0000 register Rerama ae FF Load contact ds0000 ds001F ds001F Coil TS0000 TSOODF Load instantaneous Shines contact ts0000 ts0009 tsO009 Store ON timer register Ea TOODE koad 14 Timing contact td0000 td0009 Lapse of time paene in00DF ef Gol TROOOO TROODF Load instantaneous OFF timer contact ELN tr0009 Store OFF timer register ELN TOODE koad 14 Timing contact tc0000 tc0009 Lapse of time tf0000 tf00DF Chapter 4 Shee ttig E 4 3 Chapter 4 Kinds of Relays and Registers aR RRR RR Ree RR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee ee Number used Data number Data Maximum direction Eoo NROOBF Load Reset coil nr0000 nrO00B nrO0OB Store Poun Ee NPE NPOOBF Load Preset coll Se np000B Store NU0000 NUOOBF NUOOBF Load UP coil nu0000 nu000B Store DOWN coil coe NDOOBF Load ee nd000B Store Caen Counter register e nz0000 nz000B Present value O Er Load of the count N00000 n000BF nOOOBF 512 Integer mi0000 mi01FF Load perience nteger mi0000 mi oad rr0000 mrO0FF Store
69. OOUUO USOO00 UCOOO BOOOL BOOOUO US UC s l e a S L L When B00000 is turned ON after a delay for 1 scan B00001 is turned ON for 1 scan but B00002 is turned ON for 1 scan immediately after B00000 has been turned ON without the 1 scan delay B00000 US0000 UCO0000 B00001 a B00002 BOO nsoooo DCoood ROOO11 BOO SIC e sii When B00010 is turned ON after a delay for 1 scan B00011 is turned ON for 1 scan but B00012 is turned ON for 1 scan immediately after B00010 has been turned ON without the 1 scan delay LO S l 2 a9 is O B00010 DS0000 DC0000 B00011 B00012 5 68 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee DET RESET Data flow language Function 4 When the input bit is turned ON the designated output bit is kept to ON When the input bit is turned OFF the designated output bit is kept to OFF SET Note While SET is ON the contact set by the argument is turned OFF when RESET is turned ON The setting contents of the function argument 1 SET coil It designates the relay to be kept to ON RESET Note While RESET is ON the contact set by the argument is not turned ON even when SET is turned ON The setting contents of the function argument 1 RESET coil It designates the relay to be kept to OFF Example of use BOOUUO miUU00 BOOUIO mi0 milo lf BOOOOO ON then BOO0O10 ON and t
70. QQQA and remains there Since z00009 is a 1 mili counter if the relay is turned ON when it is 100 then 100 is stored in siO00A And if 10000 is turned ON then the data in si0006 is stored there Chapter 5 Stee tt ig E 5 49 Chapter 5 Explanations of Instruction Words aR RRR RR Ree RR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee ee Data flow language The arithmetic average value of the data corresponding to the input numerical value that start at the foremost address as has been set by the argument is obtained and the result is output The setting contents of the function argument 1 The foremost part of buffer addresses mrXXXxX If the input is smaller than 1 then it is regarded as 1 and the value of the first data is returned Example of use mr OOO 14 000 krQUOU erQUU0 a 0000 Chapter 5 Argument of arithmetic average Foremost part of buffer addresses mr0000 If the setting is made as above the arithmetic average reads the data in register krOO00 5 0000 and the argument and the result of the operation 12 000 mrO000 mr0001 mr0002 mr0003 mr0004 5 is stored in register grOOOO 5 50 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee ir flow language Frequency limitation to the input numerical value is performed and the result is output The setting contents of the function argument 1 Reset Reset operation
71. RR EER RE RRR ERR RE RRR Ee EO B Data flow language Binary Gray code Function 3 The input numerical is read as an integer data converted to a Gray code and it is then output Note It performs the reverse operation of the Gray code conversion ee Pay attention not to mix them up Example of use m m Ma BTOG m 00 l The data in register mi0000 is read as a 16 bit integer converted to a Gray code and it is then output If the data in register mi0000 is 10 then 15 is stored in mi0001 D1 D2 D1 D2 D1 D2 D1 D2 Integer Gray Integer Gray Integer Gray Integer 0000 0000 0100 0110 1000 1100 1100 0001 0001 0101 0111 1001 1101 1101 0010 0011 0110 0101 1010 1111 1110 0011 0010 0111 0100 1011 1110 1111 Chapter 5 10 gt 1010 gt 1111 15 fo f to f Input Integer Gray code Output She tt E EE 5 63 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee DTVMOD Data flow language n Function 3 Divisor and remainder Function The divisor for the input numerical value and the remainder are output The setting contents of the function argument 1 Divisor integer Number to divide the input numerical value 2 Remainder integer Register to store the remainder Example of use mi0000 DIYMOD mi0001 If the argument of DIVMOD is set as shown on the mess right the remainder when the data in register mi0000
72. RR Ee 4 Counter relay register AEN a SHON P0003 a a Al LLTD 15 AIER m 1allllllllllllllllllllllllllllllMMl Mt A H BOO0aS a S WH HHA TH Nz oggi r a Bn a nooooo boon H n00000 The initial value of the counter is 0 Next the up coil is turned ON and the counter value is increased by 1 Also the zero detection contact is turned ON at 0 initially but since 1 has been added it is not 0 so it is turned OFF And in addition the up coil is turned ON and the counter value is increased by 1 to become 2 The preset coil is turned ON and the counter value becomes 15 The preset value should be set at the lower side of the NP coil The down coil is turned ON and the counter value is decreased by 1 The reset coil is turned ON and the counter value becomes 0 and the zero detection contact is turned ON Shee E E E E E 4 9 Chapter 4 Chapter 5 Explanations of Instruction Words eee ee eee eee eR RR eRe Ree REE RR ER RR ERR RE RRR Ee Ee Chapter 5 Explanations of Instruction Words Chapter 5 Ste tte E E E Chapter 5 Explanations of Instruction Words Chapter 5 Chapter 5 Explanations of Instruction Words eae ee eee ee eee RRR ERR EER REE RR ERR RE RRR ERR Ree Ee Chapter 5 Explanations of Instruction Words How to read the table It shows the name It shows each e of each symbol symbol drawing It is classified for Execution the operation of time each symbol It sh
73. S C FREE AlP interface o o o oo K_ATP Appendix Shee E E E E E Appendix 3 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Appendix Appendix 2 Link data area inside the FL net module The participation flag configuration flag etc of the FL net module are assigned to the memory inside the FL net module These data can be referred to by using the functions FLRAS1 8 and 9 The word offset values are of decimal representation Inside brackets are of hexadecimal representation Word offset O Oh Participation flag C 16 words 15 Fh 16 10h Configuration flag _ 16 words 31 1Fh 32 20h a Abnormal flag a 16 words 47 2Fh 48 30h Own node control table o 26 words 73 49h 74 4Ah Network control table W 6 words 79 4Fh 80 50h Participation node control C table 1024 words 1103 44Fh 1104 450h Participation node control M table 1792 words 2895 B4Fh 2896 B50h FL net error log 66 words 2961 B91h Appendix 4 Appendix ae ee eee ee eee RRR ER RRR R Re ERR ERR RE RRR Ree RR Ee 1 Participation flag configuration flag abnormal flag word offset value O Oh 47 2F It shows the state of each node connected to the FL net The state of each node is judged by the combination of the participation flag configuration flag abnormal flag and the state of node configuration registration inside the system configuration definition l
74. TovoDenx uc PCsx Series Programming Manual Instruction Word IGEO07A Introduction eae ee eee ee eee RRR ERR RE REE RR ER RR ERR RE R RR EE Thank you very much for purchasing TOYO FA Digital Controller GPCsx This Programming Manual Instruction word is to explain the way of thinking in programming relays and registers and each instruction word Read this Programming Manual carefully to use the u GPCsx properly Also read the relevant manuals given in the following table as well Description Manual Number Contents u GPCsx Series Programming IGJO58A Explanations of the menus icons etc of Manual Operation the TdsxEditor as well as of all the operations of the TdsxEditor u GPCsx Series Programming IGJO59A It explains how to configure and prepare Manual Technique programs u GPCsx User s Manual IGJO60A It explains the system configuration Hardware specifications of hardware of each module etc of the u GPCsx Series Caution 1 Reprint and reproduction of this manual in part or in its entirety are prohibited 2 Please note that the contents of this manual are subject to change without prior notice for improvements 3 Regarding the contents of this manual we have tried to make them as much complete as possible but if you have noticed any ambiguities and or errors etc please do not hesitate to contact our sales office stated at the back of this manual When you do so please in
75. Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Integer 0 04 us Function 1 is subtracted from the input numerical value and the result is output Example of use De mi ii i H If 1 is subtracted from the data in register ki0000 10 and the result of operation 9 is stored in register mi0000 Chapter 5 Stee E E E EE 5 29 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Function The result of multiplying the input numerical value by one half is output D Dr D2 D1 2 Note Only operation with integers is valid Example of use De mi 0000 E tHE 10 The data in register kiO0000 10 is halved and the result of operation 5 is stored in register miOO0O This instruction is used when the data in an integer register is to be multiplied by one half with the sign being retained Chapter 5 5 30 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Function The result of multiplying the input numerical value by two is output Dl D D2 D1 2 Note Only operation with integers is valid Example of use a mi QOO Ee E 10 The data in register ki0000 10 is multiplied by two and the result of operation 20 is stored in register mi0000 This instruction is used when the data in an int
76. address of variable designation mi0O00 They become FD F2 in the case of the startup m lt q Foremost address of variable designation m Processing code mip lt 4 Variable designation format FD F1 aE nilo 7 TCD L F1 z TCD H FD 253 BUUUUU EWRITE BOUUUI Fig 8 Relation between the stop command circuit diagram and the variable designation format im Note 1 The channel number of the NP1L FL1 is Argument Label _ Value 5 fixed at O S Note 2 Although there is no actual data to be Channel number kioo 0O E written a setting is required for the foremost O address of readout data asome roe designation Foremost address of readout data size b00001 5 92 Chapter 5 Explanations of Instruction Words eae ee eee ee eee RRR ERR EER REE RR ER RR ERR RE RRR Ee Ee 5 Communications log data clear It is a function to clear the log information of the destination node from the network Variable designation method 2 clear request code FDF6 Request message FDF6 h eee Destination node Node number 2 Fig 9 Image of the communications log data clear lt Example of a communications log data clear program gt It clears the communications log data of the FL net unit of node number 2 The parameters of variable designation format are input one by one starting at the foremost address of variable designation mi00O00 i 10000 4 F
77. ae eee eee eee eR RR ER REE RR EER RE RRR ERR RE RRR Ee EO Chapter 1 Outline In the GPCsx series we have developed a new language for the GPC as a control language for application programs without using computer languages assembly language C language etc The GPC language employs the ladder network that has been conventionally used in sequencers etc for logic operations and D F S data flow symbol that has been used in analog computers etc for numerical operations and is a new programming technique that enables the visual programming on programming tools that make use of personal computers 1 The u GPC language features the following It has an optimum language system that has revolutionized the concept of computer languages It does not describe the processing procedure of a microprocessor but describes the processing procedure of data It is a graphic display language and makes a program very easy to understand thus enabling a programming with minimum errors It is possible to program both logic operations and data processing on the same screen Since it automatically converts the types of data handled integer BCD type real number etc there is no need to use type conversion instructions in a program If a data is used by dividing it conversion instructions can be used Since abundant time series functions for control such as S letter operation etc can be utilized a function that has been
78. alue other than Buffer 0 has been designated 206 CEM Sverflow as the module type number the limitation on the communications module has been exceeded In the RWRITE function the destination of transmittal has detected abnormality Connection A connection number 207 CFh number that has not been abnormality opened is used Verification A verification error has 05 05h been detected in the error return of the message ee The designated address 68 44h i f has exceeded the designation effective range abnormality The number of words for Memory size the reading out and 69 45h Me A writing of addresses has exceeded the effective range Appendix 38
79. ariable designation format are input one by one starting at the foremost address of variable designation mi0O00 m lt Foremost address of variable designation g Processing code mi QO lt _ Variable designation format FD F7 a 47 H Effective size 2 i0002 A EJA BUOUUD RWEITE BUOUUI Te See Fig 12 Relation between the message return circuit diagram and the variable designation format Q is O Note 1 The readout data size is fixed at 10 Argument Label _ Value Note 2 Transmittal receiving and verification of 512 words are automatically performed Channel number kioo 0 When a verification error is detected error status of 05 h is sent out Variable designation method ki0003 Foremost address of variable om designation Foremost address of readout data size b00001 5 94 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Example of use The figure blow is an example of the readout of network parameters In this configuration 1 unit each of CPU and FL net module are mounted on 1 base and communications are carried out between 2 bases by means of the FL net m1 UU00 p L mi QUI Zod mi UU oT i EO0000 F _READ GUOUU1 For the post number of the SX bus the post Argument Label _ Value number of the SX bus of the destination of communications should be set In this case Channel number kiooo
80. ation of communications lower 16 bits 4 Station number H Station number on the network of the destination of communications upper 16 bits These do not have any meaning at the time of communications inside the configuration lt see details of the arguments gt 5 Module type number 0 Communicating messages with a module inside the configuration 1 Communicating messages with a module outside the configuration 6 Communications mode It sets the communications conditions of the connection lt see details of the arguments gt 7 Communications submode lt see details of the arguments gt 0 gt It sets without delivery confirmation at the destination node 1 It sets with delivery confirmation at the destination node 3 Transmitting port number It sets the port number of the destination of communications Notes 1 2 9 Receiving port number It sets the receiving port number Notes 1 2 10 Error flag When abnormal termination of the open processing occurs it is turned ON for 1 scan 11 Error status It displays the contents of the error lt see details of the arguments gt 12 Connection number A connection number is assigned when the channel open processing has been completed Note 1 The port numbers that can be set on the SX bus by this function are 1 127 Note 2 If the communications module by way of which communications outside the configuration are made is a PC card interface modu
81. ay for 1 scan differential contact UCOO0O00 is turned ON for 1 scan When coil DS0000 is turned OFF after a delay for 1 scan differential contact DCOO000 is turned ON for 1 scan Aside from these there are USUC function and DSDC function to realize the same functions Stee E E E E E 4 7 Chapter 4 Chapter 4 Kinds of Relays and Registers LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee ON OFF timer relay register BOO0S0 4 W HHH TSH 00 10 THOOOO b _ aa BH BOOUED BAR FF OTE 00 105 TCOOOO Ras H B00050 TS0000 TDOOOO B00051 B00060 TROOOO TC0000 B00061 When coil TS0000 is turned ON after the set time has lapsed timing contact TDOOOO is turned ON TDOOOO is turned OFF within 1 scan after TS0000 has been turned OFF The timer setting value should be input at the lower side of the TS coil Where S stands for second M for minute and H for hour and the setting can be made from 0 01 seconds to 2 hours When coil TROOOO is turned ON timing contact TDOOOO is turned ON within 1 scan after TROOOO has been turned ON TDOOOO is turned OFF after the set time has lapsed The timer setting value should be input at the lower side of the TR coil Where S stands for second M for minute and H for hour and the setting can be made from 0 01 seconds to 2 hours 4 8 Chapter 4 Kinds of Relays and Registers ae eee eee eee eR RR ERR RE R Re ERR ER RR ERR RRR
82. ber 6 2895 B4Fh 6 FL net log word offset value 2896 B50h 2961 B91h History on the communications of the FL net is stored 2896 B50h Number of times of arrival 2 words Number of times of transmittal error of Zone NSAN the socket part 2 words 2900 B54h Not used 2 words Number of times of receivin 2902 B56h gt words g 2904 B58h b of times of receiving error 2 2906 B5Ah Not used 8 words 2914 B62h Number of times of cyclic transmission error 2 words 2916 B64h Not used 2 words Number of times of message 2918 B66h transmission re transmittal 2 words Number of times of message 2920 B68h transmission re transmittal over 2 words 2922 B6Ah Not used 2 words 2924 B6Ch Number of times of message receiving error 2 words 2926 B6Eh Not used 4 words 2930 B72h 2932 B74h 2940 B7Ch 2942 B7Eh 2944 B80h 2946 B82h 2948 B84h 2950 B86h 2952 B88h 2954 B8Ah 2956 B8Ch 2958 B8Eh 2960 B90h Number of times of ACK error 2 words Not used 8 words Number of times of token multi recognition 2 words Number of times of token destruction 2 words Number of times of token reissue 2 words Not used 2 words Number of times of token monitoring timeout 2 words Not used 2 words Number of times of frame waiting state 2 words Number of times of subscription 2 wor
83. ber operation Da D3 D1 D2 De Example of use miQUU0 mrQUul mr g l The data in register mr0000 is subtracted from the data in register mi0000 and the result is stored in register mr0001 Chapter 5 Although the data in register mi0000 is an integer since the data in register mrO00O0 is a real number subtraction is made after type conversion of integer real number has been made Ste E E E E E 5 9 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Multiplication Integer 1 17 us Basics Real number 1 13 us Two input numerical values are multiplied and the result is output Operation can be carried out even if the types are different However an integer is converted to a real number which is then subjected to the real number operation D3 D1 D2 Example of use miQUU0 mrQUul mrJUOd Multiplication of the data in register mi0000 and the data in register mrOO00 is performed and the result is stored in register mr0001 Chapter 5 Although the data in register mi0000 is an integer since the data in register mrO0O0 is a real number multiplication is made after type conversion of integer real number has been made 5 10 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Integer 2 48 us Data flow language Division g us Basics Real number 2 32 us Di
84. ble The maximum number of variables that can be used in any POU program within a project is given in the table below Maximum direction 8 192 8192 1 3 1 3 2 C Output register 512 Output data oLJO000 oLJO1FF Announcing relay 32 68 System Z00000 ZO7FFF Announcing register 2 048 information z00000 z007FF Globalive 131 072 Coil contact GOOOOO G1FFFF y 8 192 00000 g01FFF Global register Global data 9 g Store ae 65 536 Load Retain relay 4 096 ri0000 riOFFF Retain regist Retain dat ae 2 048 0000 rrOFFF 65 536 Coil contact FIOOOO FIFFFF Network relay Lead Store Network register fee Network data fi0000 HOF FF 2 048 frOO00 frOFFE 1 The number used should be a total number of inputs and outputs 2 No odd number can be used 3 In the O u BCD 4 digit v BCD 8 digit or w 32 bit integer is to be indicated which represents the type of an I O register Chapter 4 Load tore Load Load 2 2 is 4 2 Chapter 4 Kinds of Relays and Registers eae ee eee ee eee RRR ERR REE REE RR ER RR ERR RRR RR ERE 2 Local variable The maximum number that can be used in each subprogram is given in the table below Number used Data Data number Maximum direction Auxiliary relay Coil contact B00000 BOO1FF Load Auxiliary register Auxiliary data eae b0001F Store LS0000 LSO1FF LSO1FF Load Set coil Is0000 IsO
85. cated with is not used Appendix She tte E E E Appendix 5 Appendix Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 16 17 18 19 20 21 22 23 24 25 26 2 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 2 Configuration flag word offset value 16 10h 31 1Fh readout only It is turned ON when the node on the FL net is registered in the system configuration and actually participates in the FL net lt Configuration flag of each node gt Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h 5h 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 6 5 4 3 2 1 0 10h 15 14 13 12 11 10 9 8 7 61 5 4 3 2 14 11h 16 12h 32 13h 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 14h 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 15h 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 16h 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 17h 112 18h 128 19h 144 1Ah 160 1Bh 176 1Ch 192 1Dh 208 1Eh 224 1Fh 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 SE ee ee Oe ee Oe ee Eee Ee OL 3 Abnormal flag word offset value 32 20h 47 2Fh readout only It is turned ON when the node on the FL net has dropped or does not participate in the FL net
86. ch should be written as 0 01 S The 10th line is a blank line The 11th 12th lines are a circuit to read a numerical data from the 16 bit input module add a constant 123 to it divide the added value by 60 to obtain a remainder and turn the lamp on if the remainder exceeds 30 Since the results of operations in the process are stored in registers when debugging you can monitor the result while checking these At the right side of the comparison instruction symbol comes the logic operation symbol The 13th line is a blank line The 14th 19th lines show an example of a pattern generation circuit that uses a latch relay and a change ratio limitation function we call it ARC It generates triangular waves continuously The wave height value can be set from the input module using numerical values of BCD type The cycle can be changed indirectly by changing the alteration ratio parameters of the ARC function In the 18th line and the 19th line real number operation integer operation and BCD Operation are mingled and the patterns are continuously generated by switching the input value of ARC by means of the C contact The C contact at BOOOOF is for test use and it directly output the input value by turning it on using a debugger Chapter 2 Stee tt E EE 2 3 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 Chapter 3 Data Type and Range That Can Be Handled eae ee eee ee eee RRR RE RRR ERR EER RE RRR ERR RE R RR Ee Ee Chapter 3
87. contents of the 1 word shall be as follows 16 t4 13 12 117 10 9 8 7 6 54 3210 a Communications mode 001 Fixed shared buffer 01G Versatile TOO 101 b Communications e 00 RENGE m n p otodo F P 11 Fullpassive C DRUVE 1 UDP IP 10 Unpassive Passive e Data swap Passive gt nil there is Chapter 5 a Communications mode It sets the communications mode of the channel to be opened b Communications protocol By means of the communications protocol of each connection it should be set whether TCP IP is used or UDP IP is used CE E u E E ig E 5 99 Chapter 5 Explanations of Instruction Words Open method When the open is made by TCP IP after the open processing of the node that performs the Fullpassive Unpassive open passive open has been completed the open of the node that performs the Active open positive open is carried out CPU 1 Fullpassive Unpassive open m 4 linked by 5 av i connection complete Ethernet Open request 13 Active open 3 Open completed Chapter 5 5 100 Chapter 5 Explanations of Instruction Words eae eee eee eee ee eR ER REE RR EER eR ERR RE RRR RE RRR Ee Ee Active open method It carries out a positive open processing against other nodes that are in the state of open passive of TCP connection Fullpassive open method It carries out a passive open processing only against the specific nodes that have been set in the comm
88. ds Number of times of self drop 2 words Number of times of drop by skipping 2 words Number of times of recognition of the drop of other node 2 words Appendix CE E u E E E E E Appendix 11 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Appendix 3 System memory area 512 words The system memory is an area of which use is determined in which flags etc to inform the operating state or abnormal state of the system of the u GPCsx series are assigned Appendix These data can be referred to by means of the SYRAS1 SYSRAS functions offset value is of decimal representation representation e Word offset Inside brackets The word are of hexadecimal e Word offset v O Oh Resource operation status 128 135 Remote I O master 0 1 1h Resource switch user ROM state 80h 87h I O module configuration information 2 2h Resource serious failure factor 136 143 Remote I O master 0 3 3h Notused 88h 8Fh I O module abnormality information 4 4h Resource light failure factor 144 151 Remote I O master 1 5 5h Not used sis 90h 97h I O module configuration information 6 6h CPU abnormality factor 152 159 Remote I O master 1 7 7h Notused 98h 9Fh O module abnormality information 8 8h 9 9h Memory abnormality factor 160 167 Remote I O master 2 10 Ah 11 Bh SX bus abnormality factor AOh A7h I O module configuration information 12 Ch Ap
89. e 15 Fh User serious failure factor 31 0 Oh User serious failure factor 32 wow 15 Fh User serious failure factor 47 10 User light failure word offset value 18 12h 20 14h 0 Oh User light failure factor O 15 Fh O Oh 15 Fh 0 15 Fh W sow User light failure factor 15 When either of the bits is turned ON by the application SEPAL ae program CPU generates the light failure Operation U l U l 19 13h O continues 15 Fh iaht failure factor 31 When the bit being ON is turned OFF by the application ia o ee eee program recovery from the light failure state is effected Oh ser light failure factor 32 wow A 15 Fh User light failure factor 47 Appendix She E E E EE Appendix 19 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 11 System definition abnormality factor word offset value 22 16h 29 1Dh readout only W Explanation manure level o0 neus SS C SSCSC S S S OE E EEA It is turned ON when the contents of the Serotec 1 1h Sian anal system configuration definition do not match Failure y the actual system configuration It is turned ON if the tact cycle is set at 0 5 ms in a system in which multiple common Serious System operation definition 2 2h abnormality modules are connected in 1 configuration or failure in a system where a standard CPU is used It is turned ON when the SX bus directly 3 3h System DO
90. e 15 Fh I O refresh jam output data by the SX bus has not been made for failure more than 128 ms Dh met 11 Bh It is turned ON when there is abnormality in the processor bus access when there is an access abnormality factor in the destination module It can be turned OFF by the application program 15 Fh Not used Pt 0 Processor bus rie access abnormality lt wl IS w S x Serious failure 14 Eh Processor bus access abnormality Application abnormality factor word offset value 12 Ch 13 Dh readout only B Name Explanation Failure level System definition It is turned ON when there is abnormality in the Serious 0 Oh ay abnormality system definition failure 1 1h Application program It is turned ON when there is abnormality in the Serious 12 abnormality application program failure Ch E oo Notused SSCS 1 1h Application program It is turned ON when there is abnormality in the Light failure 13 abnormality application program Dh Appendix 18 OO lt Appendix Appendix ae eee eee eee eR RR ERR RE R Re ERR ER RR ERR RRR RR Ee 9 User serious failure word offset value 14 Eh 16 10h 0 Oh User serious failure factor 0 wen 15 Fh User serious failure factor 15 0 Oh User serious failure factor 16 15 Fh a ae When either of the bits is turned ON by the application program CPU stops due to the serious failur
91. e FL net FLRAS1 It can obtain only 1 bit of information of the word designated by the argument The setting contents of the function argument 1 Transferrer word offset It designates by the number of words the place where the desired information is The default is O For details see below Transferrer bit offset The default is O For details see below CPU flag 8 or 9 8 1st unit of FL net module 9 2nd unit of FL net module Data flow language When 0 is designated as the bit offset if the store is a a coil then the information of the Oth bit ON OFF is output b a register then the information of all the bits of the designated word offset is output When other value than 0 is designated as the bit offset if the store is a a coil then the information of the designated bit ON OFF is output b a register then the bit value of the designated word offset is output as a numerical value FLRAS8 9 gt It can obtain information in the designated multiple words The setting contents of the function argument 1 Transferrer offset The default is O For details see below 2 Transferee address It designates the foremost address where the RAS information of the FL net is obtained 3 Number to be transferred It designates the number of words to be transferred Chapter 5 Note When 2 units of FL net modules are mounted on 1 base board FLRAS8 amp obtains the FL net module informati
92. e RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Jump instruction JPHEE EH LD language Label instruction KAARIN Jump Jump to the designated circuit or designated label is performed Label It is used for a label to which a jump is made It is regarded as one of the logic circuits XXXX stands for the circuit number of label name 4 digits Note 1 A jump cannot be performed between subprograms or subroutines Note 2 A program that loops at one point can also be created but it must not be a permanent loop Note 3 On the right side of the label there should be a storing in a register Example of use BOOUOU JPABCD krO000 mrig 10 000 ABCD mi Q00U L H When relay B00000 is ON a jump is made to the line of label ABCD and the programs between it and label ABCD are not executed Chapter 5 When relay B00000 is ON the data in register kr0000 10 000 is stored in register mrOOOO and 1 is stored in register mi0OO0 When relay B00000 is OFF the data in register kr0000 10 000 is not stored in register mrOO0O and 0 is stored in register mi0000 Stee tte E E E 5 47 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Connective 0 10 us LD language Connective 0 06 us Storing and loading of the result of logical operation and numerical operation to and from the intermediate memory is performed It is used when there are 12 or more
93. eA BODON 10 eA BOUOUS a TT ooo NZ0000 ST ooo S l LE EE nO0000 mionn A Chapter 5 J With this what was written in 5 lines can be written in 1 line BOOUOU 5 70 UPDOWN Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee HOV O MOYWD Data flow language Data transfer Function 4 MOVW MOVWD Function It transfers the designated data to the designated label in units of words The setting contents of the function argument 1 Label of transferrer 2 Label of transferee 3 Offset of transferrer 4 Offset of transferee Number to be transferred Example of use aiae When the setting is made as shown on the right the data of 5 words is transferred from miOOOA to b00004 mi000A b00004 mi000B b00005 mi000C b00006 mi000D b00007 mi000E b00008 It designates the foremost address from which the data is transmitted It designates the foremost address where the data is received It designates the number of interval between the label of transferrer and the address from which the data is transmitted for MOVW only It designates the number of interval between the label of transferee and the address where the data is received for MOVW only It designates the number of data to be transferred MOVW Label of transferer i000 Label of transferee b00000 Number to be ki0002 5 transferred Chapter 5
94. ecial Relay 1 latch relay register BOOOO AR TF O CiCT TES LLT BOOOOL AAS TF OTF LEOO00 bR _ _ _ _a__a _ Bn B00000 B00001 LS0000 LROOOO When set coil LS0000 is turned ON latch contact LCOOOO is turned ON and 000020 is kept turned ON When reset coil LROOOO is turned ON latch contact LCOOOO is turned OFF and 000020 is kept turned OFF The latch contact LCOOOO delay for 1 scan from latch coil Chapter 4 The latch coil is usually turned OFF when power supply is made open If you wish to retain the latch coil even when power supply is open use the retain memory to transfer by means of the memory transfer definition or use SET RESET functions set the retain relay as a parameter Memory transfer definition before operation Memory transfer definition after operation RI0000 LC0000 LC0000 RI0000 In order to realize the same functions within the subroutine use SET RESET functions by means of SI0000 in the subroutine 4 6 Chapter 4 Kinds of Relays and Registers S88 G2 RB BeCBC Re B CREB CEE REC ERCECEE ERC EEE ECECSeCUEUUatUaethUaethUcacthUcaetUaethUeUs hme 2 ON OFF differential relay register BOLO be aoa UCOo00 iaa H po00z0 LA e LaLllllllllllllllllllllMMD 0 G H DOOOO0 m SYN a F Be a B00010 US0000 UC0000 h B00011 i B00020 DS0000 DC0000 B00021 Chapter 4 When coil US0000 is turned ON after a del
95. ed the Full Passive side send a close request to the Active side Asa result of this at the Active side when the open has been normally completed and the data transmittal has been carried out there occurs Error Status C7h compulsory close When the port number of the transmitting side does not match with that at the receiving side a transmittal error occurs and compulsory close is carried out by the transmitting side with an occurrence of Error Status C7h compulsory close When communications between the u GPCsx and another u GPCsx are made in some cases after continuous transmittal of 1 word has been made the receiving side may depending on the timing of M_RECV return to CPU a response combining the 1 word that has been received first and the 1 word that has been received next Hence when the number of transmitted words is 1 word the buffer area at the receiving side should have the size of 2 words When the number of transmitted words is 2 words or more the buffer area at the receiving side should have the same number as the number of transmitted words When data is transmitted after converting it to ASCII codes in the versatile communications mode of UDP IP if the number of data exceeds 1019 bytes the transmitting side transmits it by dividing it into 2 times Therefore the receiving side needs to make a receiving request twice Also the buffer area at the receiving side needs to be larger than the transmitted data
96. ed the transmittal data is not guaranteed 4 When the number of data as has been designated by the transmittal data storage variable size exceeds the variable size as has been designated by the transmittal data storage variable the data in excess of the latter size may be indefinite Input the variable size that has been designated without fail as the transmittal data storage variable size 5 The program should be created so that the ON flag is input to the input relay after the normal flag of M_OPEN has been turned ON Chapter 5 9 104 Chapter 5 Explanations of Instruction Words ae ee eee ee eee RRR ER RRR R Re ERR ERR RE RRR Ree RR Ee lt Matters requiring attention when using M_SEND gt 1 In the versatile communications mode of UDP IP no delivery confirmation or flow control is carried out When the processing of receiving cannot keep pace the receiving buffer becomes full and the subsequent data will be destroyed Therefore the number of completed transmittal at the transmitting side does not match with the number of completed receiving at the receiving side Also when the receiving buffer has become full about 10 seconds are required for releasing the buffer and hence the receiving operations may be stopped during the time When in Full Passive open an open request has been received from the destination of communications of which IP address and port number do not match after connection has been once establish
97. ed ON when being operated in 1 1 redundancy mode the pair of CPU 4 5 is set to with interlock switching setting It is turned ON when being operated in 1 1 redundancy mode the pair of CPU 6 7 is set to with interlock switching setting Appendix ae ee eee ee eee RRR ER RRR R Re ERR ERR RE RRR Ree RR Ee 15 Resource running operation information word offset value 48 30h 49 31h readout only It is used to recognize in the application program the sate of the system CPU module when in redundancy mode or in single mode The resource running information is valid only when in redundancy mode The state given in the table below is valid when the applicable bit of resource configuration abnormality information word offset value 50 51 is ON lt When in redundancy mode gt Resource running Resource operation Resource state information information OFF Standby CPU being stopped ON Running CPU being stopped ON Running CPU being stopped OFF Standby CPU being stopped lt Resource running information gt It is turned ON when in redundancy mode the CPU is the running CPU Itis indefinite when not in redundancy mode 48 30h 15 Fh lt Resource operation information gt It is turned ON when a CPU module of the applicable number exists on the SX bus and the CPU is in operation 49 31h eS Appendix Shee E E E E Appendix 25 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR
98. ed in register mi0003 5 20 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Integer 1 17 us Data flow language Conipare hich g us Basics Real number 1 21 us Comparison of two input numerical values is performed and the result of decision is output as a logical value If D1 gt D2 B ON If D1 lt D2 B OFF Example of use mi QU00 OUUUZ0 miUU01 If the data in register mi0000 is greater than the data in mi0001 relay 000020 is turned ON Otherwise relay 00020 is turned OFF Chapter 5 mi UU G OUOUS 1 mills It can change the logic in combination with the logical reversal If the data in register mi0002 is equal to the data in mi0003 or smaller than the data in mi0003 then relay 000021 is turned ON Otherwise relay 00020 is turned OFF Ste tt ig E 5 21 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Integer 1 17 us Data flow language Gonpaie iow g us Basics Real number 1 21 us Comparison of two input numerical values is performed and the result of decision is output as a logical value If D1 lt D2 B ON If D1 gt D2 B OFF Example of use mi QU00 OOU0z0 mi UU If the data in register mi0000 is smaller than the data in mi0001 relay 000020 is turned ON Otherwise relay 00020 is turned OFF Chapter 5 mille GE SITIES milda It can cha
99. ed out even if the types are different However an integer is converted to a real number which is then subjected to the real number operation If D1 gt D2 D3 D1 If D1 lt D2 D3 D2 Example of use miQOU0 mrQUol krQUUu 100 0 The data in register mi0000 and the data in register kr0000 100 0 is compared and a larger data is stored in register mr0001 Chapter 5 Although the data in register mi0000 is an integer since the data in register krOOQ0O0 is a real number comparison is made after type conversion of integer real number has been made It serves as a limiter of which lower limt value is the data in register krOO00 100 0 She tt E te 5 13 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Priority given to a Integer 1 43 us Basics lower level Real number 1 64 us Two input numerical values are compared and a smaller numerical value is output Operation can be carried out even if the types are different However an integer is converted to a real number which is then subjected to the real number operation If D1 gt D2 D3 D2 If D1 lt D2 D3 D1 Example of use miQUU0 mrQUol krQUuu 100 0 The data in register mi0000 and the data in register kr0000 100 0 is compared and a smaller data is stored in register mr0001 Chapter 5 Although the data in register mi0000 is an integer since the data in regist
100. ee 3 Network parameter write It is a function to change the network parameter information of the destination node The following information can be changed Node name Address and size of the common memory When the address and size of the common memory have been changed the destination node is separated from the network once and then joins it again If only the node name has been changed the destination node will not be separated Variable designation method 2 readout request code FDFO Request message FDFO h a Response message FEB8 h Node number 2 FL net Yo used etting parameter Note OFemO dOUQIE O OMTO NemMOory aled ize of common memory area oremost address of common memory area Ize of common memory area Destination node Node name Equipment name Node name Fig 5 Image of the network parameter write Note Setting parameter 01 h Only the address and size of common memory are written 02 h Only the node name is written 03 h Both the address amp size of common memory and the node name are written lt Example of a network parameter write program gt This is an example to write the network parameters of the FL net unit of node number 2 The parameters of variable designation format are input one by one starting at the foremost address of variable designation mi00O00 a lt q Foremost address of variable designation A H Processing code i ainol lt
101. eger register is to be multiplied by two with the sign being retained Chapter 5 Ste E E ig E 5 31 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language A Integer 0 16 us Function The result of obtaining the second power of the input numerical value is output D2 D1 1 DI De D2 D1 Example of use ee mi 0000 E tH 10 The data in register ki0000 10 is multiplied by itself and the result of operation 100 is stored in register mi0000 Chapter 5 5 32 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language RF Integer 2 04 us Function Square root of the input numerical value is output Dl De D2 SQRT D1 Note When the input value is a negative value the output also takes a negative value Example of use ki 0000 mi 000d Square root of the data in register kiO000 9 is obtained and the result of operation 3 is stored in register mi0000 Chapter 5 Shee E E E E E 5 33 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Function 1 Exponential function a 3 74 us Exponential operation of the input numerical value is performed and the result is output D2 D3 D1 Da Dl De D2 D30 Note This is valid for a real number operation o
102. en the program of transmitting a permeable type message and the variable designation format Note 1 Usually 3 open for co use for M_OPEN transmittal and receiving should be oien o e aue designated Multiple open requests cosi number o ME CA OU T 246 cannot be made to the same node CPannel number f kooi 0 Operations cannot be guaranteed Se LERS ee p a g n Station number H ki0003 0000 H However it is possible to open with 1 Module By pemumiber Ki0004 EE open dedicated to transmittal and 2 a mode Note ki0005 open dedicated to receiving 1 open dedicated to transmittal kiooo6 o 7 Transmitting port number ki0007 2 open dedicated to receiving Note 2 on 3 open for co use for transmittal and Receiving port number Note ki0008 4 receiving 2 Error Flag B00000 ae i canner Peiteed miooo mi0001 Note 2 1 127 can be used as the transmittal M_SEND port number and receiving port mi0001 number These should not overlap Raceimadatacorade b00002 with the port numbers that are used by variable the other M_OPEN functions Receiving data storage ki0010 5 variable size Error Flag B00010 as mi0010 5 116 Chapter 5 Explanations of Instruction Words eee ee eee eee eR RR ERR EER REE RR ERR RE RRR ER RR Ee lt Example of a program of receiving a permeable type message gt TCD code Receiving data storage variable lt User dat ee hun i gt ees ij Receiving data storage variable
103. er an integer is converted to a real number which is then subjected to the real number operation D3 D1 D2 On type conversion If the type of the register being used in 1 operation block is the integer type or the 16 bit BCD type the data are converted to the 16 bit integer type before subjected to operation whereas if a register of the real number type 32 bit integer type or 32 bit BCD type is used it is converted to the real number type before subjected to operation After this type conversion is also carried out for subtraction multiplication division remainder priority given to a higher level and priority given to a lower level Example of use mi DDOD mrUoul mr O00 The data in register mi0000 and the data in register mrOO00 are added and the result is stored in register mr0001 Although the data in register mi0000 is an integer since the data in register mrO00O0 is a real number addition is made after type conversion of integer real number has been made Chapter 5 5 8 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Integer 1 27 us Data flow language Suptachon g us Basics Real number 1 25 us Subtraction is made with two input numerical values and the result is output Operation can be carried out even if the types are different However an integer is converted to a real number which is then subjected to the real num
104. er krOO0O0 is a real number comparison is made after type conversion of integer real number has been made It serves as a limiter of which upper limit value is the data in register kr0000 100 0 5 14 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow ial Product of numerical Logical multiplication operation in two input numerical values is performed and the result is output DI Ds D3 D1 amp D2 De Note Only operation with integers is valid Example of use miQUU0 milll ki Gul J Logical multiplication operation of the data in register mi0000 and the data in register ki0001 3 is performed and the result is stored in register mi0001 If the data in register mi0000 is 10 then 2 is stored in register mi0001 Chapter 5 mi0000 0000 0000 0000 1010 ki0000 0000 0000 0000 0011 mi0001 0000 0000 0000 0000 Ste tt E E E 5 15 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Sum of numerical 1 15 us Basics values Logical sum operation of two input I values is performed and the result is output DI Da D3 D1 D2 De Note Only operation with integers is valid Example of use miQ0U0 milll ki GUO J Logical sum operation of the data in register mi0000 and the data in register ki0001 3 is performed and the result is stored in register mi00
105. es the word size of the written data 7 Foremost address of the written data It designates the foremost address of the written data 8 Error flag When the writing has not been done normally it is turned ON for 1 scan 9 Status It displays the contents of the error flag They are given below More detailed contents will be explained in the examples of use Code Name Case When the module with which communications are made is Abnormal transmission interlocked The transmission interlock is performed when an interlock instance screen is opened and there is operations such as downloading etc Retry if this error has occurred a a When there is an error in the address designated by 5 designation When the address designated by 5 6 exceed the effective Memory size exceeded range of the address In this case the value of the read data is not guaranteed When 4 0 and there is no CPU number of the destination of communications When the internal resources to execute R_READ R_WRIT have been used up Or when multiple numbers are started simultaneously the internal resources may be used up In this case restart the controller after a while When 0 is input in 6 Chapter 5 When a value other than those designated in the variable Abnormal parameters designation method has been input When a value has been input that exceeds the range of values that can be used as the post number of the SX bus 193
106. esignates the lower limit value of the output Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below The input waveform is output by means of the upper and lower limit values Upper and lower limiters Upper limiter value krOO00 10 000 Lower limiter value kr0001 10 000 Upper limiter value Chapter 5 Lower limiter value She E E E E E 5 57 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Hysteresis 2 gain amplifier at the time of rising and falling is added to the input numerical value and it is then output The setting contents of the function argument 1 Reset It makes Output value Input value x G1 2 Gain at the low side G1 0 0 lt G1 lt G2 3 Gain at the high side G2 0 0 lt G1 lt G2 When the input data is rising G1 is valid and when falling G2 is valid The output remains at a certain value at the time of switching from rising to falling or from falling to rising Turn the reset SW ON without fail at the time of starting operation Note Only operation with real numbers is valid According to the history of changes in the input data the output data is plotted as the curve given in the figure below Output Chapter 5 5 58 Chapter 5 Explanations of Instruction Words ae ee eee eee ee
107. essage FDEB h FL net Virtual address space es A 8 bits C OOT message FDB3 h Destination node ooo D A 1 T Node number 2 Post number of the SX bus 246 CPU number 8 FFFFFFFF Fig 1 Image of byte block readout lt Example of a byte block readout program gt This is an example of reading out data of 12 words from the virtual address 00000000 h of CPU connected to the FL net unit of node number 2 The value of variable designation format as given belowis set one by one starting at the foremost address of variable designation mi0000 lt mi gopa H i mipil ne 5 Processing code migoog Variable designation format FD EB EoI ai 0003 lt Effective size 6 h L TCD L EB mi 0004 _ FD __ Virtual address LL A a rrr i0005 Virtual address LH 00 00000000 h __ Virtual address HL 00 a winong Virtual address HH 00 L rn 2 Q BOOOOO RREAD Boooo1 5 Fig 2 Relation between the byte block Argument _ _______ Label Value readout circuit diagram and the variable Posi NuMmDer ONNE SA DUS ki0000 desianation format Channel number ki0001 0 ee ki0002 Variable designation method ki0003 Note 1 The channel number of the NP1L FL1 is Foremost address of variable mi0000 fixed at 0 designation Note 2 The size of the readout data should satisfy Readout data size i oe the following Foremost address of readout data size b00001 a Amount of the reado
108. etting contents of the function argument 1 2 3 4 S Connection number It sets the connection number as established by M_OPEN Receiving data storage variable It sets the foremost address where the receiving data is stored Receiving data storage variable size It sets the data size in which the receiving data is stored In units of words Error flag When the message receiving has not been made normally it is turned ON for 1 scan Status When the message receiving has not been made normally its contents are output BOOUOD H REGY _ E e a L NS Input relay Normal flag P lt Operations of instruction gt 1 2 3 Chapter 5 Receiving of messages is carried out to the station having the connection number as has been set to the connection number at the startup of the input relay OFF ON The receiving processing is not completed within 1 scan When the receiving processing has been completed normally the normal flag is turned ON for 1 scan When the receiving processing has not been completed normally the error is turned ON for 1 scan and the error code is output to the status 5 106 Chapter 5 Explanations of Instruction Words ae eee eee eee eR RR ER REE RR EER RE RRR ERR RE RRR Ee EO lt Matters requiring attention in the instruction gt 1 The amount of data that can be transmitted in 1 message transmittal is 1017 words Versatile communications mode
109. even address 1 Chapter 5 mrQ010 TOREAL mrQ011 In the case of TOREAL if the setting is made as shown on the right then TOREAL mr0011 ki0000 ki0001 65536 ea _ je ransteree l 10 2 65506 mean 10 131072 131082 5 72 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Bank switching ae a Function 4 F_BANK It is used to synchronize the data in the broadcast communications area to be used in the FL net module The setting contents of the function argument 1 Post number of the SX bus to be switched integer Post number of the SX bus of the module FL net for which bank switching is to be made 2 Status integer If the operation is normal O is input and if not the following error code is input 64 A post number of the SX bus has been designated that is not the destination module 65 Multiple bank switching requests of 1 CPU have been made 66 While processing bank switching access errors have occurred in the processor bus 3 In process flag bit It is turned ON while the bank switching is in process 4 Error flag bit It is turned ON for 1 scan when an error occurs Note When using the bank switching the correct setting of parameters of the FL net module should be made in the system configuration definition Without the correct setting normal operation cannot be guaranteed Internal
110. f BCC lt gt Range of calculation 0 The text part is calculated and is then put before the end code Foremost code TEXT BCC End code Note BCC designation The text part and end code are calculated and are then put after the end code Foremost code TEXT End 2a BCC The foremost code and text part are calculated and are then put before the end code Foremost code TEXT BCC End code Note Range of calculation and position The foremost code text part and end code are calculated and are then put after the end code Foremost code TEXT End code BCC Chapter 5 Note In this case the BCC code mode cannot be designated as binary It is a calculation method of how the transmission error is checked Di D2 Dn 0 Addition D1 D2 Dn 1 Addition and reversal Reversal of D1 D2 Dn 2 EOR D1 EOR D2EOR EOR Dn 3 CRC CRC 16 X X X 1 Code mode of It designates the code mode of BCC data a O binayy I ASCII 2 EBCDIC It is a transmittal monitoring timer from the time when the CPU module has sent a data transmittal request to the RS 232C line up to the completion of Calculation formula of BCC Transmittal timer transmittal Usually it is set at 100 1 second in units of 0 01 seconds value CE E E E E E EE 5 127 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Example of use AUUOO C FREE
111. f the bottom of the cover sheet of this manual Printed date Contents of revision May 2001 IGJO60A Printing of the First Edition Temporary Edition Shee tt E EE 3 Revision History 4 Table of Contents eae eee eee eee eR eR ERR Ree REE RR ERR RE RRR RE RRR Ee Ee Preface Safety Notice Revision History Table of Contents Chapter 1 Outline ecucece ste cesicgscecenieaneenerieneseasndens eaeusaneenenieusseasudanseeadsenseeeneeodvesteceraes 1 1 Chapter 2 Programming Method Using the GPC Language 2 1 Chapter 3 Data Type and Range That Can Be Handled c eee 3 1 3 1 PUGS OT DN er aA coc coat ae A 3 1 3 1 1 Logic Ne isis ercsstntietersavecatadenicict oseveiedetesidat cere sdeieeastiyersbekwniieaaeeeesoee 3 1 3 1 2 Numerical Data ccc ccc eee eee eeneeeeeeeeseeseseeseeeaeeseeeeeaes 3 1 3 2 FIGS OT Data TOSS agers ete tte ctetneneien eed eatneeesactenree deecueeesaeuee 3 2 3 2 1 Types of Logic Data ivecsisteectacctudsaacdaedactudaedacastietedastuadeanscmdedundece 3 2 3 2 2 Types of Numerical Data ccccccccccccecceeceeeeeeeeeeseeeeeeneeeees 3 2 3 3 16 bit integer type I fOFM ccc cece cece eccceeceeeceeeseeeeeeseeeeeseeeeeeseeeseeseeeees 3 2 3 4 16 bit BCD type U fOrm de icicis a cssicovdasanviendavcuadacdsiaiapenaveimiebasbensetieiddencades 3 2 3 5 32 bit integer type W fOPM cccccceecceeceeeeeeeceeeeeeceseeeceeeeeesaeeaeeseeenaes 3 3 3 6 32 bit BC
112. form us of the manual number indicated on the front cover Stee E E E E E 1 Safety Notice LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Read the Safety Notice carefully before using the product and use it properly In this manual matters that require attention for safety are divided into Danger and Caution which have the following meanings Danger Mishandling may cause death or serious injury k P Caution Mishandling may cause intermediate bodily injury minor injury or damage to property Note that the matter described with Pocaution may cause serious results depending on the circumstances Each of the above describes important contents which must strictly be observed Matters requiring special attention are given below which are also indicated by the above marks in the text of this manual e Emergency stop circuit interlock circuit etc must be configured outside of the PC Failure to observe this may result in breakage in machines or accidents caused by a fault of the PC e Change of a program forced output start stop etc while in operation must be made after making sure that safety has been secured Failure to observe this may cause breakage in machines or an accident as a result of functioning of machines by misoperation 2 Revision History ae ee eee ee eee RRR ER RRR R Re ERR ERR RE RRR Ree RR Ee Manual number is indicated at the right side o
113. formation in the designated multiple words The setting contents of the function argument 1 Transferrer offset The default is O For details see the next page 2 Transferee address It designates the address where the RAS information of the system memory is obtained 3 Number to be transferred It designates the number of words to be transferred Refer to the transferrer offset values as given on the next page to set the number to be transferred For the detailed information of each bit refer to Appendix 3 Chapter 5 Shee tt E E E 5 121 Chapter 5 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Word offset Contents of RAS information of the Word offset Contents of RAS information of value system memory value the system memory Resource operation start 22 29 System definition abnormality factor Resource switch setting information 38 39 ee program abnormality Resource serious failure factor 42 43 Announce relay Resource light failure factor 4 Resource operation information Oo 6 5 Resource configuration information 9 CPU abnormality factor 0 1 SX bus configuration information 10 11 SX bus abnormality factor 52 67 configuration composition Memory abnormality factor Resource abnormality information information Application abnormality factor A ous Panora rona 12 serious failure 68 83 configuration abnormality information Rem
114. ge is received by the FL net module unit it notifies the upper layer of the FL net of the received message and the upper layer of the FL net that received the notice then notifies the user interface level of the said message as it is When it has been notified to the user interface level a corresponding response may be returned depending on the application program etc In the u GPCsx the M SEND M RECV functions are used Also services inherent in the permeable type message may be provided by the equipment used Request message 0 59999 Note L Note However 100 101 150 151 200 and 250 are excepted Response message 0 59999 Note Destination node 4 i Node number 2 i Fig 1 Image of the return of a permeable type message response message ab T LL eb C prar ra O User interface Preparing a Same D gt D Same D Q a D Chapter 5 Shee E E E E E 5 115 Chapter 5 Chapter 5 Explanations of Instruction Words aR RRR RR Ree RR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee ee lt Example of a program of transmitting a permeable type message gt It sends a message return request to the FL net unit of node number 2 TCD code Transmitting data storage variable M_SEND User data maximum 512 words Transmitting data storage variable size User data size 1 words M_SEND BOOZ00 H OPEN J AAA pe BOOz01 H SENT E0020 Fig 2 Relation betwe
115. h 67 SX bus configuration information 248 255 Remote I O master 7 43h configuration composition information F8h FFh I O module abnormality information 68 44h 83 SX bus abnormality information 256 507 53h configuration composition information 100h 1FBh 84 54h 99 SX bus directly connected module 508 511 SX bus transmission error rate 63h degeneration mode information 1FCh 1FFh information 100 64h 127 7Fh Appendix 12 Appendix ae eee eee eee eR RR ERR RE R Re ERR ER RR ERR RRR RR Ee 1 Resource operation status word offset value 0 Oh readout only It shows the operating status and operation mode of the resource CPU module Word offset Bit offset lt _ a gt gt NO QO DF lt N It is turned ON when CPU is in operation 1h Being stopped It is turned ON when CPU is stopped It is turned ON when a serious failure has occurred in the 2 2h Serious failure resource 3 3h Light failure It is turned ON when a light failure has occurred in the resource 4 4h Redundancy running e ii ON when in redundancy operation and running 5h Redundancy standby e ii ON when in redundancy operation and stand by 6h It is turned ON when the system is in 1 1 redundancy mode 7h It is turned ON when the system is in N 1 redundancy mode 8h It is turned ON when in non automatic operation mode 9h It is tu
116. he FL net m1 UU00 p L mi QUI Zod mi UU oT i EO0000 F _READ GUOUU1 For the post number of the SX bus the post Argument Label _ Value number of the SX bus of the destination of communications should be set In this case Channel number kiooo1 0 since the equipment is the FL net module O a l Foremost address of variable mi0000 E Channel number is fixed at 0 in the case of the designation FL net module Readout data size ki0004 i 1 Node number is the 2nd FL net module and a aeuiee seh PEAQOUC QALA 60000 a hence it is 2 Error Flag Gooo00 mi0010 For the variable designation method since the FL net module is used in this case it is 2 For the foremost address of variable designation the foremost label should be designated from which the parameters to be set will be read In this case it is mi0000 Next the number of parameters should be set to the designated label and in this case since it is 2 mi0000 2 and then referring to the support message list lower 8 bits 239 EF of the applicable request command 65007 FDEF should be set to mi0001 and upper 8 bits 253 FD should be set to mi0002 As for the readout data size since there are 28 words in the case of the network parameters a value not smaller than this figure should be set As for the foremost address of the readout data the foremost address of the label from which the readout data should be read
117. he value in mi0001 is stored in mi0002 lf BOOO01 ON then BOO010 OFF and the value in mi0000 is stored in mi0002 Chapter 5 B00000 SET coil m B00001 RESET coil B00010 Output a mooo If BOOOOO ON then B00010 0N even when BOOOOO OFF not that B00010 0FF If B00001 0N then B00010 0FF even when BOOOOO ON not that BO0010 ON If BO0001 OFF now that BO0000 0N and so B00010 0N Stee E E E E E 5 69 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Function 4 Counter i UPDOWN This has gathered the counters NR NP NU ND NZ and nO in 1 line and the operation is the same The setting contents of the function argument 1 Reset coil 2 Preset coil 3 Upcoil 4 Downcoil 5 Zero detection contact 6 Present value of count 7 Count preset value Example of use BOUUOO It sets the relay that makes the present value of count 0 It sets the relay that makes the present value of count become the value set by the count preset value It sets the present value of count to be incremental It sets the present value of count to be decremental It sets the relay that notifies that the present value of count has become Zero It sets the register to store the present value It sets the value to be set to the present value of count when the preset coil has been turned ON eNO BOUUUI
118. ion error rate of the SX 509 1FDh Maximum value higher word bus that has been detected by the own CPU module is set 510 1FEh The present value lower word The present value of the transmission error rate of the SX 511 1FFh The present value higher word bus that has been detected by the own CPU module is set Note 1 Each type of system flag information of the system memory area can be referred to from the application program but it should not be used for the event variable that starts up the event task of the application program There are some variables whereby the task is not started up Appendix Appendix 36 Appendix eae ee eee ee eee RRR ERR REE E RR ER RR ERR RE RRR Ee EO Appendix 4 Error status related to the message function 197 C5h Destination of message transmittal designation abnormality Message receiving BUSY Message transmittal BUSY Network transmittal BUSY No module exists in the designated SX post number On the SX bus the destination of communications is BUSY The message transmittal resource is BUSY in the CPU module The destination of communications is BUSY between the communications modules Recheck the input terminal that sets the destination of communications Start the function after a while Reduce the message load Start the function after a while Reduce the load of the own CPU module Start the function after a while
119. ion of the module V 25 or older 8 15 will be ON V10 30 or newer 9 15 will be ON About the operation after the memory abnormality has occurred When the memory abnormality has occurred all the area of user memory undergoes 0 clear However up to 8 0 8 3 there is a high possibility of hardware failure and so even if the power supply is turned OFF ON there is a high possibility that memory abnormality will occur again resulting in a serious failure Appendix Ste E E E E E Appendix 17 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 7 SX bus abnormality factor word offset value 10 Ah 11 Bh W B Nawe Explanation Failure level 0 Oh SX bus LSI It is turned ON when abnormality has occurred in Serious abnormality the LSI that controls the SX bus failure 1 1h Post number It is turned ON when modules having the same SX Serious duplication bus post number exist in 1 configuration failure 2 2h Excessive number It is turned ON when the number of modules Serious of units connected connected to the SX bus has exceeded 254 failure 3 3h 12 10 Ah Ch 13 sen on It is turned ON when there is abnormality in the SX Serious damaged bus transmission failure abnormality It is turned ON when there is abnormality in the processor bus access Serious when there is an access abnormality factor in the failure own module It is turned ON when the refreshing of input and Sanau
120. ion the directly connected I O degeneration ee abnormality definition Appendix 20 Appendix eae eee eee eee eR RR ER RE ERR EE RR ERR RE RRR ER RR Ee definition abnormality definition abnormality definition abnormality definition abnormality nas Serious abnormality in the degeneration fail definition abnormality definition abnormality Ch definition abnormality Dh definition abnormality daa O o It is turned ON when having given a hold definition to a module other than O Oh uli ec nels the output module or given a hold Tey y definition to an output module that has been set to the system DO It is turned ON when the SX bus Directly connected I O operation directly connected module to which Serious definition abnormality the system DO output has been set failure is not a digital output module _ Redundancy setting abnormality Redundancy setting abnormality Remote I O master 2 l Redundancy setting abnormality It is turned ON when there is Seus E T abnormality in the operation definition ae 5 19h 4 4h of the remote I O master Redundancy setting abnormality Redundancy setting abnormality ET a setting abnormality Processor link an lode It is turned ON when there is operation definition an lode abnormality in the operation definition of the P link PE link FL net Serious Processor link 0 can handle line failure number 8 and processor link 1 can handle line number 9 18h
121. ions submode 0 Node to which transmittal is made Personal computer PC card CPL PC card I F module I F module etc 2 Request for Input of transmittal M_SEND gt ON Data transmittal Transmittal Normal flag of completed M_SEND gt ON Ethernet Without waiting for the ACK to be sent by the destination node the transmittal is completed when the data has been transmitted onto the Ethernet 2 When communications submode 1 Node to which transmittal is made Personal computer PC card CPU PC card I F module I F module etc Request for transmittal Input of M_SEND gt ON Data transmittal Normal flag of M_SEND gt ON Transmittal completed Chapter 5 Ethernet The transmittal is completed upon receipt of the ACK sent by the destination node 9 102 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee 4 Error status Name feos cones O OOS Abnormal parameter 177 B1h When there is no module in the post number that has been designated by the communications bus post number or the code designated by the module type number does not match the network type of the communications module Abnormal channel open 193 C1h When an abnormal value has been set to the station number When an abnormal value has been set to the communications mode When the communications mode has been set to the active side transmitting
122. is divided by the divisor ki0000 7 is stored ki0000 in register mi0002 Also the quotient is stored in Remainder integer mi0002 sd register mi0001 If the data in register mi0000 is 10 then 1 is stored in register mi0001 as the quotient and 3 is stored in register mi0002 as the remainder Chapter 5 5 64 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee TSID ON timer TSTD TRIC OFF timer TRTC It has gathered the ON timer relay TS TD and the OFF timer relay TR TC in one line and the operation is the same TSTD Ifthe input bit is turned ON the coil is turned ON after the time set by the argument has lapsed Data flow language Function 3 EOQODC TSOOU0 TOOOO BODOC 4 With this what was written in 2 lines can be written in 1 line BOUUOD TS ID a l e _S l LEGS The setting contents of the function argument 1 Timer value real number It sets the time for turning the coil ON after the designated time has lapsed TRTC Ifthe input bit is turned OFF the coil is turned OFF after the time set by the argument has lapsed BOOUIO TROOUO TCOOOO BOUL 1 Chapter 5 4 With this what was written in 2 lines can be written in 1 line BOUUIO TRIC a l e BI The setting contents of the function argument 1 Timer value real number It sets the time for turning the coil OFF after the designated time has lapsed
123. is turned ON when the default task is bein Fa EN RAU ASR SAA executed for the first time Y Appendix She E E E E E Appendix 23 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 14 Redundancy announce relay word offset value 46 2Eh Redundancy operation mode word offset value 47 2Fh readout only Redundancy 0 0h continuation startup flag 46 2Eh 4 1h 15 Fh 0 N O Redundancy logic CPU number Redundancy interlock switching mode 0 Redundancy interlock switching mode 1 Redundancy interlock switching mode 2 Redundancy interlock switching mode 3 15 Fh a A _ _ ON O J ae z JJ D a gt a gt N N Appendix Appendix 24 It is turned ON when being operated in the redundancy mode the state has been changed from standby to running CPU that has been switched from the standby side to the running It indicates in 4 bits the logic CPU number when in the redundancy mode 0 7 When the default standby CPU has started running in particular it can be recognized which default running CPU is substituted by the said CPU Itis indefinite in other mode than redundancy It is turned ON when being operated in 1 1 redundancy mode the pair of CPU 0 1 is set to with interlock switching setting It is turned ON when being operated in 1 1 redundancy mode the pair of CPU 2 3 is set to with interlock switching setting It is turn
124. itch at the front of the CPU module being in the position of RUN CPU will start operation and if the power supply of the system is turned ON in the position of TERM then the state becomes the former state immediately before the power supply was turned OFF in operation or being stopped Appendix CE E u E E E E Appendix 13 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Without batteries operation mode All the memory is initialized when the system is powered on substitution of the initial value or O clear Also the checking of the connection of batteries and checking of voltage are not be carried out The setting is made by means of the operation designation at the time of powering on inside the setting of the resource Also when being in this mode and in the former state mode the automatic operation mode is activated Note In the TDsxEditor the setting of degeneration cannot be made and hence the module on the SX bus is set to be with degeneration beforehand Therefore the user cannot change the setting of degeneration 2 Resource switch user ROM state word offset value 1 1h readout only It shows the state of the switch of the CPU module that controls the resource 0 0 It indicates the number that is set at the CPU number setting switch at the front of the CPU module by using CPU number 4 bits 0 F However the setting range of the CPU module is 0 7 6 6
125. le then the value that has been designated by the self port standard number the port standard number of the destination of communications in the parameters of PC card module in the system configuration definition shall be added to the port number as an offset value Chapter 5 Shee E E ig E 5 97 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee OOOO H_OPEN 200 B00001X Input relay Normal flag vA lt Operations of instruction gt 1 2 3 4 S As a result of the startup OFF ON of the input relay B00000 the open processing of a module that has been designated by the post number of communications SX bus is started The open processing is not completed within 1 scan When the open processing has been completed normally the normal flag is turned ON and the connection number is output to the connection number With this state M_SEND and M_RECV can now be used When the open processing has not been completed normally the error flag is turned ON for 1 scan and the error code is output to the status Upon turning the input relay OFF the close processing is performed The close processing is not completed within 1 scan either When the close processing has been completed the normal flag is turned OFF There is no abnormal termination in the close processing lt Matters requiring attention in the instruction gt 1 2
126. m it is given below Depending on the ON OFF time the input waveform is output Constant frequency pulse Rese Tooo CC Input Chapter 5 Output Shee E E E E E 5 55 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Variable setting Function 2 pattern taer is Approximation conversion of the input numerical value by line segmentation with pattern memory is performed and the result is output The setting contents of the function argument 1 Number of points gt 2 integer Number of input patterns 2 Foremost of the pattern buffer mrXXXxX the foremost address of the input buffer While in the pattern an initial value was set beforehand by means of the pattern data the real number value in a circuit can be changed herein By accumulating the data that has been obtained in the process control it can be applied to the learning control Note Only operation with real numbers is valid P2 Q2 mr0002 mr0003 Chapter 5 5 56 Chapter 5 Explanations of Instruction Words ae eee eee eee eR RR ER REE RR EER RE RRR ERR RE RRR Ee EO Data flow language Upper and lower Function 2 limiters r45 us Upper and lower limiters are added to the input numerical value and it is then output The setting contents of the function argument 1 Upper limit It designates the upper limit value of the output 2 Lower limit It d
127. n 2 2h Memory abnormality CPU module 3 3h SX bus abnormality It is turned ON when abnormality has occurred such as disengagement of cable return plug detachment etc 4 4h Application abnormality It is turned ON when there is abnormality in the application program or system definition 5 6h Notused Common module It is turned ON when there is abnormality in the common abnormality module on the SX bus other than the own CPU module O O wa Redundancy interlock It is turned ON when in the redundancy operation mode E the interlock switching operation cannot be executed switching execution abnormality S CO NO _ _ CO N mg g SS Ch 13 Other hardware abnormality It is turned ON when abnormality has occurred in the CPU Dh number setting switch 14 Em Notus It is turned ON when in the application program either of User serious failure the bits of the user serious failure flags word offset 14 16 has been turned ON She E E E E E Appendix 15 Appendix Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 4 Resource light failure factor word offset value 4 4h readout only It is a failure factor that the resource continues operation O Oh 1 1h It is turned ON when abnormality has occurred in the own 2 2h Memory abnormality CPU module 3 It is turned ON when abnormality has occurred in SX bus a tegt A ERA in the application a a
128. nfiguration composition information word offset value 52 34h 67 43h readout only When a module exists on the SX bus and it is operating normally or in a light failure the bit of the SX bus post number of the applicable module is turned ON It is distinguished by the combination with the following configuration abnormality information as to whether the operation is normal or in a light failure Resource running Resource operation Resource state information information OFF OFF Nonexistent ON fOFF Normal ON Light failure OFF Serious failure e Word offset e Bit offset l Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h 5h 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 mls a el2 u olete 7 s s 4 s 2 1 ssn 31 20 20 28 27 26 25 24 23 22 21 20 19 1 a7 16 son 47 46 45 aa 43 a2 ar 40 30 38 37 36 95 34 90 32 am 63 62 61 60 59 58 67 56 55 54 53 52 st 50 49 46 san 79 78 77 76 75 74 78 72 71 70 69 68 67 66 65 64 son 95 94 o3 92 91 90 a9 00 o7 a6 5 o4 a3 02 er a0 aan 114 110 109 408 107 106 106 104 108 102 01 100 99 98 97 96 aBn 127 126 125 124 128 122 121 x20 149 11e 117 116 ars 114 419 172 acn 143 142 141 140 199 198 197 136 195 134 199 192 191 190 120 126 52 53 54 55 56 57
129. ng value of the refresh cycle allowable time R 25 Measured value of the refresh cycle present value 26 lt Example of a network parameter readout program gt The network parameters of the FL net unit of node number 2 are read out The parameters of variable designation format are input one by one starting at the foremost address of variable designation mi0O00 mi QUO lt Foremost address of variable designation 7 ts Processing code rs z y 0001 lt _ Variable designation format FD EF SS ag Effective size 2 milo ln H ma AE BOOOOO RREAD BOOUUI e O Fig 6 Relation between the network parameter readout circuit diagram and the Post number of the SX bus variable designation format Channel number A Node number ki0002 Note 1 The channel number of the NP1L FL1 is Variable designation MEIRO eee fixed at 0 Foremost address of variable mi0000 i designation Note 2 Since there are 28 words in the network parameters the readout data size should be anant nt NO AA ARA A Am Readout data size ki0004 Foremost address of readout data size b00001 ee Shee tt E E E 5 81 Chapter 5 Explanations of Instruction Words aR RRR RR ER RR RRR RRR RRR RRR RRR RRR RE RRR ERR EE ee Fig 6 Relation between the network Argument Label _ Value parameter readout circuit diagram and the Post number of the SX bus ki0000 variable designation format Channel number Ki0001 0 ki0002 Note 1 The
130. nge the logic in combination with the logical reversal If the data in register mi0002 is equal to the data in mi0003 or greater than the data in mi0003 then relay 000021 is turned ON Otherwise relay 00020 is turned OFF 5 22 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Integer 1 17 us Data flow language Compie saual g us Basics Real number 1 21 us Comparison of two input numerical values is performed and the result of decision is output as a logical value If D1 D2 B ON If D1 D2 B OFF If a real number is in the register used then in some cases the result may not be turned ON due to the minute numerical value that is not displayed Example of use miQUO0 aadi mi QUI If the data in register mi0000 is equal to the data in mi0001 then relay 000020 is turned ON Otherwise relay 00020 is turned OFF Chapter 5 mi lh E OUUUE 1 mi WU It can change the logic in combination with the logical reversal If the data in register mi0002 is not equal to the data in mi0003 then relay 000021 is turned ON Otherwise relay 00021 is turned OFF Stee tt ian te 5 23 Chapter 5 Explanations of Instruction Words LaR RRR RR RR RR RRR RRR RRR RRR RRR RRR RE RRR ERR EE ee Data flow language Load local constant Integer 0 91 us Basics integer real number Real number 0 85 us Function It loads a local constant intege
131. nly Example of use eae krOO01_nr0000 4 0000 3 0000 Exponential operation of the data in register kr0000 4 0000 is performed with the data in register kr0001 3 0000 as its exponent and the result of operation 64 is stored in register mrOOOO Chapter 5 0 34 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee ir flow language It reads the input numerical value as a 16 bit binary number and outputs the number of bits that are ON Note Only operation with integers is valid Example of use a mi QU00 m BC lis The data in register ki0000 1234 is read as a 16 bit binary number the number of bits that are ON each of them is 1 is calculated and the result of operation 5 is stored in register mi0OOO ki0000 0000 0001 1010 1010 1234 mi0001 O 1 2 2 5 Chapter 5 She E E E E E 5 35 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Gray code binary oe 15 1 us The input numerical value Gray code is converted and the result is output in a binary number Since in the Gray code only 1 bit changes as the numerical value changes it is used in positioning control etc Data flow language Function 1 Dl eet De The bit pattern of 0 15 is as follows D2 D1 D2 D1 D2 D1 D2 D1 Integer Gray Integer Gray Integer Gray Integer 0000 0000 0100 0110 1000 1100
132. nts of the function argument 1 Reset Reset operation of input and output short circuiting is commanded 2 Phase gain A Depending on whether being greater than 1 0 or not advanced phase or lagged phase is set 3 Time gain T Time coefficient in seconds the time during which the output value reaches the input value second As the operation parameter mrxxxx can also be used in addition to krxxxx in which case each parameter should be set by the user program When the reset is turned ON short circuiting between the input and output is performed whereby an arbitrary value can be preset Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below Depending on the time gain the size of the curve changes that represents the output value that is coming closer to the input value When the gain is small a small arc is drawn and when it is large a large arc is drawn Phase compensation Output 1 Reset G00000 Phase gain A1 kro000 2 0000 kr0001 0 8000 Phase compensation Output 2 Reset Chapter 5 5 40 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Function 2 PI compensation 12 6 us PI compensation proportioning integration for the input numerical value is performed and the result is output The setting content
133. ode numbers 1 15 participate is stored in mi0000 FLRAS8 node numbers 16 31 participate is stored in mi0001 Transferrer offset lt Ki0010 0 node numbers 32 47 participate is stored in mi0002 Transferrer offset mioooo ssid node numbers 48 63 participate is stored in mi0003 in a numerical value Chapter 5 9 120 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language oan SYRAG S okAS Function 4 information of the system memory Function It obtains the RAS information of the system memory SYRAS1 It can obtain only 1 bit of information of the word designated by the argument The setting contents of the function argument 1 Transferrer word offset It designates by the number of words the place where the desired information is The default is O For details see the next page 2 Transferrer bit offset The default is O For details see next page 1 When 0 is designated as the bit offset if the store is a a coil then the information of the Oth bit ON OFF is output b a register then the information of all the bits of the designated word offset is output 2 When other value than 0 is designated as the bit offset if the store is a a coil then the information of the designated bit ON OFF is output b a register then the bit value of the designated word offset is output SYSRAS gt It can obtain in
134. on of the 1st unit and FLRAS9 obtains that of the 2nd unit Refer to the transferrer offset values as given below to set the number to be transferred For the detailed information of each bit refer to the manual of the FL net module value FL net value FL net She E E E EE 5 119 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Example of use BOUUOD FLEAS b 4 BI bUUUUZ FLRAST BOOOUS If the 1st FLRAS function is set as shown on the right the FLRAS ist participation condition of node number 1 on CPU number Argument _ Label Value 8 of the FL net module is output to B00001 Transferrer word offset kioooo o Transferrer bit offset ki0001 ra When B00001 ON node number 1 participates and CPU flag ae when BO0001 OFF it does not participate If the 2nd FLRAS function is set as shown on the right FLRAS1 2nd the participation condition of node number 1 on CPU 0 number 8 of the FL net module is store to b00003 ina numerical value If it participates then since node 8 number 1 is the 1st bit 2 is stored and if it does not participate then O is stored If the transferrer bit offset value is changed to ki0000 0 then the participation flags of node numbers 1 through 15 will be stored in b00003 as a numerical value BOOUOU ELE ASS If the FLRAS8 function is set as shown on the right then the information of the node number in which n
135. on processor Hardware abnormality of the LSI for operation inside the abnormality CPU module 1 1h OS processor Hardware abnormality of the LSI for OS control inside the 6 6h abnormality CPU module 2 2h Appendix po Appendix 16 Appendix eae eee eee eee eR RR ER REE REE RR ER RR ER RRR RRR ERE 6 Memory abnormality factor word offset value 8 8h 9 9h readout only W 0 Oh System ROM It is turned ON when abnormality has occurred Serious abnormality in the system ROM inside the CPU module failure 1 1h System RAM It is turned ON when abnormality has occurred Serious abnormality in the system RAM inside the CPU module failure a It is turned ON when abnormality has occurred Serious 2 2h aia anal in the ROM for storing applications inside the failure CPU module Note 1 PEPS It is turned ON when abnormality has occurred i 8 8h 3 3h ie in the RAM for storing applications inside the sate CPU module 4 4h 14 Eh Memory backup It is turned ON when the power failure retention Selous ey abnormalit data is not retained Ute y l Note 2 O Oh HAN 14 Eh 15 Fh Memory backup It is turned ON when the power failure retention Light failure abnormality data is not retained Note 2 Note 1 It also is turned ON when abnormality has occurred in the user ROM card Note 2 The bits to be turned ON of the high performance CPU at the time of memory backup being abnormal vary depending on the vers
136. onnection number is assigned when the channel open processing has been successfully completed M OPEN Argument Label Vale __ Error Flag B00000 Status mioooo M_SEND mi0001 Receiving data storage b00002 variable aoa ee S variable size Error Flag B00010 Chapter 5 Ste E E E E E 5 113 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Chapter 5 5 114 Arguments of M_SEND As for the connection number the connection number that has been obtained in M_OPEN is used as it is In the transmittal data storage variable the foremost address of the label in which transmitting is made should be set and in the transmittal data storage variable size the number of words of the data to be transmitted should be set Error flag B00010 will be turned ON if an error occurs when the M_SEND has been executed Its result is output to the status 5 Chapter 5 Explanations of Instruction Words ae ee eee ee eee RRR ERR ERR REE RR ERR RE RR ER RR Ee Ee If errors are indicated without any problem as in 1 through 4 above then the data is passed from CPU A to CPU B If no data arrives it should be considered that there is a mistake in the values of parameters that have been set by the function argument Check them once again lt Example of use of a program 2 gt Permeable type message transmission If a permeable type messa
137. operation of the F_BANK function At the 1st scan the in process flag is turned ON At the 2nd scan the completion flag is turned ON and immediately thereafter the in process flag is turned OFF Transmittal and receiving of data should be done while the completion flag is ON At the 3rd scan the completion flag is turned OFF At the 4th scan the in process flag is turned ON The rest is the repetition of the above In the transmittal and receiving of continuous data the data that is actually passed over is the data when the completion flag has been turned ON which occurs once every 3 scans Completion flag ff Ee ft Le T In process flag Chapter 5 Within 1 scan 1 scan Ste tt ig ae 5 73 Chapter 5 Explanations of Instruction Words aR RRR RR ERR RRR RRR RRR RRR RRR RR RRR ERR RE RR Eee ee Example of use BOUUOU BOUUOO BOUOO KOND BOUUOU HOY ND Parameters of each function should be set as shown on the right F BANK Post number of the ki0000 7 Since B00020 is a B contact at first the F_BANK SX bus to be pe function is executed and the in process flag is switched turned ON s0000 At the next scan the completion flag B00020 is B00002 turned ON and the transfer of data MOVWD should be made at this timing MOVWD EET T EEE T E EE Label of transferrer gooooo on 520 is turned OFF returning to the Labeloftransferee f B contact B00020 is turned OFF returning to the Label of
138. oremost address of variable designation H rs Processing code w ae lt Variable designation format FD F6 z4 j Effective size 2 niOO02 TCD L t E _ TCD H BOUUUUL RWRITE BOUUU Fig 10 Relation between the communications log data clear circuit diagram and the variable designation format Te Sam Q Erur S Note 1 The channel number of the NP1L FL1is Argument Label Value fixed at 0 Note 2 The readout data size is fixed at 10 Channel number kio001 0O Note 3 Although there is no actual data to be written a setting is required for the foremost address of readout data Foremost address of variable mi0000 o designation Readout data size ki0004 Foremost address of readout data size b00001 az Ste E E ig se 5 93 Chapter 5 Explanations of Instruction Words LaR RRR RR RR RRR RRR RRR RRR RRR RRR RRR ER RR ERR Eee 6 Message return It is a function to make the received message return The return is automatically carried out within the FL net module unit Variable designation method 2 return request code FDF7 Request message FDF7 h kesponse message FDBF h Destination node TD oe Ce ie se a GT aS a ee Ty are 5 E ce a Node number 2 Fig 9 Image of the message return lt Example of a message return program gt It sends out a message return request to the FL net unit of node number 2 The parameters of v
139. ote IO master 0 7 13 Application abnormality factor 128 255 I O module light failure configuration abnormality configuration User serious failure SX bus transmission error rate User light failure Note Word offset values of 3 5 7 9 17 21 30 37 40 41 44 48 84 127 256 507 are not used However when it is desired that the information on the Oth word to 8th word should be obtained at one time if the number to be transferred is set at 9 then values are given to 3rd 5th and 7th words as well but the user needs not pay particular attention to it 5 122 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Example of use BOUUOD oYRAS b 4 SH BI bOOO02 SYRAS1 bOO003 If the 1st SYRAS1 function is set as shown on the right SYRAS 1st the light failure information of the CPU module is output to Argument Label Value B00001 Transferrer word offset ki0000 0O Ki0001 3 When B00001 0N a light failure has occurred in the ransferrer bitofiset__ kooi s CPU module and when B00001 0FF it has not occurred If the 2nd SYRAS1 function is set as shown on the right SYRAS1 2nd the light failure information of the CPU module is store to 0 b00003 in a numerical value If a light failure has occurred then since it is the 3rd bit 8 is stored and if it has not occurred then O is stored If the transferrer bit offset value is
140. output The setting contents of the function argument 1 Reset Reset operation of input and output short circuiting is commanded 2 Maximum rising ratio gt 0 0 positive value limitation value of the rising ratio of output per second Example 10 0 permitting a rising of 10 or less per second 3 Maximum falling ratio lt 0 0 negative value limitation value of the falling ratio of output per second Example 10 0 permitting a falling of 10 or less per second As the operation parameter mrxxxx can also be used in addition to krxxxx in which case each parameter should be set by the user program When the reset is turned ON short circuiting between the input and output is performed whereby an arbitrary value can be preset Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below Depending on the rising or falling ratio the inclination of the output value can be set in the case of the step input having been added ae Limitation on the change ratio ina straight line form G00000 krooo0 0 1000 Maximum falling rate kr0001 0 1000 Chapter 5 5 42 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Baia dew lanatade S form change ratio Function 2 limitation 23 4 us S ARC S form change ratio limitation on the input nume
141. ows the execution time of each symbol It shows the function of each symbol It shows an example of use or a trend graph within the actual circuit Note Relay and Reg that are displayed in the symbol column hereafter are explained herein RELAY The figure on the left shows a relay Herein it is represented by the word RELAY for simplification All the relays such as GO I0 BO etc can be set to RELAY REG The figure on the left shows a register Herein it is represented by H the word REG for simplification All the registers such as gO mi kr etc can be set to REG Chapter 5 Stee E E E E E 5 1 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee RELAY LD language A contact 0 02 us If RELAY is ON the input logic value is output If itis OFF the output logic value is turned OFF X don t care Example of use BUOUOU BOUUDI eee BUUUIO When both of relay BOOOOO and relay BOO001 are ON relay BO0010 is turned ON In other cases than this relay BOO010 is turned OFF Chapter 5 5 2 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee RELAY LD language B contact AR 0 02 us If RELAY is OFF the input logic value is output If it is ON the output logic value is turned OFF X don t care Example of use E00000 BUOUUI sl BOUUIO When relay B00000
142. pation drop 1 participating 0 dropped Upper layer operation signal abnormality 1 abnormality detected Common memory valid 1 valid 0 invalid Common memory setting completed 1 completed 0 not completed Common memory address on the FL net duplicated 1 duplication detected State of the upper layer Fh Eh Dh Ch Bh Ah 9h 8h 7h re ae eee ee eee ee eae Not used Abnormal state 00 normal 01 warning 1 alarm State of operation 0 stopped 1 in operation Minimum allowable frame interval The time from the receiving of a token from other node to the sending of a frame by the own node is called a frame interval At this time the minimum time that each node must wait until it sends out a frame is called a minimum allowable frame interval Fh 8h 7h Oh 15 8 T 0 S 50 unit 100 us Appendix Shee E E E E E Appendix 9 Appendix LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Token monitoring time The time from the receiving of a token by the own node NP1L FL1 from the token retaining node to the passing of the token to the next retaining node Fh 8h 7h Oh 15 8 7 0 68 44h 01 255 unit ms e Protocol version The protocol version is fixed at 80 hex Fh 8h 7h Oh 15 8 7 0 e 69 3 Network control table word offset value 74 4Ah 79 4Fh 74 4Ah Token retaining node number 1 byte Notused 75 4Bh Minimum allo
143. plication abnormality factor serious failure 168 175 Remote I O master 2 Application abnormality factor A8h AFh I O module abnormality information 13 Dh l l light failure 14 Eh 16 10h User serious failure Factor 0 Factor 176 183 Remote I O masier 3 E 47 BOh B7h I O module configuration information 17 11h Notused 184 1991 Remote I O master 3 B8h BFh I O module ab lity inf ti 18 12h 20 Useriightiaiare Faetero Fadtoray B8h BFh module abnormality information 14h 192 199 Remote I O master 4 21 15h Notused COh C7h O module configuration information ee a System definition abnormality factor ADO Anr A A 1Dh i 7 C8h CFh I O module configuration information 30 1Eh 37 208 215 Remote I O master 5 25h DOh D7h I O module configuration information 38 26h 39 ge i 27h Application program abnormality factor 216 223 Remote lO tasters 40 28h 41 D8h DFh I O module abnormality information 29h pi ANAS Announce rela 2Bh y 224 231 Remote I O master 6 44 2Ch 45 EOh E7h I O module configuration information 2Dh 46 2Eh Redundancy Announce relay 232 239 Remote I O master 6 47 2Fh Redundancy operation mode E8h EFh I O module abnormality information ee Resource running operation information 31h 240 247 Remote I O master 7 50 32h 51 Resource configuration abnormality FOh F7h I O module configuration information 33h information 52 34
144. pter 5 5 60 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Backlash a 8 2 us Function 3 compensation H Backlash compensation a kind of differential compensation is performed to the input numerical value and it is then output The setting contents of the function argument 1 Reset Reset operation of input and output short circuiting is commanded 2 Width of backlash W Turn the reset SW ON without fail at the time of starting operation Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below Backlash compensation a Width of backlash krOOOO 20 000 Chapter 5 Ste E E E EE 5 61 Chapter 5 Explanations of Instruction Words aR RRR RR Ree RR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee ee Data flow language Conditional ie Function 2 subroutine Function A subroutine is executed depending on the logical condition of the input When the input is ON the subroutine is executed and not executed when OFF Other contents are the same as those of the unconditional subroutine Example of use ae AAA S N When relay B00000 is ON subroutine AAAA is executed When relay B00000 is OFF subroutine AAAA is not executed Chapter 5 5 62 Chapter 5 Explanations of Instruction Words ae eee eee eee eR RR ER REE
145. put following the order given below RAS information Port status Communications module status 2 Number of times of transmittal request completion 4 10 2 Format of transmittal data and receiving data 15 8 0 Chapter 5 n shall include the foremost code end code BCC etc She E E E EE 5 125 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee 3 Format of communications parameters Number Contents of words Post number of versatile It sets the post number on the SX bus of the versatile communications communications module module number 1 Por numb r It designates the interface port of the versatile communications module 0 RS 232C port 1 RS 485 port It designates the message transmittal and receiving port number with the versatile communications module 1 127 Note It should not overlap with other message transmittal and receiving port number It designates the transmission rate 0 1200 1 2400 2 4800 3 9600 4 19200 5 38400 6 57600 bps aad It designates the data bit length 7 stands for 1 data of 7 bits and 8 Data bit represents 1 data of 8 bits 0 7 bits 1 8 bits Payot It is a bit for error detection which is added to the data It should be Parity bit designated according to the setting of the destination equipment 0 none 1 odd number 2 even number It is a bit for showing the end of data It should be designated according
146. r real number The constant is secured within the program instead of the parameter The load local constant integer can be used within the operation block of i form only Integer and real number cannot mingle within 1 operation block Example of use m1 QU00 mrii 5 OOO0 In register mi0000 the integer value 10 is loaded In register mrOOO0O the real number value 5 0000 is loaded Chapter 5 5 24 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Integer 0 38 us Code conversion Function 1 Real number 0 15 us Reversal of the positive negative sign of input numerical values is performed and output Di e D D2 D1 Example of use kiipi mi il Eta 10 The sign of the data in register ki00OO 10 is converted to positive and 10 is stored in register mi0000 krini mrUUog Et _ a 5 000i Chapter 5 The sign of the data in register kr0000 5 0000 is converted to negative and 5 0000 is stored in register mr0000 Shee E E ig E 5 25 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Absolute value A Integer 0 40 us Function 1 conversion Bd Real number 0 15 us Function It obtains the absolute value of the input numerical value and output it If D1 lt 0 D2 D1 pd 7 If
147. rd can be obtained Chapter 5 Note 1 Note that the value of the network parameter is similar to that of the FLRAS function but the address is different Note 2 Note that the contents of data at the time of reading are different from those at the time of writing Shee E E E E E 5 95 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Shanna Guan H i Function 4 p It is a function to set the destination of message communications This setting is used in M_SEND transmitting messages and M_RECV receiving messages that are explained on the next page and thereafter Verification of connection with the destination of communications shall not be made Chapter 5 5 96 Chapter 5 Explanations of Instruction Words eae ee eee eee eee RR ERR EER REE RR ER RR ERR RE RRR Ee Ee The setting contents of the function argument 1 Post number of the SX bus Communications outside the configuration Post number of the SX bus of the module by way of which the communications are made Communications inside the configuration Post number of the SX bus of the CPU which is the destination of communications 2 Channel number Channel number inside the communications module When there are multiple channels the object channel should be set and when there are none 0 should be set 3 Station number L Station number on the network of the destin
148. realized by means of multiple ladder symbols can be described with 1 symbol thus enabling anyone to create programs Because it automatically adjusts the time spent for the execution of a program while measuring it you do not need to pay attention to the time at all With it you can make index decorations by means of 3 index registers X Y and Z and also can create flexible programs typical of computers It also helps decrease the number of steps by means of a program loop using jump instructions It enables you to prepare structured programs using subprograms with ease It is best suited to the reuse and standardization of application programs With it you can create 2 multi task programs thereby constructing an efficient system Since the execution cycle time can independently set the execution cycle can be divided into 2 a fast one and a slow one Because all the information regarding programs is stored in CPU main body even if the personal computer that was used at the time of development has been damaged you can maintain it by using another personal computer Since the comments on programs can also be recovered maintenance can be carried out as a set of programs comments and execution data By mean of a programming tool TDsxEditor that has a rich supply of convenient functions the changing work at the time of a system change can be carried out in a very short time with minimized errors and surely For the detail
149. rical value is performed and the result is output The setting contents of the function argument 1 Reset Reset operation of input and output short circuiting is commanded Maximum rising ratio gt 0 0 limitation value of the rising ratio of output per second Maximum falling ratio lt 0 0 limitation value of the falling ratio of output per second Increasing rising ratio gt 0 0 Acceleration increasing value per second when acceleration starts Decreasing rising ratio lt 0 0 Acceleration decreasing value per second when acceleration ceases Decreasing decreasing ratio gt 0 0 Deceleration decreasing value per second when deceleration ceases Increasing decreasing ratio lt 0 0 Deceleration increasing value per second when deceleration starts S form acceleration deceleration ceasing coefficient gt 0 0 Change ratio limitation value when the acceleration deceleration has ceased Usually it should be set at twice the value as obtained by choosing the largest of the absolute values of 4 7 When the reset is turned ON short circuiting between the input and output is performed whereby an arbitrary value can be preset Note Only operation with real numbers is valid Chapter 5 Stee E E E EE 5 43 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee When the function argument has been set as shown on the right the trend graph taken from it is
150. rned ON when in automatic operation mode Ah It is turned ON when in former state mode Without batteries operation mode SX bus directly connected It is turned ON when in the degeneration of all the modules that module degeneration are directly connected to the SX bus and in the module that mode Note can handle the individual reset 14 Eh It is turned ON when being the CPU module that controls the processor bus 15 Fh SX bus master A ON when being the CPU module that controls the Non automatic operation mode oOo Sloloj nio It is turned ON when in operation without batteries WW a gt 13 g It is a mode in which CPU will not start operation if the power supply of the system is turned ON with the key switch at the front of the CPU module being in the position of RUN or TERM The setting is made by means of the operation designation at the time of powering on inside the setting of the resource Automatic operation mode It is a mode in which CPU will start operation if the power supply of the system is turned ON with the key switch at the front of the CPU module being in the position of RUN or TERM The setting is made by means of the operation designation at the time of powering on inside the setting of the resource The default is the automatic operation mode Former state mode If the power supply of the system is turned ON with the key sw
151. roblem 3 n l l J a a a ee a Problem 4 5 SSS ELSLSLS La ee or a eee Leii ELSE LRLE Liai iti ii 2 2 Chapter 2 Programming Method Using the u GPC Language eae ee eee eee eee eR ERR EER Re ERR ER RR ERR RE RRR Ee Explanations on the sample program For your reference explanations are given of the example of programming for the exercise problem for training mentioned above The 1st line is a comment line As shown in this example the contents of the program etc should be described beforehand The 2nd line is a blank line It is inserted where necessary to make the program list easier to read The 3rd 4th lines are ladder symbols of a HOLD circuit that uses a typical 2 operation switch By turning the input switch 100000 ON the lamp circuit O00020 is turned on to light up and the status is kept on HOLD I00001 is a B contact input switch to release the above HOLD If it is ON the above lamp is turned off The 5th line is a blank line The 6th 9th lines are a flash circuit of a lamp in which an on delay timer and an off delay timer are combined Each of the on time and off time can independently be changed The setting time of each timer should be specified at the lower side of the coil in column 12 for time setting In the example above it is set at 1 0 S Second but the setting can be made up to 2 hours representing the hour by H the minute by M and the second by S The minimum unit is 10 mS whi
152. s of Relays and Registers eae ee eee ee eee RRR ERR EER RE ERR ER RR ERR RRR RR Ee Chapter 4 Kinds of Relays and Registers 4 1 Relation Between the Local Variable and Global Variable and the Subprogram E b HOr g B LAT LER Example of system configuration of the uGPCsx B CPUE h LR CER Power supply GB BLU Le LS a ES EEL Sey GUS Ee Mare aT Nona mez Ar EE B UL LY Aaa PE EB 47 DUS No Name 1 Local variable Rast oN x E AE ty gt CEUBP IS TESS a BA EL Ry SEE angue T 4 PUL Lv aes ee PE ER AF NOUS Local variable ass aa J EE LE UL Le ae ee EH TERT Sf FIG A HALUTA E hoped eee Stee tt E EE 4 1 Chapter 4 Chapter 4 Kinds of Relays and Registers aR RRR RR RRR RRR RRR RRR RR RRR RRR RRR ERR RE RR EE ee Local variable A variable that can be referred to within 1 subprogram only it cannot be referred to from other subprograms The number used should be set by the number of relays and registers in each subprogram It should be prepared by dividing it depending on the processing function Example mi BO etc Global variable A variable that can be referred to from any subprogram within 1 project The number used should be set by the parameters of CPU in the system configuration definition Example GO fi RI etc 4 2 Number of Relays and Registers That Can Be Used 1 Global varia
153. s of loader monitor debugger trend trace back functions etc while in the state of being RUN refer to the TdsxEditor Operation Manual Chapter 1 CE E uE E E E EE 1 1 Chapter 2 Programming Method Using the u GPC Language eae ee eee ee eee RRR ERR EER REE RR ER RR ERR RE RRR ES Ee Chapter 2 Programming Method Using the GPC Language Chapter 2 Ste tte E E E Chapter 2 Programming Method Using the u GPC Language Chapter 2 Chapter 2 Programming Method Using the u GPC Language eee eee eee eee RRR ERR RE R Ree RR ERR RE RR RE RRR Ee Ee Chapter 2 Programming Method Using the GPC Language In the u GPCsx programs loaded on 1 CPU is constructed using a concept of project A project is given a name that can be changed freely You should determine the most appropriate name 1 project can be divided into 4 parts system definition task 1 task 2 and subroutine 1 System definition This is to define the hardware related conditions of CPU consisting of 4 parts system configuration definition I O assignment system operation definition CPU operation definition and redundancy definition Task 1 task 2 A task having higher priority is made to be task 1 which consists of scan time memory transfer definition trace back setting and other multiple programs Each subprogram is given a program name it shall be NoName if no designation is made which can be changed to any appropriate proces
154. s of the function argument Reset Reset operation of input and output short circuiting is commanded Hold Integration hold SW stopping the integration Proportioning gain Integral gain Integral coefficient in the second unit system the time during which the output value reaches the input value second Upper limit value The upper limit value to be output should be designated 6 Lower limit value The lower limit value to be output should be designated As the operation parameter mrxxxx can also be used in addition to krxxxx in which case each parameter should be set by the user program When the reset is turned ON short circuiting between the input and output is performed whereby an arbitrary value can be preset Note Only operation with real numbers is valid When the function argument has been set as shown on the right the trend graph taken from it is given below Depending on the proportioning gain the output value at the start changes and depending on the integral gain the inclination of the output value changes PI compensation Reset G00000 Hold G00001 Proportioning gain Chapter 5 Ste E E E E E 5 41 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Limitation on the ie change ratio in a 8 4 us Function 2 straight line form Change ratio limitation on the input numerical value is performed and the result is
155. s stored in register mr0001 Chapter 5 She E E E E E 5 45 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee HAMAKR Data flow language Unconditional SH Function 2 subroutine acl Function A subroutine is executed unconditionally By double clicking on the symbol a screen for setting an argument appears and the user can set an argument for the subroutine In the subroutine exchange of data is carried out by means of the stack registers srO000 si0000 SI0000 The setting of stack registers should be made on the screen for setting an argument The actual data flow shall be as follows Input data Stack register Output data Integer data gt si0000 gt Integer data Real number data gt sr0000 gt Real number data Relay coil gt SI0000 gt Relay coil Calling side Calling side Example of use miUUOU AAAA s1U000 i0000 t Subroutine AAAA is executed unconditionally Registers mi0000 mi0001 are customarily used and if you wish to use these data as well the data in register mi0000 is passed to stack register si0000 of subroutine AAAA And when the data that has been calculated in subroutine AAAA is stored in stack register si0000 the data is stored in register mi0001 However if they are not used in subroutine AAAA the data in mi0000 is stored in mi0001 Chapter 5 5 46 Chapter 5 Explanations of Instruction Words ae ee eee eee e
156. setting connected module to which the system DO Serious output has been set is not a digital output failure module Red ndancv setti It is turned ON when there is an error in the Saue 4 4h wy J designation of the range of equivalence in i abnormality cate failure the system redundancy definition It is turned ON when there exists a module Degeneration startup setting that cannot handle the degeneration function Serious abnormality in the system and the degeneration startup failure setting has been made abnormality 2 16h 5 5h It is turned ON when the CPU number that has been set in the system configuration Serious definition does not match the setting of failure switches in the CPU module CPU memory boundary It is turned ON when the memory used in the E 11 Bh definition abnormality application program exceeds the total faiie capacity of memory 12 cn aor CPU I O group definition O Oh abnormality for default task CPU I O group definition 1 1h abnormality for O level task CPU operation definition abnormality 2 2h oe cone It is turned on when the input module is set Serious y as the output selection failure for 1 level task 17h CPU I O group definition 3 3h abnormality for 2 level task x CPU I O group definition 2 4 4h abnormality T for 3 level task 2 Directly connected I O It is turned on when there is abnormality in Garaue lt 5 5h degeneration definit
157. side and the station number IP address transmittal port number of the destination of communications does not exist on the network Otherwise when no connection has been established Abnormal port designation 200 C8h When the code designated by the receiving port number is not within the range of 1 127 When the same receiving port number has already been designated within the resource When the same transmitting port number and receiving port number are registered as a combination of these on the same communications module Connection number 201 C9h When it has been tried to open 57 ports or more simultaneously Client port number within the resource FULL When it has been tried to open the number of ports that exceeds the specified number within 1 communications module Note 1 For the common status of the message function refer to Appendix 4 Note 2 Concrete examples of use are collectively indicated in the item of M_RECV Chapter 5 CE E E E E E E E 5 103 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee H SEND Message transmittal Data flow language Function 4 It performs the message transmittal to the destination of communications as set by M_OPEN The setting contents of the function argument 1 Connection number It sets the connection number as opened by M_OPEN 2 Transmittal data storage variable It sets the foremost
158. sing name etc that it handles within a program 1 subprogram should be written on a programming sheet comprising 12 horizontal columns and 19 vertical rows 1 programming sheet is made to be 1 page and pages can be added successively Within a subprogram local symbols can be used but a handing over between subprograms can only be effected by the global memory Subroutine It is a subroutine commonly used in the same way as the subprograms in task 1 and task 2 The name of a subroutine in 6 English alphanumeric codes should be determined and added Programming sheet Of the 12 horizontal columns each column comprises a symbol insertion part and a crosspoint part By placing symbols in these parts and inputting label names a program is completed There are not END instruction or compiling operation with a compilation being automatically made at the time of quitting the editor In columns 1 11 the contact using the ladder symbols and data flow symbols can be placed Column 12 is dedicated to a coil using the ladder symbols and nothing can be placed except a coil Also there is no crosspoint in column 11 and therefore no intersection of addition instructions or ladder symbols can be inserted Usually 2 term operators addition subtraction multiplication etc are placed at a cross point but as for the C contact since its contact name is input it is to be placed in the symbol insertion part Chapter 2 Shee E E E
159. size r M_RECV User data size 1 words KOUZOU M OPEN PM fe P_ ei B000 MH REGY b_ Reine Fig 3 Relation between the program of receiving a permeable type message and the variable designation format Note 1 Usually 3 open for co use for transmittal and receiving should be designated Multiple open requests cannot be made to the same node Operations cannot be guaranteed However it is possible to open with 1 open dedicated to transmittal and 2 open dedicated to receiving 1 open dedicated to transmittal 2 open dedicated to receiving 3 open for co use for transmittal and receiving The others cannot be used Note 2 1 127 can be used as the transmittal port number and receiving port number These should not overlap with the port numbers that are used by the other M_OPEN functions M_OPEN Argument Label Vale __ Channel number kooo o Sub mode kooo 0 Transmitting port number ki0007 2 Note 2 Receiving port number Note ki0008 2 Error Flag B00000 pO mioooo mi0001 M_RECV mi0001 Receiving data storage b00002 variable Chapter 5 Receiving data storage ki0010 5 variable size B00010 mi0010 Error Flag Status Shee tt E EE 5 117 Chapter 5 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language MATRIX i a 4 Function tt is a function to input a matrix The setting contents
160. somo bit soot the setting of the destination equipment 0 1 bit 2 2 bits When no control is made for signal lines both modes of DCE DTE operate in the same way Although the RS 232C of the versatile communications module is of DTE specifications it can be used as that of DCE specifications by reading the signal lines as given below pin 4 RS gt CS pin 5 CS gt RS pin 6 DR gt ER pin 20 ER gt DR 0 DTE 1 DCE 2 modem DTE ER DR 0 none 1 exists Message port number DCE designation 0 none gt RS always ON Transmittal unconditional DTE mode 1 exists gt RS ON while transmittal Transmittal when CS is ON 0 none gt CS always ON Transmittal unconditional DCE mode 1 exists gt CS when RS ON is ON Transmittal when ER is ON Because the transmittal side and receiving side are connected asynchronously flow control may be required in some cases The receiving side sends XOFF to inform that it cannot receive data for a while and releases it by sending XON The XON XOFF control requires that the destination equipment should be equipped with this Signal flow control Chapter 5 XON XOFF control function 0 none 1 exists RS 485 mode en RS 485 1S usa it selects 4 line type or 2 line type 0 4 line type 1 2 line type Code conversi n It converts binary data into character string variables 0 none 1 ASCII conversion 2 EBCDIC conversion 5 126 Chapter
161. ss space 16 bits Destination node Pr Response message FEB6 h 0 Node number 2 7 Post number of the SX bus 246 CPU number 8 FFFFFFFF Fig 3 Image of the word block write lt Example of a word block write program gt This is an example of reading out data of 5 words from the virtual address 00000200 h of CPU connected to the FL net unit of node number 2 The value of variable designation format as given below is set one by one starting at the foremost address of variable designation mi0000 mi dood lt q Foremost address of variable designation Bi mil i 27 wi Gee Processing code eas mingoa Variable designation format FD EE Effective size 6 h mioooa z aa __ TCD H FD ai0005 _ Virtual address LL oo a oae __ Virtual address LH 02 0 00000200 h mi 0008 __ Virtual address HL 00 5 __ Virtual address HH 00 BOOOOO EWRITE BOOUOI Chapter 5 Fig 4 Relation between the word block write circuit diagram and the variable designation format Note 1 The channel number of the NP1L FL1 is Argument Label Value fixed at O Channel number kioo __ Variable designation method ki0003 Foremost address of variable mi0000 designation Readout data size ki0004 Foremost address of readout data size b00001 Do Ste tte E E E 5 89 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR E
162. ssage receiving M_RECV instructions lt Illustration on configuration gt l PC card I F module A PC card I F module B Configuration A Post number of the SX bus 1 Configuration B Post number of the SX bus 1 Transmitting side 2 IP address 192 0 0 7 Receiving side IP address 192 0 0 8 Power Power supply Gh G We supply CP Wo vo A B 10BASE T cable lt Program Image gt CPUA CPUB Transmittal data Receiving data storage variable storage variable a Contents of the program 1 M OPEN at the receiving side CPU B is executed to open the channel 2 M _RECEIVE at the receiving side CPU B is executed to set the standby state for receiving B M OPEN at the transmitting side CPU A is executed to open the channel 4 M_SEND at the transmitting side CPU A is executed to transmit the data to CPU B Chapter 5 Open method Active Positive Transmission code Binary Communications protocol TCP IP Shee E E E E te 5 109 Chapter 5 Explanations of Instruction Words Chapter 5 9 110 1 pooo02 BOOO10 5 BOZO BOOZ Chapter 5 Explanations of Instruction Words ae eee eee eee eR RR ER REE RR EER RE RRR ERR RE RRR Ee EO pooo03 b000 pooon4 b000 F poooos b000 HA bO0006 b00014 H Receiving data H OPEN BOWE H_RECY BOUZUE Arguments of M_OPEN Post number of the communications
163. t Change in the flag depending on the state of the node gt PRUNE EI Participation Configuration Abnormal State of the node registration OFF OFF OFF No registration no node being connected None No registration node being connected participation or fo No registration node dropped OFF OFF ON Applicable node not being connected or dropped Exists Applicable node normally connected participation 1 Participation flag word offset value O Oh 15 Fh readout only It is turned ON when the applicable node participates on the FL net The figures in the table represents the node number lt Participation flag of each node gt Word offset Bit offset Fh Eh Dh Ch Bh Ah 9h 8h 7h 6h 5h 4h 3h 2h 1h Oh 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 o Oh 15 14 13 12 11 10 9 8 716 514 3 2 14 1 1h 16 2 2h 2 3 3h 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 4 4n 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 2 6 T 8 AJo Sh 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 6h 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 98 7h 112 8h 128 9 9h 144 10 Ah 160 1 Bh 176 2 Ch 192 3 Dh 208 4 Eh 224 5 Fh _ 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 The part indi
164. t 23 bit 3 4 Chapter 3 Data Type and Range That Can Be Handled ae ee eee ee eRe eR RR ERR EER REE RR ERR RE RRR RRR Ee Ee 3 8 Relation Between the Logic Data and the 16 Bit Integer Data i Form The logic data handled in the u GPCsx can be put together into a group of 16 bits that is put in correspondence with one 16 bit integer i form data In this case there are the following relations among the logic data and 16 bit integer data and the relay and register that store these data and the relay number and register number Example Continuous relay numbers 100120 100121 10012F are in correspondence with the input relays that contain 16 pieces of logic data Meanwhile register number 100012 is in correspondence with the input register that contains 1 piece of 16 bit integer data The relation between both of these can be illustrated as Fig 3 1 This figure represents how the content of input register 100012 SAAS hexadecimal is developed in input registers 100120 100121 10012F Input relay number Value Pen 00120 1 100121 0 o s I 00122 1 O 00123 0 100124 0 100125 1 100126 0 I 00127 1 100128 0 100129 1 10012A I 0012B 1 I 0012C 1 I0012D I 0012E 1 0012F 0 ii eee FEDC BA98 7654 3210 i00012 0101 1010 1010 0101 Input register s A A 5 h Stee E E E E E 3 5 Chapter 3 Data Type and Range That Can Be Handled LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Chap
165. t displays the contents of the error flag They are given below Data flow language Function 4 More detailed contents will be explained in the examples of use The i are the values that are input into the status when an error flag has been turned ON Code Name Abnormal memory address When there is an error in the address designated by 5 designation When the address designated by 5 6 exceed the effective Memory size exceeded range of the address In this case the value of the read data is not guaranteed destination of communications communications When the internal resources to execute R_READ R_WRIT have been used up Or when multiple numbers are started simultaneously the internal resources may be used up In this case restart the controller after a while Abnormal channel open When an abnormal value is set in 2 When an abnormal value is set in 2 When an abnormal value is set in 3 When a value other than the type codes is set as the memory type 201 No vacant port When trying to open more ports than the specified number in 1 communications module When a value other than 0 has been set as the variable designation method and the limitation value of the message data size of the communications module by way of which the reading is made has been exceeded Chapter 5 171 Internal resources used up Abnormal message 195 a transmission 206 Transfer size exceeded Shee
166. t unit of node number 2 The parameters of variable designation format are input one by one starting at the foremost address of variable designation mi0O00 lt q Foremost address of variable designation Processing code lt _ Variable designation format FD F5 Effective size 4 h TCD L F5 FD Readout address L 0 Pea Readout address H lt i 00 fixed BOOUUD REREAD BOUUUI ln T Fig 10 Relation between the communications log data readout circuit diagram and the variable 5 designation format F O Note 1 The channel number of the NP1L FL1 is Argument Label Value fixed at 0 Note 2 The communications log data is 512 bytes Channel number kooo 0 fixed for every node of the FL net However there are indispensable items and arbitrary items in the supplied items For Poo ac details check the specifications of each designation node Also the amount of data that can be read Foremost address of readout data size b00001 out at 1 time is 239 words 480 bytes Hence the read out needs to be made 2 times 5 84 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Example of use The figure blow is an example of the readout of network parameters In this configuration 1 unit each of CPU and FL net module are mounted on 1 base and communications are carried out between 2 bases by means of t
167. tem FB etc Serious failure It is turned ON when the execution of a task has been dropped Light It can be turned OFF by the application failure program It is turned ON when the execution of a program has jammed and the set constant cycle time cannot be observed Light It can be turned OFF by the application ine It is turned ON when the value is different from Tact cycle monitoring the value set by the system definition Light abnormality It can be turned OFF by the application failure Appendix 22 program Appendix ae eee eee eee eR RR ERR RE R Re ERR ER RR ERR RRR RR Ee 13 Announce relay word offset value 42 2Ah 43 2Bh Explanation w B Name It is turned ON when the first operation is started after downloading a program and at the time of 0 Oh Initial flag initial startup called operation start It will not be turned OFF while in operation l l It is turned ON when power supply disconnectin on PONET sUppIyalscommeenig MAg occurred while in the a ALA 2 2h n a 13 Dh It is turned ON when 1 unit or more dummy i EM ay MOaue tag modules are mounted in the configuration 15 Fh Processor bus access prohibited It is turned ON when the processor bus access flag cannot be used a ON when the first 0 level task is being 1 1h al ON when the first 1 level task is being peer ON when the first 2 level task is being 43 2Bh ae lls ON when the first 3 level task is being It
168. ter 3 Likewise the relation of correspondence between the input relays that are put into a group of 16 bit and the input register is as follows Input relay number Input register bit number l00000 100001 IOOOOF i00000 100010 100011 IOOO1F 100001 100020 100021 10002F i00002 Aside from these each kind of relays such as output relays link relays auxiliary relays etc can likewise be put in correspondence with the output register link register auxiliary register etc Point Relation of correspondence between the relay number and the register number Example Relay number 100123 represents bit number 3 of register number i00012 Note The range of relay numbers and register numbers depends on the kinds of relays and registers Some registers will make no sense when developed in relays and hence they cannot be developed kr mr mi etc 3 6 Chapter 4 Kinds of Relays and Registers eae eee eee eee eR RR ERR Ree REE RR ERR RE RRR ER RR Ee Ee Chapter 4 Kinds of Relays and Registers 4 1 Relation Between the Local Variable and Global Variable and the Subprogram Sa eich ce AEE E vs E wee eet oe eee eee cee eee eee 4 1 4 2 Number of Relays and Registers That Can Be Used cseeeeee 4 2 4 3 Outline of the Special Relay ccc ccccseeeseeeeeeeeeeeeesceeeeeeseeeseneseneeeaes 4 6 Chapter 4 Ste tte E E E Chapter 4 Kinds of Relays and Registers Chapter 4 Chapter 4 Kind
169. the case of the memory map default value of the high performance CPU module NP1PS 32 access to each memory is carried out as in the figure below 15 0 Input and output memory 00000000 h Note 1 The virtual address of input and output varies 512 words depending on the system configuration and is fixed aooootrFh lt Sic inplicaion cite ou a Standard memory 02000000 h desired access area first to the internal memory such as the standard memory and high speed 2 k words 020007FF h gain access to such internal memory 02000800 h Note 2 The size of each memory varies depending on 8 k words the model of CPU used Q2001FFF h Retain memory 04000000 h Note 3 If the data is written into the system memory by mistake it may cause malfunctioning or skwords Q4000FFF h a Instance memory for user FB 4 k words Instance memory for system FB 4 k words System memory 10000000 h 2 512 words 2 fixed 100001FF h O 5 78 Chapter 5 Explanations of Instruction Words eae ee eee ee eee RRR ERR EER REE RR ER RR ERR RE RRR Ee EO lt Details of the support message gt 1 Byte block readout It is a function to read out data in units of bytes in units of 8 bits for 1 address via the FL net from the virtual address space 32 bit address space of the destination node For the address map of the virtual address space refer to the specifications of each node Variable designation method 2 readout request code FDEB Request m
170. transferee fi0000 initial state Number to be ki0001 10 transferred MOVWD Label of transferrer fi0100 od Label of transferee g00100 rd By repeating the above the data transfer MOVWD is carried out Number to be ki0002 10 transferred Chapter 5 5 74 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Remote data read The data of the equipment that is connected to the network is read out by designating the address directly via a communications module The setting contents of the function argument 1 Post number of the SX bus Post number of the SX bus of the communications module by way of which the reading is made 2 Channel number Channel number of the communications module 3 Node number Node number of the destination of communications 4 Variable designation method It should be designated for each object of access of the destination of communications see lt About the variable designation method gt 5 Foremost address of variable designation It designates the foremost address by which the type of data to be read is designated see lt Support message list gt 6 Read data size It designates the word size of the read data 7 Foremost address of the read data It designates the foremost address of the read data 8 Error flag When the reading has not been done normally it is turned ON for 1 scan 9 Status I
171. unications address setting area It comes to the state of waiting for an Active open request by the other nodes that have been set in the communications address setting area Unpassive open method It carries out a passive open processing of TCP connection against all the other nodes that are connected to the network It comes to the state of waiting for an Active open request by all the other nodes within the network Transmission node It selects the data code type binary ASCII when carrying out data communications with other nodes Data swap When transmission codes are designated to be binary in all communications modes it reverses the handling of upper bytes lower bytes in the transmission data If the transmission code is ASCII this designation will have no meaning Example of the data setting of a communications mode an example in which the transmission code is made to be binary Communications mode f Fixed Versatile shared buffer Communications method 0000h C000h 8000h 0080h C080h 8080h Chapter 5 Ste tt E EE 5 101 Chapter 5 Explanations of Instruction Words 3 Communications submode 0 It sets without delivery confirmation in the destination node destination module or destination node application 1 It sets with delivery confirmation in the destination node destination module or destination node application lt About the operation of the communications submode gt 1 When communicat
172. ut data number of words lt Size of the received data Ste E E E E E 5 79 Chapter 5 Chapter 5 Explanations of Instruction Words LaR RRR RR RR RRR RRR RRR RRR RRR RR RRR RE RRR ERR Eee ee 2 Word block readout It is a message function to read out data in units of words in units of 16 bits for 1 address via a network from the virtual address space 32 bit address space of the destination node For the address map of the virtual address space refer to the specifications of each node Variable designation method 2 readout request code FDED nequest message FDED Virtual address space Response FI Tall r Te sage FEBS as ig 2 0 1 Node number 2 Post number of the SX bus 246 CPU number 8 Fig 3 Image of word block readout lt Example of a word block readout program gt This is an example of reading out data of 10 words from the virtual address 00000000 h of CPU connected to the FL net unit of node number 2 The value of variable designation format as given below is set one by one starting at the foremost address of variable designation mi0000 i 000i lt q Foremost address of variable designation B mi li thy gt widooe Cim Processing code mijaz Variable designation format FD ED wood lt Effective size 6 h L TCD L ED mings Lee TCD H FD Lee Virtual address LL 00 l q lt Virtual address tthe __ Virtual address LH 00 00000
173. vision of two input numerical values is performed and the result is output Operation can be carried out even if the types are different However an integer is converted to a real number which is then subjected to the real number operation D3 D1 D2 Example of use miQUU0 mrQUul mr g l Division of the data in register mi0000 and the data in register mrOOO0 is performed and the result is stored in register mr0001 Although the data in register mi0000 is an integer since the data in register mrOO0O0 is a real number division is made after type conversion of integer real number has been made Chapter 5 Ste tet E EE 5 11 Chapter 5 Explanations of Instruction Words LaR RRR RRR RRR RRR RRR RRR RRR RRR RRR RE RRR ERR Eee Data flow language Division of two input values is performed and the result remainder is output D3 D1 D2 Note Only operation with integers is valid Example of use miQUU0 mrQUul E 3424 mrUUod The data in register mi0000 is divided by the data in register mi0001 and the result remainder is stored in register mi0002 Chapter 5 9 12 Chapter 5 Explanations of Instruction Words ae ee eee eee ee RRR ER RRR RR EER RE RRR ERR RE RRR Ee Ee Data flow language Priority given to a Integer 1 52 us Basics higher level Real number 1 45 us Two input numerical values are compared and a larger numerical value is output Operation can be carri
174. wable frame interval 1 byte Notused tee Refresh cycle allowable time 2 bytes T Refresh cycle measuring time present value 2 bytes 78 4Eh Refresh cycle measuring time maximum value 2 bytes 79 4Fh Refresh cycle measuring time minimum value 2 bytes 4 Participation node control C table word offset value 80 50h 1103 44Fh The transmittal area of each node participating in the FL net is indicated The information of 1 node is indicated in 4 words Di o 4 x Common memory area 1 Foremost address of transmittal area 2 bytes 4 x Node number 1 Common memory area 1 Transmittal area size 2 bytes 4 x Node number 2 Common memory area 2 Foremost address of transmittal area 2 bytes 4 x Node number 3 Common memory area 2 Transmittal area size 2 bytes e 1103 44Fh a Appendix 10 Appendix Appendix ae eee eee eee eR RR ERR RE R Re ERR ER RR ERR RRR RR Ee 5 Participation node control M table word offset value 1104 450h 2895 B4Fh The contents of setting of the FL net parameters of each node participating in the FL net are indicated The information of 1 node is indicated in 7 words 1104 450h 7 X Node number State of the FL net 1 byte 7 x Node number 1_ State of the upper layer 2 bytes 7 x Node number 2 Token monitoring time 1 byte Notused 7 x Node number 4_ Refresh cycle allowable time 2 bytes 7 X Node number 5 7 X Node num

Download Pdf Manuals

image

Related Search

Related Contents

FRAMTID HGA4K  Roster Billing Guide For Influenza and Pneumonia  manual do proprietário e manutenção  NUPRO®  Manuel d`Utilisation  Bedienungsanleitung Casio FX  取扱説明書 電動ウィンチ 品番: 32300000 型式:95IC12  ついに登場!! TAXAN iMac DV専用内部交換型コンボドライブ  1 Rev. 01  Abibatou Banda Fall - XIIIth CODESRIA General Assembly  

Copyright © All rights reserved.
Failed to retrieve file