Home
FEH255_Standard Extended FB for General Purpose
Contents
1. Mode switch Mode switch Mode switch Mode switch Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved x8 x4 x2 x1 RS signal CS signal DR signal ER signal CD signal Cl signal Initialization end Reserved Send error Receive error Framing error Overrun A RS 485 station No x8 ena RS 485 station No x4 Reseed RS 485 station No x2 A RS 485 station No x1 Reserved 3 2 FUJI General Purpose Inverter Procedure _CfdFRN FB _CfdFRN 3 2 1 General The _CfdFRN FB function block communicates data between the CPU module and FUJI FRENIC Series general purpose inverter using the start stop synchronization type transmission protocol For more information of the dedicated transmission parameters that are necessary to control the FRENIC 5000 Series general purpose inverter refer to the manual supplied with the inverter This FB performs the following operations 1 Initialization of communication port Initializes the RS 485 port the setting of transmission speed data bit length parity bit etc 2 Data sending receiving function Sends data from an application program in the MICREX SX series CPU module to general purpose
2. No Result of sending receiving Remarks 00 Ended normally 01 Send buffer has overflowed 02 Receive buffer has overflowed 40 Data send time out 41 Protocol response error 42 BCC error er General purpose communication 20 module disconnected Not detected 91 SX bus send error 92 SX bus receive error AQ Object port error General purpose communication module detected an error A3 Processing impossible because in General purpose communication conversion mode module detected an error AS Processing impossible because in General purpose communication 5 loader mode module detected an error TE Processing impossible because self General purpose communication A6 gt s diagnosis is being executed module detected an error CO Hardware error detected during General purpose communication receiving module detected an error C1 Receive buffer has overflowed General purpose communication module detected an error C2 Send buffer has overflowed General purpose communication module detected an error den Send data size over General purpose communication module detected an error 3 18 _CfdFRN _CfdFRN 3 2 FUJI General Purpose Inverter Procedure FB _CfdFRN 3 2 5 RAS information RAS information area is used as the work memory for FB operations as well as for checking the operating condition of FBs To use RAS information from the appl
3. No Result of sending receiving Remarks 00 Ended normally 01 Send buffer has overflowed 02 Receive buffer has overflowed 40 Data send time out 41 Protocol response error 42 BCC error a General purpose communication i module disconnected precios 91 SX bus send error 92 SX bus receive error 93 NAK recieve AO Object port error General purpose communication module detected an error A3 Processing impossible because in General purpose communication conversion mode module detected an error ack Processing impossible because in General purpose communication A5 loader mode module detected an error are Processing impossible because self General purpose communication A6 ae diagnosis is being executed module detected an error CO Hardware error detected during General purpose communication receiving module detected an error C1 Receive buffer has overflowed General purpose communication module detected an error C2 Send buffer has overflowed General purp se communication module detected an error ia Send data size over General purpose communication module detected an error 3 26 _CfdFVR _CfdFVR 3 3 FUJI General Purpose Inverter Standard Communication FGI BUS Procedure FB _CfdFVR 3 3 5 RAS information RAS information area is used as the work memory for FB operations as well as for checking the operating condition of FBs To
4. 3 52 Mode switch x8 Mode switch x4 Mode switch x2 Mode switch x1 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved RS 485 station No RS 485 station No RS 485 station No RS 485 station No x8 x4 x2 x1 _C_modm 3 7 MODBUS Procedure FB _C_modm 3 7 1 General The _C_modm FB communicates data between the CPU module and FA device equipped with MODBUS interface While there are MODBUS master and slave devices this FB makes MICREX SX a master device and communicates data with MODBUS slave devices MODBUS master device may not be connected to this FB Determine which functions to use according to the specifications for the MODBUS slave devices to be connected 1 Initialization of communication ports Initializes communication ports to be used the setting of transmission speed parity bit etc 2 Data sending receiving function Sends data from an application program in the MICREX SX series CPU module to MODBUS devices via the general purpose communication module or outputs the data received via the general purpose communication module to an application program 3 Transmission condition monitoring function Monitors data transmission condition and outputs error information if abnormal 4 Supported function codes This FB supports the following functions For the data format for individual function refer to 3 7 2 4 Function code
5. Terminal name Variable Data type 1 0 Description name ON Sends communication parameters to the general purpose communication module to initialize communication When communication becomes possible communication Open OPEN BOOL IN ready turns ON OFF Performs the processing for ending communication Communication ready turns OFF Starts to send data When sending is completed this needs to Send request SEO BOOL IN be turned OFF by the application program Send station S_STN WORD IN Stores the address of the send station address aah command S_ CMD WORD IN Stores the send command code Send function code S FNC ere IN_OUT Stores the send function code ur ol sane S_LEN INT IN Stores the number of send data bytes data bytes Send text data S_TXT mae 4 IN_OUT Stores the send text data Sommninication PARA ae IN_OUT Stores the initialization parameters parameter _TYP61 Communication OK BOOL OUT Turns ON when initialization has ended normally to indicate that ready the system is ready for sending receiving data Open status O_STS WORD OUT 2 digit hexadecimal code to indicate the result of initialization Receive end R_END BOOL OUT Turns ON when receive ends Receive error R_ERR BOOL OUT Turns ON if a receive error has occurred Receive status R_STS WORD OUT Receive result code Bees stanon R_STN WORD OUT Stores the address of the receive station address Receive unction R_FNC Jeanne IN_OUT Stores the receive fun
6. x8 x4 x2 x1 Parity error RS 485 station No x8 Reserved RS 485 station No x4 1 Reserved RS 485 station No x2 RS 485 station No x1 Reserved 3 3 FUJI General Purpose Inverter Standard _CfdFVR Communication FGI BUS Procedure FB _ CfdFVR 3 3 1 General The _CfdFVR FB function block communicates data between the CPU module and FUJI FVR Series general purpose inverter using the FGI BUS transmission protocol For more information of the dedicated transmission parameters that are necessary to control the FVR Series general purpose inverter refer to the manual supplied with the inverter This FB performs the following operations 1 Initialization of communication port Initializes the RS 485 port the setting of transmission speed data bit length parity bit etc 2 Data sending receiving function Sends data from an application program in the MICREX SX series CPU module to general purpose inverter FVR via the general purpose communication module or outputs the data received via the general purpose communication module to an application program 3 Transmission condition monitoring function Monitors data transmission condition and outputs error information if abnormal lt Connec
7. Example of polling Upper order Lower order S TXTT 0 SOH Total ceci sending S_TXT 1 Station number the units digit Station number the tens digit S_TXT 2 Command type character ENQ S_TXT 3 Function number the tens digit Function type character S_TXT 4 Added special data Function number the units digit S_TXT 5 Data 2 Data 1 S_TXT 6 Data 4 Data 3 S TXT 7 SOH S_TXT 8 Station number the units digit Station number the tens digit S_TXT 9 Command type character ENQ S_TXT 10 Data 2 Data 1 S_TXT 11 Data 4 Data 3 S_TXT 12 SOH EXT S_TXT 13 Station number the units digit Station number the tens digit S_TXT 14 Command type character ENQ S_TXT 15 ETX S_TXT 217 Note Send data is prepared for the standard frames 14 bytes each for maximum 31 inverter stations that can be connected plus one byte 218 words The data shall be set such that unused areas become 0 zero Send data is prepared for all the inverter stations that are connected but data is sent to or received from one station at a time due to FB internal processing lt List of receive error codes R_ERCD gt Error code Name Description 4A h Format error Data exceeded the specified range 4B h Command error Unspecified command code was sent 4E h Function code error Inexistent function code was requested Write inhibit Write request was issued during operation to a write inhibited function or a 4
8. C Paint Shop Pro 5 QuickTime E DATA F E Removable Disk G ER D300wIN_CD 2 Esme sane F i EE My Network Places 4 When you click the Next gt button in the Choose Destination Location dialog box the installation processing is started STANDARD EXPANSION FB Setup Setup Status STANDARD EXPANSION FB Setup is performing the requested operations Installing STANDARD EXPANSION FB E D300win LIBRARIES _Cfvrpr c c_sx r 1_32 SCI_BRK idx 13 InstallShield 2 3 2 2 Installation Procedure of Standard Extended FB 5 When installation is completed the following InstallShield Wizard Complete dialog box appears Click the Finish button to complete the installation procedure STANDARD EXPANSION FB Setup i InstallShield Wizard Complete Setup has finished installing STANDARD EXPANSION FB on your computer When you check here and then click the Finish button the product information of the standard extended FB appears lt Back lt Example of release note gt 47 README TXT Notepad 5 x File Edit Search Help STANDARD EXPANSION FB RELEASE NOTE U2 6 2 6E Thank you for using this FB This is an update description library added library added library correction for module power down library correction for module power down library correction for module power down library correction fo
9. _CfdFRN 3 2 FUJI General Purpose Inverter Procedure FB _CfdFRN 3 2 4 Data sending receiving 1 Data sending receiving procedure Set send text data Send text data S_TXT X X Set send station address E XX Set send command code Set send function code A XX Turned ON by the application program Turned OFF by the application program TT Send request age ooo Send command code S_CMD A O O a O QUO QUA O AO Ca O O Receive end A __ il Output only one scanning In case of receive error Pa Receive error anoe m e Y E Send text data send station address send command code and send function code are set and then send request is turned ON by the application program FB detects the rising edge to execute the processing for sending When the send station address is for all stations 90 the receive end flag is automatically turned ON the moment sending is completed receive error flag is also turned ON if abnormal When the send station address is for one station 90 the system automatically enters receiving waiting mode the moment sending is completed executing the processing for receiving When the delimiter between frames is detected the receive end flag is automatically turned ON receive error flag is also turned ON if abnormal 3 17 3 2 FUJI General Purpose Inverter 2 Sending receiving status list Procedure FB _CfdFRN
10. Receive station R_STN WORD OUT Stores the receiving station address that indicates from which address inverter the data was sent a cemimnano R_KND WORD OUT Stores command type characters of received frame Receive function R_FNC _C_RFNC IN_OUT Stores function type character and function number of received code _TYP62PR frame Reesive cirereade R_ERC WORD OUT Stores error code sent from inverter if NAK is received from D inverter humber of receive R_LEN INT OUT Stores the number of bytes of received data data bytes Received text data is stored when the data of the station to C RTXT which the inverter responded is received by the general purpose Receive text data R_TXT IN_OUT communication module When multiple inverters are connected _TYP62PR vee f a the application program judges based on receive station address R_STN from which station the data was sent RAS information RAS Beas IN_OUT Stores the operating status of this FB _TYPE62PR i 3 30 Ctfvrpr 3 4 Communication Protocol Included General Purpose Inverter Procedure FB _Cfvrpr lt Format of the variables that are connected to the send text data terminal S_TXT gt The data that are connected to S_TXT must be laid out as follows lt When variable name is S_TXT gt VAR S TXT END_VAR C_SEND_TYPE62PR Example of standard frame ETX Example of selecting
11. Send data S_DAT Receive data R_DAT FB terminals gt Slave station No SIN_NO_O Function code F_CODE_O Data length LEN_O Receive data R_DAT FB terminals Slave station No SIN_NO_O Function code F_CODE_O gt Start address ADD_O Data length LEN_O Offset address with respect to the designated start address 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 3 59 3 7 MODBUS Procedure FB _C_modm 6 Retain register writing multiple words code 10 Writes data in consecutive registers starting with the one designated by a slave device The format of request message and response message is shown below FB terminals Slave station No SIN_NO_I gt Function code F_CODE_ gt Start address ADD_I gt Data length LEN_I gt Number of bytes LEN2_l gt Send data S_DAT gt Notes Request message Response message Slave station No Slave station No Function code 10h Function code 10h Start address upper order Start address upper order Start address lower order Start address lower order No of written words upper order No of written words upper order No of written words lower order No of written words lower order Number of bytes
12. Reserved Not used 39 Note No in the above table is element number of the array variables for communication parameter 3 61 3 7 MODBUS Procedure FB _C_modm C_modm 2 Initialization procedure When the OPEN terminal of FB is turned ON communication parameters are transferred to the general purpose communication module which executes processing for initialization If initialization is impossible due to a communication parameter setting error or hardware error FB outputs the corresponding error code to the OPEN Status O_STS Turned ON by the application program Turned OFF by the application program Note OPEN OPEN x Processing for initialization N Port closing operation Communication ready OK If initialization error has occurred Note OPEN signal shall be set to Always ON during data communication OPEN Status 00 O_STS Error status 3 OPEN status list No Result of initialization Remarks 00 Ended normally 01 Transmission speed error General purpose communication module detected an error 02 Data bit length error General purpose communication module detected an error 03 Parity bit error General purpose communication module detected an error 04 Stop bit error General purpose communication module detected an error 05 DCE designation error General purpose communication module detected an error
13. 06 Signal flow control setting error General purpose communication module detected an error 07 XON XOFF control setting error General purpose communication module detected an error 08 RS 485 mode setting error General purpose communication module detected an error 3F Parameter modification error Parameter modification error after OPEN 48 aa unervelde Specify the value of the minus g0 General purpose communication module station No setting error 81 Channel No setting error 82 Message port No setting error 93 Open error M_OPEN error 94 Open error ci oer eA abnormality on general purpose A3 a a i General purpose communication module detected an error A5 a reise ih cs pecause ip General purpose communication module detected an error A6 Processing Mpossible Because self General purpose communication module detected an error diagnosis is being executed 3 62 _C_modm 3 7 MODBUS Procedure FB _C_modm 3 7 4 Data communication MODBUS protocol defines master and slave stations and communication is performed in such manner that master station MICREX SX starts communicating and slave stations respond to it The transmission procedure is outlined below 1 Master station sends a command message to slave station 2 Slave station checks whether or not the station No included in the received message coincides with its own station number and if coincides executes the command and then sends a response
14. 3 6 4 Data Sending procedure oooccccnconcnnnoncnnnnrccnnncccnnnnnn rn arena 4 50 1 Data Sgrding produre i s lt cccceccesescheceasacxetscescepencensnaseaicdechhest ies debsnaseacces icepeag ckvhcpbapaubacatdpecdieaetsustenedTeaber 4 50 2 Send status list iiin a Beet ei ee N 4 50 3 6 5 Data receiving procedure oooococonocconoccccnonoccnnannc cnn nn 4 51 1 Data recieving procedure rs 4 51 2 RECEIVING STATUS IST iii A A daadaa Avaa 4 51 3 6 6 RAS information she tiknath sia anti a 4 52 3 7 MODBUS Procedure FB _C_ MOM eeeesseceeeeeeseeeeenseseeeeeenseseeeeeesneneeesenssesenes 4 53 3 7 9 re eee ee 4 53 3 7 2 Specification for O O a a a a a e a aE aae 4 54 1 Commun ication specification minima be 4 54 OFEBTO Maldini A AAA A A R A A O 4 Function code 3 7 3 Initialization 1 Set values of initialization parameters 2 Initialization Pro miii A ae NS bese vbdn cass eer tus cand lundspusaicdst lt owluesadtavineuseeensfosesyledtacdieeans E ae PaE 32 74 Data CoOMMUNICA MON iia ae gece hee ee a ate 1 Data sending receiving procedure cccccccsessctscsseseseesseesescesessesstessoeeoseesenscceseseneesseescseeeesessteseeeees 2 Recelving statusidiSt coco A iaa 3 0 RAS NOA O A a a ici _ctrp2 Section 3 Specification for Communication FB 3 1 Communication Protocol Included Non procedural FB _Cfrp2 3 1 1 General For communication between MICREX SX and external devices via R
15. A Mode switch x2 DR signal i i Mode switch x1 ER signal 5 Reserved CD signal Reserved CI signal NR Reserved Initialization end Reserved Reserved Reserved Send error i Reserved Receive error Reserved Framing error Overrun Reserved Parit RS 485 station No x8 arity error RS 485 station No x4 Reserved 1 Reserved Reserved RS 485 station No RS 485 station No x2 x1 3 27 3 4 Communication Protocol Included General Cfvrpr Purpose Inverter Procedure FB _Cfvrpr 3 4 1 General The _Cfvrpr FB function block communicates data using FGI BUS between the CPU module and FUJI FVR series general purpose inverter The _Cfvrpr FB performs part of the processing under the communication protocol in the firmware in the general purpose communication module in order to reduce the number of program steps see note For more information of the dedicated transmission parameters that are necessary to control FUJI FVR series general purpose inverter refer to the manual supplied with the inverter Note This FB can be used with V2536 or later version of general purpose communication module This FB performs the following operations 1 Initialization of communication port Initializes the RS 485 port the setting of transmission speed data bit length parity bit etc 2 Data sending receiving function Sends data from an application program in
16. LEN2_1 Set WORD 16 0000 for the LEN2_ terminal 3 CRC is automatically calculated and added to the data by this FB 4 For send data set the data that is to be written in the start word Other data shall be set to all zero 5 Forcible ON OFF multiple bit code OF Forcibly sets ON OFF a bit coil that is designated by a slave station The format of request message and response message is shown below FB terminals Slave station No SIN_NO_l gt Function code F_CODE_l gt Start address ADD_l gt Data length LEN_I gt Number of bytes LEN2_l gt Send data S_DAT gt Notes Request message Response message Slave station No Slave station No Function code OFh Function code OFh Start coil address upper order Start coil address upper order Start coil address lower order Start coil address lower order No of written bits upper order No of written bits upper order No of written bits lower order No of written bits lower order Number of bytes CRC lower order Write data upper order CRC upper order Write data lower order CRC lower order CRC upper order 1 In case of abnormal response 80hex is added to function code F_CODE_O 2 CRC is automatically calculated and added to the data by this FB 3 Write data shall be set with upper and lower order bytes reversed as shown below
17. R974853 MOJE 0 4 wire 1 2 wire 13 Reserved Not used 14 Reserved 15 Reserved ie Gada tonversion Converts binary data into a character string variable 0 None 1 ASCII conversion 2 EBCDIC conversion 3 5 3 1 Communication Protocol Included Cfrp2 Non procedural FB _Cfrp2 No Item Description Designates data receiving method 0 None Receiving completes when data is received 1 Variable length Receiving completes when the data in a range between start 17 Frame detection i i and end codes is received 2 Fixed length Receiving completes when receive data reaches the specified number of receive data bytes 18 Number of receive data bytes Designates the number of receive data bytes when Fixed length is selected for y frame detection When Variable length is selected set this item to 0 19 Number of start code bytes Designates the number of start code bytes when Variable length is selected 20 Start code 1 21 Start code 2 22 Start code 3 Designates start code when Variable length is selected 23 Start code 4 24 Start code 5 25 Number of end code bytes Designates the number of end code bytes when Variable length is selected 26 End code 1 27 End code 2 28 End code 3 Designates end code when Variable length is selected 29 End code 4 30 End code 5 Sets whether or not to add horizontal parity for checking text data transmis
18. WORD R_STS INT STN_NO_O WORD F_CODE_O WORD ADD_O WORD LEN_O WORD LEN2_O L Communication ready Open status H Receive end Receive error Receive status Slave station No Function code First address Data length No of bytes Send data Receive data H Communication parameter H RAS information indicates data type IN OUT terminal Note Note In general FBs are used with only the terminals connected that are necessary for communication Be sure to connect variables to the IN OUT terminals 3 55 3 7 MODBUS Procedure FB _C_modm 3 FB terminals C_modm Terminal name Variable Data type 1 0 Description name ON Sends the communication parameters to the general purpose communication module to initialize communication When communication becomes possible Open OPEN BOOL N communication ready turns ON OFF Performs the processing for ending communication Communication ready turns OFF Starts to send data When sending has ended this needs to be Send request anda BOOL IN turned OFF by the application program Slave station SIN NO INT IN Designates destination slave station No No Query Function code F_CODE WORD IN Designates which MODBUS function to use This code is set in Query i the low
19. _Cfvrpr 3 4 Communication Protocol Included General Purpose Inverter Procedure FB _Cfvrpr 3 4 2 Specifications for _Cfvrpr 1 FB format Input terminal name OPEN Send request Send text data Receive text data Communication parameter RAS information Output terminal name _Cfvrpr BOOL OPEN BOOL OK BOOL S_REQ WORD O_STS BOOL S_RUN BOOL R_END BOOL R_ERR WORD R_STS WORD R_STN WORD R_KND _C_RFNC_TYP62PR R_FNC WORD R_ERCD INT R_LEN _C_STXT_TYP62PR S_TXT _C_RTXT_TYP62PR R_TXT _C_PAR_TYP62PR PARA _C_work_TYPE62PR RAS Communication ready Open status Send run Receive end Receive error Receive status H Receive station address Receive command type H Receive function code H Receive error code H Number of receive data bytes Send text data Receive text data IN OUT terminal Communication parameter Note H RAS information indicates data type Note In general FBs are used with only the terminals connected that are necessary for communication Be sure to connect variables to the IN OUT terminals 3 29 3 4 Communication Protocol Included General _Cfvrpr Purpose Inverter Procedure FB _Cfvrpr 2 Explanation of each FB terminal Terminal name Variable Data type 1 0 Description name ON Se
20. code 01 Input bit reading code 02 Reads the status of the output input bit of a slave device The format of request message and response message is shown blow FB terminals Request message Response message FB terminals Slave station No SIN_NO_I gt Slave station No Slave station No gt Slave station No SIN_NO_O Function code F_CODE_l gt Function code Function code Function code F_CODE_O Start address upper order Number of bytes of read data Data length LEN_O Start address ADD_l gt Start address lower order Read data lower order Data length upper order Read data upper order Data length LEN_I gt eines upp Data length lower order Read data lower order gt Receive data R_DAT CRC lower order Read data upper order CRC upper order p CRC lower order CRC upper order Notes 1 In case of abnormal response 80hex is added to function code F_CODE_O 2 Function 01 02 does not use the number of bytes LEN2_l Set WORD 16 0000 for the LEN2_ terminal Similarly all the variables that are connected to the send data terminal S_DAT shall be set to zero 3 CRC is automatically calculated and added to the data by this FB 4 The number of bytes of read data is stored in the upper order byte of data length LEN_O 5 When read data is received its upper and lower order bytes are reversed as shown below Receive data
21. 115200 90 300 91 600 bps Designates the data bit length When 7 is selected 7 bits make up one data when 8 8 bits make up one data 5 Data bit 0 7 bits 1 8 bits This is a bit which is added to data for the purpose of error detection Designate the 6 Parity bit proper one to match the setting of the device at the other end 0 None 1 Odd 2 Even This bit indicates the end of data Designate the proper one to match the setting of the 7 Stop bit device at the other end 0 1 bit 2 2 bits 8 Reserved Not used 15 The timer for monitoring during the period from when the CPU module sends a send request to a device until communication ends This value can be set in 0 01 second steps Example For 1 second set this value to 100 Maximum 327 67 seconds can be set 16 Response monitoring timer 17 Retry count Sets how many times to retry communicating Setting range 1 to 32767 18 Reserved Not used 39 Note Nos 0 to 7 are the basic transmission parameters and their setting cannot be changed during operation The setting of parameter Nos 16 and 17 can be changed during operation 3 32 Cturpr 3 4 Communication Protocol Included General Purpose Inverter Procedure FB _Cfvrpr 2 Initialization procedure When the OPEN terminal of FB is turned ON communication parameters are transferred to the general purpose communication module which executes initialization If initia
22. Above figures for memory capacity includes the area for the main body of non procedural FB and those for sub FBs that are called from the non procedural FB 2 Above figures for standard memory and retain memory includes the memory capacity necessary for sending receiving data 3 1 3 1 Communication Protocol Included Cfrp2 Non procedural FB _Cfrp2 3 1 2 Specification for _Cfrp2 1 Communication specification Item Transmission speed Specification 300 600 1200 2400 4800 9600 1 9200 38400 57600 76800 1 15200 bps Note Data bits Selected from 7 8 bits Parity bit None odd even Stop bits Selected from 1 2 bits DCE Selected from DTE DCE modem DTE mode Modem DTE mode Turn CD ON when receiving DTE mode ER always ON Signal control DCE mode DR always ON DTE mode Off RS always ON Sending unconditional Signal flow On RS ON during sending Sending when CS is ON control DCE mode Off CS always ON Sending unconditional On CS ON when RS is ON Sending when ER is ON XON XOFF control Selectable RS 485 mode Selected from 4 wire 2 wire Cedeeonversion Selected from None ASCII conversion EBCDIC conversion Convert binary data into character string variable None Disable frame detection function Frame detection Fixed length Designate the number of receive data bytes Variable length Designate start and end codes None None Horizontal parity BCC U
23. CRC lower order Write data upper order CRC upper order Write data lower order CRC lower order CRC upper order 1 In case of abnormal response 80hex is added to function code F_CODE_O 2 CRC is automatically calculated and added to the data by this FB 3 Write data is received in the order of upper order byte and lower order byte as shown below Therefore word data can be accessed in units of word as it is Send data S_DAT gt Upper order byte Lower order byte Upper order byte Lower order byte Lower order byte Upper order byte 7 Format in case of abnormal response In case of abnormal response the format of response message becomes as follows This is common to all functions Abnormal response Slave station No Function code 80h Error code CRC lower order CRC upper order lt Error code list gt 01h Function code error 02h Address setting error FB terminals gt Slave station No SIN_NO_O Function code F_CODE_O Lower order byte of the start word of receive data R_DAT 03h Read write data count setting error 3 60 C_modm FB terminals Slave station No SIN_NO_O Function code F_CODE_O gt Start address ADD_O Data length LEN_O C_modm 3 7 3 Initialization 3 7 MODBUS Procedure FB _C_modm 1 Set values of initializati
24. Edit wizard lt Function Function Block dialog box gt Function Function Block cron El erro El _ Heb a a CtdFRT Sa Ay CSMKB1 2 6 2 4 Uninstall lt Operation gt 1 Activate Add delete application from the Control Panel window The figure at left shows an example of Window98 screen image Add Remove Programs Properties Install Uninstall windows Setup Startup Disk To install a new program from a floppy disk or CD ROM Po 4 drive click Install Z The following software can be automatically removed by Windows To remove a program or to modify its installed components select it from the list and click Add Remove Adobe Acrobat 4 0 D300win Ver 2 2 3 0 Paint Shop Pro 5 0 QuickTime 3 0 STANDARD EXPANSION FB Ver 2 0 2 0E Add Remove 2 Select Standard Expansion FBs V2 and click the Add Remove button the Change Remove button for Windows2000 The confirmation screen for file deleting is displayed Confirm File Deletion po x 3 Clicking the OK button on the confirmation screen starts uninstalling the Standard Expansion FBs V2 file When uninstalling is completed a message to the effect is displayed InstallShield Wizard has finished performing maintenance operations on STANDARD EXPANSION FB Cancel 2 7 Section 3 Specification for Communication FB Page 3 1 Communication Protocol
25. General 1 1 General 1 2 General Purpose Communication Package for Factory Automation Machine Section 1 General 1 1 List of Standard Expansion FBs for General Purpose Communication Module Communication program for MICREX SX series to communicate data with external devices via the general purpose communication module is made using the function blocks dedicated to communication These communication function blocks include general non procedural FB as well as the communication FBs dedicated to communication with specific external devices The following FBs are prepared for communication purpose The following standard expansion FBs are prepared for the general purpose communication module The standard expansion FBs are included in the programming support tool D300win Type FB name FB Overview _C free Non procedural FB Send 512 words Receive 512 words _Cfr252 Non procedural FB Send 252 words Receive 252 words _Cfr128 Non procedural FB Send 128 words Receive 128 words _Cfr64 Non procedural FB Send 64 words Receive 64 words _Cfr32 Non procedural FB Send 32 words Receive 32 words Non procedure FB which built into communication protocol Non procedural FB Gfror Send 512 words Receive 512 words aie The program capacity is reduced by performing a part of the communication processing with the module Non procedure FB which built into communication protocol Send 512 words Receive 512 w
26. M_SEND error count M_RECEIVE error count Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Error data 1514131211109 8 765 43 210 RS signal CS signal DR signal ER signal CD signal Cl signal Reserved Send error Overrun Parity error Reserved Reserved Reserved Initialization end Receive error Framing error e Status of general purpose communication module 1514131211109 8 765 4 3 2 3 44 Mode switch x8 Mode switch x4 Mode switch x2 Mode switch x1 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved RS 485 station No RS 485 station No RS 485 station No RS 485 station No x8 x4 x2 x1 _CfdPK 3 6 FUJI Bar Code Reader Procedure FB _CfdPK 3 6 1 General The _CfdPK FB communicates data between the CPU module and FUJI PK2 series bar code reader using the start stop synchronization type transmission protocol For more information of the dedicated transmission parameters that are necessary to control FUJI bar code reader refer to the manual suppl
27. POC iii ota 4 24 3OPEN status lS tc iii dit ains 4 24 3 3 4 Data sending receiving soci a 4 25 1 Data sending receiving procedure oooooconocccnoconanananncconocannnano conocio nan nc roca cnn nn nan nn non c nin n rana nn n cnn nc ran nnannannns 4 25 2 Sending receiving status liSt municiones 4 26 3 3 5 RAS informatica 4 27 3 4 Communication Protocol Included General Purpose Inverter Procedure FB BA O h y o APO nn dt A N AENEA EE E EE cutecneve cay sttcasetsuerentuerys 4 28 3 4 1 General site dioka lid 4 28 3 4 2 Specifications for _Cfvrpr imitan eA iota iene ene 4 29 YFEB for matrassen aaea esaea et 4 29 2 Explanation of each FB terminal ooooonnocnnnnnnnconacacnonnnanncnnnnnannc nan c cnn na nono canon nan cn occ n nana nn narran rca r canina 4 30 3 43 Ithall ZATION carita ri iii ia 4 32 1 Set values of initialization parameters oe eee eeeeeeseeceeeeeeeeeeeeeeeeeaeeeeeeaeeeeeeaeeeeesaeeeesaeeneesateeeeeeeates 4 32 2 Initialization procedure 5ccececcscsesotsvers ccteeseesensensetcosonnccsetsctvsedoaekivecesusseceuvanesd i 4 33 3 OPEN Status iS tenerne ee evened 4 33 3 4 4 Data SENING TECEIVING eninin aeiae a aeara Aa Taa ROATA EEE aaa Ea araia 4 34 1 Data sending receiving procedure oconccnonnorncanncnnnacnnarnconocannannnennonccnonnnrnnn nac nnonornanac rca nora c nar ananacanos 4 34 2 Receiving Status list o oooooninninnnninoncnnocanonncnonnnarnn non c conan nara n cnn nro narnia n
28. RAS inf tion RAS 2C Work IN_OUT Stores the operating status of this FB informatio TYPE p g 3 22 _CtdFVR 3 3 FUJI General Purpose Inverter Standard Communication FGI BUS Procedure FB _CfdFVR 3 3 3 Initialization 1 Set values of initialization parameters In order to initialize RS 485 communication ports which are to be used it is necessary to set proper values for each communication parameter item so as to match the communication specifications of the FVR 11 series general purpose inverter The table below shows the setting contents of these parameters No Item Description General purpose 0 communication module Sets the station number of the general purpose communication module on the SX bus station No 4 Port No Designates an interface port on the general purpose communication module i 1 RS 485 port Designates a port No for sending receiving message to from a general purpose 2 Message port No communication module 3 Reserved Not used 4 Transmission sp ed Designates the transmission speed P 0 1200 1 2400 2 4800 3 9600 4 19200 bps Designates the data bit length When 7 is selected 7 bits make up one data when 8 8 bits make up one data 5 Data bit 0 7 bits 1 8 bits This is a bit which is added to data for the purpose of error detection Designate the 6 Parity bit proper one to match the setting of the device at the other end 0 None 1 Odd 2 Even T
29. an erratic operation might occur 0 Sufficiently make sure of safety before program change forced output starting stopping or anything else during a run The wrong operation might break or cause machine problems 0 Be sure to keep within the software operating environment described in this manual when using this product otherwise an erratic operation or a failure might be caused amp When operating the D300win or a personal computer be sure to select a stable place so that they won t be dropped Otherwise a failure might be caused Printed on Jul 2002 Manual No FEH255 Revision contents First edition Revision Manual No is shown on the cover Contents Preface Safety Precautions Revision Contents Page Section 1 Genoa aa 1 1 A AA AA 1 1 1 2 General Purpose Communication Package for Factory Automation Machine 0008 1 2 Section 2 Installation sisssiccccec ncncnncccccsaszacseescadseceddddscssseescivceecnannnaseeccecaaesseieces 2 1 2 1 Personal Computer Environment Necessary for Standard Expansion FBS ccoonmmcccninccccnonnnnnn 2 1 2 2 Installation Procedure of Standard Extended FB ccceceeeeeeeeeeeeeeseeeeeseeeeeeseeeeeeeeeeeesenaees 2 2 2 3 Registration to Library o oooonnnninnnnnnnnnnacccnnnnnnernnnnn rr 2 5 2 4 Uninstall ii a ii 2 7 Section 3 Specification for Communication FB sssssssssssnnnunnnnnnnnnnnnnnn nnn 3 1 3 1 Communication Prot
30. codes is received 3 10 3 1 Communication Protocol Included Non procedural FB _Cfrp2 Cfrp2 3 1 6 RAS information RAS information area is used as the work memory for FB operations as well as for checking the operating condition of FBs To use RAS information from the application program it is necessary to declare variables in the following manner lt Example of variable declaration gt VAR RAS _C_work_TYPE11PR2 END_VAR lt RAS information area INT array gt For the variable declaration shown above the array variable in which RAS information is stored becomes RAS Individual element stores the following RAS information RAS RAS _ 0 Port status RASRAS 1 Communication module RAS RAS 2 Send request count RAS RAS 3 Send end count RAS RAS 4 Receive count RAS RAS 5 Frame detection count RAS RAS 6 M_OPEN status RAS RAS 7 M_SEND status RAS RAS 8 M_RECEIVE status RAS RAS 9 M_SEND error count RAS RAS 10 M_RECEIVE error count RAS RAS 11 Reserved RAS RAS 12 Reserved RAS RAS 13 Reserved RAS RAS 14 Reserved RAS RAS 15 Reserved RAS RAS 16 Reserved RAS RAS 17 Reserved RAS RAS 18 Reserved RAS RAS 19 Reserved Port status Status of general purpose communication module Control data Error data 15 14 13 12 11 1 8 7 6 5432 0 15 141312111098 765 4 3 2 0 z 3 y
31. communication executed 3 41 module 3 5 FUJI Temperature Controller Procedure CtdPYX FB _CfdPYX 3 5 4 Data sending receiving 1 Data sending receiving procedure Set data Set transmission keyword sending X Set send data area designation 1 Set send data area designation 2 Send data area designation 2 7 S_DADR2 Set send data area designation 3 Send data S_DAT Transmission keyword sending S_TFW Send data area designation 1 S_DADR1 L dn Gh Send data area designation 3 S_DADR3 Turned ON by the application program Turned OFF by the application program Eso en Send request S_REQ Transmission keyword receiving R_TFW f D oO o o lt o o w w p oO w Q o o Q 5 w Oo i Po gt U gt U o N 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Receive end R_END Output only one scanning In case of receive error Pa Receive error R_ERR Send data transmission keyword for sending send data area designation 1 send data area designation 2 and send data area designation 3 are set and then send request is turned ON by the application program The FB detects the rising edge to execute the processing for sending When the processing for sending is completed the FB automatically comes in receiving waiting
32. error CO Hardware error detected during General purpose communication receiving module detected an error C1 Receive buffer has overflowed General purpose communication module detected an error C2 Send buffer has overflowed General purpose communication module detected an error Est Sand data size over General purpose communication module detected an error 3 35 3 4 Communication Protocol Included General Purpose Inverter Procedure FB _Cfvrpr 3 4 Communication Protocol Included General Cfvrpr Purpose Inverter Procedure FB _Cfvrpr 3 4 5 RAS information RAS information area is used as the work memory for FB operations as well as for checking the operating condition of FBs To use RAS information from the application program it is necessary to declare variables in the following manner lt Example of variable declaration gt VAR RAS _C_work_TYPE62PR END_VAR lt RAS information area INT array gt For the variable declaration shown above the array variable in which RAS information is stored becomes RAS Individual element stores the following RAS information RAS RAS 0 Port status RAS ASIA mauricio mode Prachi A sone Note Send end count is incremented by one when the RAS RASI 3 Send end count Note sending of data to all stations is completed RAS RAS 4 Receive count RAS RAS 5 Frame
33. has overflowed Gen ral purpose communication module detected an error C2 Send buffer has overflowed General purpose communication module detected an error dav Send data size over General purpose communication module detected an error 3 43 3 5 FUJI Temperature Controller Procedure FB _CfdPYX 3 5 5 RAS information _CfdPYX RAS information area is used as the work memory for FB operations as well as for checking the operating condition of FBs To use RAS information from the application program it is necessary to declare variables in the following manner lt Example of variable declaration gt VAR END_VAR RAS _C_work_TYPE25 lt RAS information area INT array gt For the variable declaration shown above the array variable in which RAS information is stored becomes RAS Individual element stores the following RAS information RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS Port status Control data 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Port status Status of general purpose communication module Send request count Send end count Receive count Frame detection count M_OPEN status M_SEND status M_RECEIVE status
34. information _CfdFVR BOOL OPEN BOOL S_REQ WORD S_STN WORD S_KND _C_SFNC_TYP62 S FNC BOOL OK WORD O_STS BOOL R_END BOOL R_ERR WORD R_STS WORD R_STN WORD R_KND _C_RFNC_TYP62 R_FNC _C_STXT_TYP62 S_TXT _C_RTXT_TYP62 R_TXT _C_PAR_TYP62 PARA _C_work_TYPE62 RAS WORD R_ERCD INT R_LEN Communication FGI BUS Procedure FB _CfdFVR Output terminal name Communication ready H Open status Receive end H Receive error H Receive status H Receive station address Receive command type Receive function code H Receive error code Number of receive data bytes t Send text data Receive text data IN OUT terminal 1 Communication parameter Note H RAS information indicates data type Note In general FBs are used with only the terminals connected that are necessary for communication Be sure to connect variables to the IN OUT terminals 3 21 3 3 FUJI General Purpose Inverter Standard _CtdFVR Communication FGI BUS Procedure FB _CfdFVR 2 Explanation of each FB terminal Terminal name Variable Data type 1 0 Description name ON Sends communication parameters to the general purpose communication module to initialize communication Open OPEN BOOL IN When communication becomes possible communication read
35. purpose communication 90 module disconnected 91 SX bus send error 92 SX bus receive error AO Object port error General purpose communication module detected an error AS Processing impossible because in General purpose communication conversion mode module detected an error Processing impossible because in General purpose communication A5 loader mode module detected an error Rae Processing impossible because General purpose communication A6 ae E self diagnosis is being executed module detected an error CO Hardware error detected during General purpose communication receiving module detected an error C1 Receive buffer has overflowed General purpose Communication module detected an error ca Send buffer has overflowed General purpose communication module detected an error C3 Send data size over General purpose communication module detected an error 3 64 C_modm _C_modm 3 7 MODBUS Procedure FB _C_modm 3 7 5 RAS information RAS information area is used as the work memory for FB operations as well as for checking the operating condition of FBs To use RAS information from the application program it is necessary to declare variables in the following manner lt Example of variable declaration gt VAR RAS _C_work_TYPE11MD END_VAR lt RAS information area INT array gt For the variable declaration shown above the array variable in which RAS information is
36. stored becomes RAS Individual element stores the following RAS information RAS RAS 0 Port status RASRAS 1 communication module RAS RAS 2 Send request count RAS RAS 3 Send end count RAS RAS 4 Receive count RAS RAS 5 Frame detection count RAS RAS 6 M_OPEN status RAS RAS 7 M_SEND status RAS RAS 8 M_RECEIVE status RAS RAS 9 M_SEND error count RAS RAS 10 M_RECEIVE error count RAS RAS 1 1 Reserved RAS RAS 12 Reserved RAS RAS 13 Reserved RAS RAS 14 Reserved RAS RAS 15 Reserved RAS RAS 16 Reserved RAS RAS 17 Reserved RAS RAS 18 Reserved RAS RAS 19 Reserved Port status Status of general purpose communication module Control data Error data 4 2 1514131211109 8 765 4 321 0 EAS AA Mode switch Mode switch Mode switch Mode switch Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved x8 x4 x2 x1 RS signal CS signal DR signal ER signal CD signal Cl signal Initialization end Reserved Send error Receive error Framing error Overrun R RS 485 station No x8 pas RS 485 station No
37. text data Send text data S_TXT X X Set send station address Send station address S_STN X x Set send command type Send command type S_KND A re XK Set send function code Turned ON by the application program Turned OFF by the application program E ea Send request S_ REQ Receive station address R_STN a a Received command type R_KND i Receive function code R_FNC Receive error code R_ERCD A Receive end A In case of receive error we Output only one scanning Receive error A OP Send text data send station address send command code and send function code are set and then send request is turned ON by the application program FB detects the rising edge to execute the processing for sending When the send station address is for all stations 99 the receive end flag is automatically turned ON the moment sending is completed receive error flag is also turned ON if abnormal When the send station address is for one station 99 the system automatically enters receiving waiting mode the moment sending is completed executing the processing for receiving When the delimiter between frames is detected the receive end flag is automatically turned ON receive error flag is also turned ON if abnormal 3 25 3 3 FUJI General Purpose Inverter Standard 2 Sending receiving status list Communication FGI BUS Procedure FB _CfdFVR
38. use RAS information from the application program it is necessary to declare variables in the following manner lt Example of variable declaration gt VAR RAS _C_work_TYPE62 END_VAR lt RAS information area INT array gt For the variable declaration shown above the array variable in which RAS information is stored becomes RAS Individual element stores the following RAS information RAS RAS 0 Port status RASRAST 1 merito module RAS RAS 2 Send request count RAS RAS 3 Send end count RAS RAS 4 Receive count RAS RAS 5 Frame detection count RAS RAS 6 M_OPEN status RAS RAS 7 M_SEND status RAS RAS 8 M_RECEIVE status RAS RAS 9 M_SEND error count RAS RAS 10 M_RECEIVE error count RAS RAS 1 1 Reserved RAS RAS 12 Reserved RAS RAS 13 Reserved RAS RAS 14 Reserved RAS RAS 15 Reserved RAS RAS 16 Reserved RAS RAS 17 Reserved RAS RAS 18 Reserved RAS RAS 19 Reserved Port status Status of general purpose communication module Control data Error data 1514131211109 8 765 4 3 210 Aba EPS ee NN i Mode switch x8 RS signal x8 j Mode switch x4 CS signal y
39. x4 Besewed RS 485 station No x2 oe Re aie RS 485 station No x1 Reserved 3 65 Fuji Electric Co Ltd ED amp C Drive Systems Company Gate City Ohsaki East Tower 11 2 Osaki 1 chome Shinagawa ku Tokyo 141 0032 Japan Phone 81 3 5435 7135 8 Fax 81 3 5435 7456 9 URL http www fujielectric co jp kiki Information in this manual is subject to change without notice 2002 7
40. 1 Initialization parameters In order to initialize each individual port of the general purpose communication module it is necessary to set values which match the communication specifications of the object external device to the individual communication parameters The table below shows the setting contents of these parameters 3 1 Communication Protocol Included Non procedural FB _Cfrp2 No Item Description General purpose Sets the station number of the general purpose communication module on the SX 0 communication module bus station No Designates an interface port on general purpose communication module 1 Port No 0 RS 232C port 1 RS 485 port Message port No 1 Designates a port No for sending receiving messages to from a general purpose 2 communication module 1 to 127 Note Avoid designating a port No which is already used for sending receiving messages to from other module Message port No 2 Designates a port No for sending receiving messages to from a general purpose 3 communication module 1 to 127 Note Be careful not to duplicately set this port with message port No 1 or other message sending or receiving port numbers Designates the transmission speed 4 Transmission speed 0 1200 1 2400 2 4800 3 9600 4 19200 5 38400 6 57600 7 76800 8 115200 90 300 91 600 bps Designates the data bit length When 7 is selected 7 bits make up one data when 8 8 bits make
41. 1 Set values of initialization parameters In order to initialize communication ports which are to be used it is necessary to set proper values for each communication parameter item so as to match the communication specifications of the FUJI temperature controler The table below shows the setting contents of these parameters No Item Description General purpose 0 communication module Sets the station number of the general purpose communication module on the SX bus station No Designates an interface port on the general purpose communication module 1 Port No 0 RS 232C port 1 RS 485 port Designates a port No for sending receiving message to from a general purpose 2 Message port No communication module Reserved Not used Set 0 zero for the data 15 The timer for monitoring during the period from when the CPU module sends a send request to a device until communication ends This value can be set in 0 01 second steps Example For 1 second set this value to 100 16 Response monitoring timer In case of communication error this designates how many times to retry 17 Retry count a communication 18 Reserved Not used Set 0 zero for the data 39 2 Initialization procedure When the OPEN terminal of FB is turned ON communication parameters are transferred to the general purpose communication module which executes initialization If initialization is impossible due to communi
42. EN status list No Result of initialization Remarks 00 Ended normally 01 Transmission speed error General purpose communication module detected an error 02 Data bit length error General purpose communication module detected an error 03 Parity bit error General purpose communication module detected an error 04 Stop bit error General purpose communication module detected an error 05 DCE designation error General purpose communication module detected an error 06 Signal flow control setting error General purpose communication module detected an error 07 XON XOFF control setting error General purpose communication module detected an error 08 RS 485 mode setting error General purpose communication module detected an error 3F Parameter modification error Parameter modification error after OPEN 40 Code conversion setting error 41 Frame detecting method setting error 42 Start code setting error 43 End code setting error 44 BCC code setting error 45 BCC calculation range setting error 46 BCC calculation formula setting error 47 BCC code type setting error 48 Transmission timer specify setting error Do not specify a minus value for the send timer 80 General purpose communication module station No setting error 81 Channel No setting error 82 Message port No setting error 93 Open error M_OPEN error 94 Open error a lie abnor
43. F h es e A function that inhibits writing during operation Note For more information refer to the inverter specifications 3 31 3 4 Communication Protocol Included General Cfvrpr Purpose Inverter Procedure FB _Cfvrpr 3 4 3 Initialization 1 Set values of initialization parameters In order to initialize the ports of the general purpose communication module it is necessary to set proper values for each communication parameter item so as to match the communication specifications of the corresponding external device The table below shows the setting contents of these parameters No Item Description General purpose 0 communication module Sets the station number of the general purpose communication module on the SX bus station No 4 Port No Designates an interface port on the general purpose communication module i 1 RS 485 port Designates a port No for sending receiving message to from a general purpose 2 Message port No 1 communication module 1 to 127 Note Avoide setting the same value as other message send receive port numbers Designates a port No for sending receiving message to from a general purpose communication module 1 to 127 Note Avoide setting the same value message port No 1 or other message send receive port numbers 3 Message port No 2 Designates the transmission speed 4 Transmission speed 0 1200 1 2400 2 4800 3 9600 4 19200 5 38400 6 57600 7 76800 8
44. FUJI Bar Code Reader Procedure FB _CfdPK 3 6 4 Data sending procedure 1 Data sending produre Send data S_DAT Number of send data bytes S_LEN Send request S_REQ Send end S_END Send request S_ERR _CfdPK Sets send data and send data length E Turned ON by the application program Turned OFF by the application program Processing for sending Si In case of sending error Output only one scanning LE After send data is set send request is turned ON by the application program FB detects the rising edge to execute the processing for sending When sending has ended S_END send end flag is turned ON for only one pulse If a send error has occurred S_END send end and S_ERR send error are turned ON for only one pulse and the corresponding error code is output to S_STS send status 00 when ended normally 2 Send status list No Result of sending Remarks 00 Normally ended 01 Send buffer has overflowed 42 BCC error 90 General purpose communication module disconnected Not detected 91 SX bus send error 92 SX bus receive error Not detected AO Object port error Specified port No is neither 0 nor 1 A3 Processing impossible because in code conversion mode A5 Processing impossible because in loader mode AG Processing impossible because self diagnosis is being Error detection on g
45. FUSI EtTECTRIE MICREX 5X series SrH USER S MANUAL STANDARD EXTENDED FB for GENERAL PURPOSE COMMUNICATION MODULE FEH255 Preface This User s Manual explains the specifications and operating methods for the expansion FBs that are provided as standard for communicating data between MICREX SX Series general purpose communication module NP1L RS1 2 4 and external devices Read this manual carefully to ensure correct operation When using the module or peripheral devices read the corresponding user s manuals listed below together with this manual Title Manual No Contents User s Manual Instruction MICREX SX series FEH200 Explains the memory language and system SPH definitions of the MICREX SX series User s Manual Hardware MICREX SX series SPH FEH201 Explains the system configurations and the hardware specifications of modules in the MICREX SX series User s Manual General Purpose Communication FEH225 Explains the memory language and system Module MICREX SX Series SPH definitions of the MICREX SX series User s Manual D300win V2 lt Reference gt FEH254 Explains the menus and icons of D300win V2 and all MICREX SX Series of the operations of D300win V2 Microsoft MS DOS Windows Windows NT Word Excel Visual Basic and Visual C are the trademarks of U S based Microsoft Corporation that are registered in U S A and other countries Intel486 and Pentium are registered trademarks of Intel Corpora
46. INSERT button Look in ja LIBRARIES e E e Ed EA Logical is E es Ne Be 6 C_SX MICREXSX _CFDPK _Cfip2 W _C_FREE H System_Definition _CFDPYX _Cfvrpr 13 _C_FRPR o _CFR128 _MHCNT 8 _C_modm Global Variables _C_modm _crr252 _mspos 15 _CFDFAN _CFDFRN _CFR32 E _ADSNET mwt 18 _CFDFYR gt Files of type User Library mwt y Cancel Za 2 Select an FB file name that you want to register in the library and left click the Insert button The project of the selected expansion FB is registered in the library Look in ua e e E _ADSNET 3_CFDPKk W _C_modm mwt E _C_COM C _CFDPYX 8 _CFDFAN MwT E _C_FREE _cFR128 8 _CFOFVA MWT E _C_FRPR _crr252 18 _CFOPKMWT E _C_modm 3_cras2 8 _CFDPY lt MwT E _CFDFRN Cl_crres C_FREE MWT W _CFR128 MwT E _CFDFVA C _Chp2 _C_FRPR MWT 8 _CFR252MwT A File name _C_COM MWwT Files of type User Library mwt Cancel p 4 EY Project Ey Libraries QA _c com i a Gc Inserted project Data Types bd ranges Note _C_COM is necessary to use a standard expansion FB for communication B S Physical Hardware C_SX MICREXSX BB System_Definition B S R_S32 NP1PS 32 H E Tasks eG Global_Variables 2 5 2 3 Registration to Library 3 FBs registered in the library can be selected from the Function Function Block dialog box or from the
47. Included Non procedural FB _Cfrp2 sscsssseeeee 4 1 37121 General ica dai ad is 4 1 3 1 2 Specification tor CPZ nni i alia ila cle 4 2 1 Communication Specification eeeeceeeeseceeeeeeeeeseeeeeeeeeseeeeeesecseeeaesaeesaesaeseaeeaeeeaesaeseaeeaeseeeseseeeaeeneeeas 4 2 2 EB format evousedannveuven Aa a ara E reson eh Aaaa raaa aa aa ra eE 4 3 3 Explanation for FB terminallS cccccscccccesicesccessterscerscccessceedecesatconsevnsecuncenoecevoutnsrtcavaednstestsevousesstischeenseis 4 4 8 1 3 IMMA ZAtlOM cti lirio EAE IDR 4 5 1 Initialization parameters ooonnnnncnnocccinccnonanannccnn non nanon conan nan nc nan c anna nn nano nn nin nr nn narra rana ran nan nan ar naar na rnn canos 4 5 2 Initialization Procedure miii ib 4 8 3 OREN status listaa Rinna r A aiid eee E dimen 4 8 371 4 Data SOI cintia p iii 4 9 1 Data sending procedure ccoccccccccocccancccnnnnnncnonccnonanano cono cnn nono nn cnn nana n aran ani n cre nana n nr nn nn naar rana ran nc nena nnnacnnns 4 9 2 Send status list aniisi ie ee die die i RA anne 4 9 3 1 5 Data receiving iii 4 10 1 Data receiving procedure ou cee ec eee eee eens eeeeeceeceeeeeaeeseaeseeeseaeecaeeseseesseeseaeeseaeseaeeseesseneeseaeenaeees 4 10 2 RECEIVING Status Sii ie 4 10 3 T O RAS informatica dat 4 11 3 2 FUJI General Purpose Inverter Procedure FB _CfdFRN s sccceessseeeees 4 12 IREI EEA EA T ET 4 12 3 2 2 Specifications for _CfdFRN oooooo
48. OOL OUT Turns ON if a receive error has occurred Receive status R_STS WORD OUT Code to indicate the result of receiving 2 aad data R_LEN INT OUT Outputs the received data length Receive data R_DAT eo IN_OUT Stores received data RS 485 station STN_NO INT OUT The condition of the RS 485 station number setup switch of the No general purpose communication module is output to this pin RAS information RAS ile IN_OUT Operating information of this FB lt Format of the variables that are connected to the send data terminal S_DAT gt The data that are connected to S_DAT must be laid out as follows Upper order Lower order lt When variable name is S_DAT gt S DAT 0 i SPATI S_DAT _C_SND_TYP11PR2 WEN END_VAR S_DAT 511 Data 1024 Data 1023 The size of send data is maximum 1024 bytes including start code end code and BCC when code conversion is not to be performed lt Format of the variables that are connected to the Receive data terminal R_DAT gt The data that are connected to R_DAT must be laid out as follows lt When variable name is R_DAT gt Upper order Lower order R_DAT 0 a ADT R_DAT _C_RCV_TYP11PR2 ETS ae END_VAR R_DAT 511 Data 1024 Data 1023 The size of receive data is maximum 1024 bytes including start code end code and BCC when code conversion is not to be performed 3 4 Cfrp2 3 1 3 Initialization
49. R_DAT Offset address with respect to the designated start address 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 3 57 3 7 MODBUS Procedure FB _C_modm C_modm 2 Retain register reading code 03 Input register reading code 04 Reads the status of the input bit of a slave device The format of request message and response message is shown blow FB terminals Request message Response message FB terminals Slave station No SIN_NO_I gt Slave station No Slave station No gt Slave station No SIN_NO_O Function code F_CODE_l gt Function code Function code gt Function code F_CODE_O Start address upper order Number of bytes of read data Data length LEN_O Start address ADD_l gt Start address lower order Read data lower order Data length upper order Read data upper order Data length LEN_I gt ome upp i Data length lower order Read data lower order Receive data R_DAT CRC lower order Read data upper order CRC upper order 2 CRC lower order CRC upper order Notes 1 In case of abnormal response 80hex is added to function code F_CODE_O 2 Function 03 04 does not use the number of bytes LEN2_1 Set WORD 16 0000 for the LEN2_ terminal Similarly all the variables that are connected to
50. S 232C communication ports which are to be used it is necessary to set proper values for each communication parameter item so as to match the communication specifications of the PK2 series bar code reader The table below shows the setting contents of these parameters No Item Description General purpose 0 communication module Sets the station number of the general purpose communication module on the SX bus station No 4 Port No Designates an interface port on the general purpose communication module 0 RS 232C port Designates a port No for sending receiving message to from a general purpose 2 Message port No communication module 3 Reserved Not used 4 Transmission speed Designates the transmission speed p 0 1200 1 2400 2 4800 3 9600 4 19200 bps Designates the data bit length When 7 is selected 7 bits make up one data when 8 8 bits make up one data 5 Data bit 0 7 bits 1 8 bits This is a bit which is added to data for the purpose of error detection Designate the 6 Parity bit proper one to match the setting of the device at the other end 0 None 1 Odd 2 Even This bit indicates the end of data Designate the proper one to match the setting of the 7 Stop bit device at the other end 0 1 bit 2 2 bits 8 i Reserved Not used 15 The timer for monitoring during the period from when the CPU module sends a send add request to a device until communication ends This value
51. S 232C or RS 485 NP1L RS1 2 4 the non procedural FB included in D300win is used The non procedural FB communicates data between the CPU module and external devices using the start stop synchronization type non procedural transmission protocol 7 types of non procedural FB are prepared as shown below Of these the _Cfrp2 FB performs communication at high speed by integrating part of the communication protocol in the general purpose communication module and using two ports for communicating SX bus messages FB Name Specification Overview _C free Non procedural FB Send 512 words Receive 512 words Note 1 _Cfr252 Non procedural FB Send 252 words Receive 252 words Note 1 _Cfr128 Non procedural FB Send 128 words Receive 128 words Note 1 _Cfr64 Non procedural FB Send 64 words Receive 64 words Note 1 _Cfr32 Non procedural FB Send 32 words Receive 32 words Note 1 Non procedural FB Send 512 words Receive 512 words A part of communication processing is processed by the firmware in the module Nate tano _Cfrpr Non procedural FB Send 512 words Receive 512 words _Cfrp2 A part of communication processing is processed by the firmware in the module Note 2 and two message boards are used to increase the processing speed Notes 1 For more information of non procedural FBs other than _Cfrp2 refer to the user s manual for the general purpose communication module FEH225 2 The communic
52. a desio ation 2 S_DADR2 WORD IN length However when transmission keyword is control this eee becomes the command code area Send data area S DADR3 WORD IN Designates the data area for the start address of file designation 3 command code and negative acknowledge cause data Send data S_DAT _C_PYX_DAT25 IN_OUT Stores send data Communication BARA _C_PAR_TYP25 IN_OUT Stores the initialization parameters parameter Communication OK BOOL OUT Turns ON when initialization has ended normally to indicate ready that the system is ready for sending receiving data Open status O_STS WORD OUT 2 digit hexadecimal code to indicate the result of initialization Receive end R_END BOOL OUT Turns ON when receiving has completed Receive error R_ERR BOOL OUT Turns ON if a receive error has occurred Receive status R_STS WORD OUT Code to indicate the result of receiving Transmission keyword R_TFW WORD OUT Stores transmission keyword for receiving receiving RECEIVE Gala arga R_DADR1 WORD OUT Designates receive data area designation 1 Receive gata a R_DADR2 WORD OUT Designates receive data area designation 2 RecEIve data area R_DADR3 WORD OUT Designates receive data area designation 3 Receive data R_DAT _C_PYX_DAT25 IN_OUT Stores received data RAS information RAS Se ORT URE IN_OUT Stores the operating status of this FB 25 3 39 3 5 FUJI Temperature Controller Procedure CtdPYX FB _CfdPYX 3 5 3 Initialization
53. arran anni 4 35 3 4 5 RAStOrMaAtlN cusco llista 4 36 3 5 FUJI Temperature Controller Procedure FB _CfdPYX ccccsssecceessseeeeeenees 4 37 A See Ae ee ee 4 37 3 5 2 Specification for Cid Xssscc c adie sete cei ds 4 38 A EF Bat On Mat aa 4 38 2 Explanation for FB SA O 4 39 3 39 IITA ZATION lt td On 4 40 1 Set values of initialization parameters 2 eee ce eeeeeeeeeeeeeeeeeeseeeeeeeaeeeseeaeeeeeeaeeeeesaeseeeeaeeneeseseeeeaeeaees 4 40 2 InitlaliZation Procedure izinen ceraian aaae e 4 40 SO EC a aC 4 41 3 5 4 Data sending recelviInG curia tal aa lcd 4 42 1 Data sending receiving procedure oconconosnorananicnanacnnarcconccconanonennanccnonna ran ano n cono nnnra conca nora naar aranaconos 4 42 2 Sending receiving Status list ooooonnncinnnnnicnnnnnnconnonncnnnnacnnrcnn cnc cnrr rca 4 43 329 5 RAS MOMO tira ari da rca 4 44 3 6 FUJI Bar Code Reader Procedure FB _CfdPK ccccesssecceeeeneeeeeeensneeeeeeenees 4 45 NO 4 45 3 6 2 Specifiction tor Cl Kiara 4 46 ALEDO Mat ieissa aaa adidas 4 46 2 FB terminals iria a N a 4 47 CA EEA Ua 260s esecad cheecchandadetcasecagdssebasbintesedceagpangensavedeagceseaasacedasadcenahard cease Saadssasctoaganehieas 4 48 1 Set values of initialization parameters 2 eee eeeeeeeeeeeeeeeeeeeeeeeeaeeeseeaeeeeeeaeeeeesaeeeeeeaeseeeeatseeeeeeates 4 48 2 Initialization procedure cercania AAA AAA 4 49 3 OPEN status liS diia A AA A a aie a 4 49
54. ation parameter _C_PAR_TYPE25 PARA Communication parameter Note RAS information 4_ _C_work_TYPE25 RAS RAS information indicates data type Note In general FBs are used with only the terminals connected that are necessary for communication Be sure to connect variables to the IN OUT terminals 3 38 _CfdPYX 3 5 FUJI Temperature Controller Procedure FB _CfdPYX 2 Explanation for FB terminals Terminal name Variable Data type 1 0 Description name ON Sends the communication parameters to the general purpose communication module to initialize communication When communication becomes possible Open OFEN BOOL dE communication ready turns ON OFF Performs the processing for ending communication Communication ready turns OFF Starts to send data When sending has ended this needs to Send request SL REQ BOOL IN be turned OFF by the application program T D Designates transmission keyword There are 6 types of ENSEN SSON transmission keyword polling selecting control positive keyword S_TWF WORD IN ne y i pete acknowledge 1 positive acknowledge 2 and negative sending acknowledge Send data area Designates the data area for station No file No and designation 1 AA WORD D extended station No Send data are Designates the data area for extended file No and dat
55. ation protocol included non procedural FB performs part of communication processing in the firmware in the module Therefore to use this FB V2536 or later version V2535 or later version for _Cfrpr of general purpose communication module is necessary The _Cfrp2 FB performs the following operations in combination with the firmware in the module 1 Initialization of communication ports Initializes RS 232C and RS 485 ports sets transmission speed data bit length parity bits etc so as to match the external device 2 Data sending receiving function Sends the data from an application program in the CPU of MICREX SX series via RS1 to an external device or outputs the data received via the general purpose communication module to an application program 3 Monitoring of transmission condition Monitors the condition of data transmission ana if abnormal outputs error information lt FB operating conditions gt System configuration One FB is necessary for each external device which is connected by RS 232C or RS 485 to one general purpose communication module However when RS 232C RS 485 signal conversion is enabled the mode selection switch is set to 4 for the general purpose communication module each FB is used by two channels Memory capacity Program area 1287 steps Data memory capacity Instance memory for user FBs 122 words Standard memory 1608 words Instance memory for system FBs 74 words Notes 1
56. can be set in 0 01 second 16 Response monitoring timer steps Example For 1 second set this value to 100 Designates the start code of transmission command 17 Start code 0 None 1 STX 18 E d cod Designates the end code of transmission command coce 0 CR 1 LF 2 CR LF 3 ETX 4 ETXCRF 5 ETX LF 6 ETX CR LF Designates transmission procedure 0 Non procedural i Vtransmissionproced r Receives the end data simply as read by the bar code reader p 1 ACK NAK procedure Sends ACK when the data read by the bar code reader is received normally NAK if a receiving error occurred In case of communication error this designates how many times to retry 20 Retry count communication 21 BCC designation Sets wneer or not to add horizontal parity for checking text data transmission error 0 No 1 Yes 22 Reserved Not used 39 3 48 _CftdPK 2 Initialization procedure When the OPEN terminal of FB is turned ON communication parameters are transferred to the general purpose communication module which executes processing for initialization If initialization is impossible due to a communication parameter setting error or hardware error FB outputs the corresponding error code to the OPEN Status O_STS 3 6 FUJI Bar Code Reader Procedure FB _CfdPK Turned ON by the application program Turned OFF by the application program Note OPEN OPEN CY Processing for initialization N Port closing operation C
57. cation parameter setting error or hardware error FB outputs the corresponding error code to O_STS OPEN status Turned ON by the application program Turned OFF by the application program Note OPEN OPEN KN Processing for initialization N Port closing operation Communication ready OK If an initialization error has occurred OPEN Status oe P A O_STS 00 Ne Error status Note OPEN signal shall be kept ON during data communication 3 40 _CtdPYX 3 Open status 3 5 FUJI Temperature Controller Procedure FB _CfdPYX No Result of initialization Remarks 00 Normally ended 08 RS 485 mode setting error S on general purpose communication 3F Parameter changeover error Parameter modification after OPEN detected 40 Response monitoring timer value setting error 41 Retry count setting error 80 General purpose communication module station No setting error 81 Port No setting error 82 Message port No setting error 93 Open error Initialization failed due to SX bus error 94 Open error Initialization failed due to abnormality on general purpose communication module A3 Processing impossible because in code conversion mode TN A on general purpose communication A5 Processing impossible because in loader mode A on gerieral purpose communication AG Processing impossible because self diagnosis is being Error detection on general purpose
58. cccccccconnnonncooncnonannoncnnnnnnnn corno n nana none nnn nro are nn anna cane rrnn nana cines 4 13 EDT Madonna A A E eat 4 13 2 Explanation of each FB terminal ooonnnnnninncnononnocanoncnonanonanononc can na nono narco nan ncnn nan n nc nn rra 4 14 3 23 MitlalizatiON lt lt lt tits a ista de 4 15 1 Set values of initialization parameters ooonconnoniccnnnnnccnonncnnconncnarancncnrn nara rn crac 4 15 2 Initialization AN 4 16 3 OPEN status listinn aep a a aa 4 16 3 2 4 Data SENdING TECEIVING vico ia ct a ci 4 17 1 Data sending receiving procedure ocomccnorncnnnnnonnnaranancanacanonennannconccnonannncnnnnnn nac na rnarncccnncn nas aconcanos 4 17 2 Sending receiving Status list oonocnoonnnninnnnnicnnnonnconnncnnnanncnnrnn cnc 4 18 9 25 RAS ito Mali tra da AAA 4 19 3 3 FUJI General Purpose Inverter Standard Communication FGI BUS Procedure FB _CfdAFVR coccion riencia adenda ia 4 20 3 3 1 E A A O cs 4 20 3 3 2 Specifications for CAF VR coocooccconcccnoccnoncnnoncnoncnnoncnnnnncnn cn nan nnnn canon cn nne nro creara nena rn nnerrnnnnnna nenes 4 21 1 FB 10 11 1 SOPRANO Un A a arai Nat 4 21 2 Explanation of each FB terminal 0 0 0 cece ccc ecene eee eeeeee eee seaeeceneseeeseeeseeeseaeeeaeeseeeeeneeseaeenaeees 4 22 3 3 3 MAIZ ON cia Hebe A E E 4 23 1 Set values of initialization parameters eeeeeceeeeeeteeeeeeeeeeeeeeeeeeeeeeeeeeeaeeeeeeaeeeeseaeseeeateneeeaeeneeeaeeaes 4 23 2 Initialization
59. cedure FB _C_modm 3 7 2 Specification for_C_modm 1 Communication specification Item Transmission speed C_modm Specification 300 600 1200 2400 4800 9600 1 9200 38400 57600 76800 1 15200 bps Data bits 8bits Fxation Parity bit None odd even Stop bits Selected from 1 2 bits DCE Selected from DTE DCE modem DTE mode Modem DTE mode Turn CD ON when receiving y DTE mode ER always ON Signal control DCE mode DR always ON DTE mode Off RS always ON Sending unconditional Signal flow On RS ON during sending Sending when CS is ON control DCE mode Off CS always ON Sending unconditional On CS ON when RS is ON Sending when ER is ON XON XOFF control The prerequisite of XON XOFF flow control is that XON or XOFF does not appear on the data RS 485 mode Selected from 4 wire 2 wire Code conversion None Fixation Error check CRC16 Upper order Lower order Fixation Transmission timer value x10ms 3 54 C_modm 2 FB format Input terminal name Open Send request Slave station No Function code First address Data length No of bytes Send data Receive data Communication parameter RAS information 3 7 MODBUS Procedure FB _C_modm Output terminal name _C_modm BOOL OPEN BOOL S_REQ INT STN_NO_1 WORD F_CODE WORD ADD _ WORD LEN_ WORD LEN2_ BOOL OK WORD O_STS BOOL R_END BOOL R_ERR
60. compatible CPU Intel Pentium 233 MHz or higher Min 1 unit with 220 MB or greater free space 100 MB for D300win 120 MB for expansion FBs Floppy disk drive Min 1 unit medium 2HD 1 25M 1 44M bytes 3 5 inch Min 1 unit quadruple speed or higher device is recommended medium Hard disk External storage ais Ep ROM drive ISO09660 format Memory capacity Min 128 MB Keyboard a AO1 keyboard CTRL alphanumeric or 101 English Mouse USB mouse bus mouse or PS2 mouse Display resolution Min 800x600 dots 1024x768 or higher is recommended Communication interface COM port RS 232C WindowsNT 4 0 SP3 or higher Windows95 98 ME 2000 Japanese version or Necessary OS see note English version Note OS depends on which version of D300win you use Adapted to Windows95 98 All V2 versions of D300win Adapted to Windows2000 V2 2 0 0 or later versions of D300win Adapted to WindowsME V2 2 2 0 or later versions of D300win 2 1 2 2 Installation Procedure of Standard Extended FB The standard extended FB is included in the Programming Support Tool D300win System Software Package CD ROM lt Operating Procedure gt 1 Activate Windows and then insert the product CD ROM into the CD ROM drive The following dialog appears a D300win Startup MICREX 5X DECLOLO Vli Cox 02 Fuji Electric Co Ltd FUJI ELEGIR Please select click the following heads Installation o Note If the
61. ction code code _TYP61 R_ERC Receive error code D WORD OUT Stores the receive error code Number ofreceive R_LEN INT OUT Stores the number of receive data bytes data bytes Receive text data R_TXT ae 4 IN_OUT Stores receive text data f _C work F j RAS information RAS TYPE61 IN_OUT Stores the operating status of this FB 3 14 _CfdFRN 3 2 3 Initialization 3 2 FUJI General Purpose Inverter Procedure FB _CfdFRN 1 Set values of initialization parameters In order to initialize RS 485 communication ports which are to be used it is necessary to set proper values for each communication parameter item so as to match the communication specifications of the FVR 9 series general purpose inverter The table below shows the setting contents of these parameters No item Description General purpose 0 communication module Sets the station number of the general purpose communication module on the SX bus station No 4 Port No Designates an interface port on the general purpose communication module i 1 RS 485 port Designates a port No for sending receiving message to from a general purpose 2 Message port No communication module 3 Reserved Not used 4 Transmission sp ed Designates the transmission speed P 0 1200 1 2400 2 4800 3 9600 4 19200 bps Designates the data bit length When 7 is selected 7 bits make up one data when 5 Data bit 8 8 bits make up one data 0 7 bits
62. d time out 90 General purpose communication module disconnected Not detected 91 SX bus send error 92 SX bus receive error Not detected AO Object port error Specified port No is neither O nor 1 A3 Processing impossible because in code conversion mode A5 Processing impossible because in loader mode AG Processing impossible because self diagnosis is being Error detection on general purpose communication executed module ico Send buffer has overflowed ae on general purpose communication e3 Send data size over Error detection on general purpose communication module 3 9 3 1 Communication Protocol Included Non procedural FB _Cfrp2 Cfrp2 3 1 5 Data receiving 1 Data receiving procedure Communication ready OK gt l Continuous receiving operation A Receive data R_DAT Receive data length R_LEN X Receive status R_STS X Receive end R_END In case of receive error Output only one scanning lt pi Receive error E_ERR While the communication ready flag is turned ON whether the data to be received exists or not is checked continuously and when it exists the operation for receiving is executed When a delimiter between data frames is detected the received data and the number of receive data bytes are stored in R_DAT receive data and R_LEN receive data length respectively and the R_END receive end flag is turned ON
63. data is received from the 2nd station after the data is sent to the 2nd station receive status R_STS receive station address R_STN receive command type R_KND and receive function code R_FNC are overwritten and receive end flag R_END is turned ON again for one scan cycle Therefore the setting shall be made such that the processing for receiving is started when receive end flag is turned ON 3 34 Ctfvrpr 2 Receiving status list No Result of sending receiving Remarks 00 Ended normally 01 Send buffer has overflowed 02 Receive buffer has overflowed 40 Data send time out If the response of remote station could not normally be received the 41 Protocol response error address of said remote station is output to receive station address R_STN 42 BCC error 43 No vaild data 44 Previous send data sending ee General purpose communication md module disconnected Not detected 91 SX bus send error 92 SX bus receive error AO Object port error General purpose communication module detected an error A3 Processing impossible because in General purpose communication conversion mode module detected an error en Processing impossible because in General purpose communication A5 loader mode module detected an error meai Processing impossible because self General purpose communication A6 i diagnosis is being executed module detected an
64. detection count RAS RAS 6 M_OPEN status RAS RAS 7 M_SEND status RAS RAS 8 M_RECEIVE status RAS RAS 9 M_SEND error count RAS RAS 10 M_RECEIVE error count RAS RAS 1 1 Reserved RAS RAS 1 2 Reserved RAS RAS 13 Reserved RAS RAS 14 Reserved RAS RAS 15 Reserved RAS RAS 16 Reserved RAS RAS 17 Reserved RAS RAS 18 Reserved RAS RAS 19 Reserved Port status e Status of general purpose communication module Control data Error data 15 14 13 12 11 1 7 5 4 2 1514131211109 8 7 6 5 4 3 2 0 3 3 Diog e 3 5 i Mode switch x8 RS signal x8 CS signal Mode switch x4 a Mode switch x2 DR signal i i Mode switch x1 ER signal i Reserved CD signal i Reserved Cl signal S Reserved Initialization end Reserved Reserved Reserved Send error i Reserved Receive error i Reserved Framing error Overrun Reserved i RS 485 station No x8 Parity error RS 485 station No RS 485 station No RS 485 station No x4 x2 x1 Reserved Reserved Reserved 3 36 _CfdPYX 3 5 FUJI Temperature Controller Procedure FB CfdPYX 3 5 1 Generall The _CfdPYX FB function block communicates data betwee
65. e communication module Memory capacity Program area 1718 steps Data memory capacity Instance memory for user FBs 304 words Standard memory 818 words Instance memory for system FBs 98 words Notes 1 Above figures for memory capacity includes the area for the main body of the temperature controller procedure FB and those for sub FBs that are called from the temperature controller procedure FB 2 Above figures for standard memory and retain memory includes the memory capacity necessary for sending receiving data 3 37 3 5 FUJI Temperature Controller Procedure CtdPYX FB _CfdPYX 3 5 2 Specification for CfdPYX 1 FB format Input terminal name Output terminal name _CfdPYX Open BOOL OPEN BOOL OK Communication ready Communication request BOOL S_REQ WORD O_STS Open status Transmission keyword WORD S_TFW BOOL REND Receive end sending Send data area designation 1 WORD S_DADR1 BOOL RERR p Receive error Send data area designation 2 WORD S_DADR2 WORD R_STs Receive status Send data area designation 3 WORD S_DADR3 WORD R_TFW Transmission keyword receiving WORD R_DADR1 p Receive data area designation 1 WORD R_DADR2 _ Receive data area designation 2 WORD R_DADR3 Receive data area designation 3 Send data 4_ CO PYX_DAT25 S_DAT Send data Receive data C_PYX_DAT25 R_DAT Receive data pee Communic
66. e processing for ending communication Communication ready turns OFF Starts to send data When sending has ended this needs to be Send request S REQ BOE IN turned OFF by the application program BUMDET Olseng S_LEN INT IN Stores the number of bytes of send data data bytes Send data S_DAT n IN_OUT Stores send data Communication bara C PAR_TYP45 IN_OUT Stores the initialization parameters parameter Communication OK BOOL OUT Turns ON when initialization has ended normally to indicate that ready the system is ready for sending receiving data Open status O STS WORD OUT 2 digit hexadecimal code to indicate the result of initialization Send end S_END BOOL OUT Turns ON when sending has completed Send error S_ERR BOOL OUT Turn ON if a send error has occurred Send status S_STS WORD OUT Code to indicate the result of sending Receive end R_END BOOL OUT Turns ON when receiving has completed Receive error R_ERR BOOL OUT Turns ON if a receive error has occurred Receive status R_STS WORD OUT Code to indicate the result of receiving Number of recieve data R_LEN INT OUT Stores the number of bytes of receive data bytes Receive data R_DAT aes IN_OUT Stores received data RAS information RAS raphe ora IN_OUT Stores the operating status of this FB 3 47 3 6 FUJI Bar Code Reader Procedure FB _CfdPK 3 6 3 Initialization _CfdPK 1 Set values of initialization parameters In order to initialize R
67. eneral purpose communication executed module CO Hardware error detected during receiving P on general purpose communication 01 Bacaivenuierhacovenlowed At as on general purpose communication Car Send buffer has overflowed ae on general purpose communication 09 Send data size over Error detection on general purpose communication 3 50 module _CftdPK 3 6 5 Data receiving procedure 1 Data recieving procedure Communication ready Receive status R_STS Receive end R_END Receive error E_ERR 3 6 FUJI Bar Code Reader Procedure FB _CfdPK Continuous receiving operation Receive data R_DAT A A In case of receive error Output only one scaming ee While the communication ready flag is turned ON whether the data to be received exists or not is checked continuously and when it exists the operation for receiving is executed When a delimiter between data frames is detected the received data is stored in R_DAT receive data respectively and the R_END receive end flag is turned ON for only one pulse The result of receiving is stored in R_STS receive status If a receive error has occurred R_END receive end and E_ERR receive error are turned ON for only one pulse 2 Receiving status list No Result of receiving Remarks 00 Ended normally 02 Receive buffer has overflowed 41 Protocal response erro
68. er order byte Example WORD 16 0010 Designates the start address of the data that becomes the object of reading or writing operation For diagnosis 08 diagnosis Start address code is input Query ABD WORD N Set data in the following format 15 87 0 Upper order Lower order Designates the size the number of bits or words of read data or write data Some functions do not use this terminal In such Data length case set this item to 0000h Query LENA WORD IN Set data in the following format 15 87 0 Upper order Lower order Designates the number of bytes of write data when multiple bits OF or multiple words 10 are to be written For other functions Number of bytes set this item to 0000h Query LENEI WORD N Set data in the following format 15 87 0 Upper order Lower order _C_SND_TYP Stores send data Sendata SARAT 11 MD INEQUE For data reading or diagnosis the data are all set to O zero Communication _C PAR TY 11 Stores the initialization parameters parameter FARA MD UE Refer to 3 7 3 for details Communication Turns ON when initialization has ended normally to indicate that ready OK BOOL QUT the system is ready for sending receiving data Open status O STS WORD OUT 2 digit hexadecimal code to indicate the result of initialization Receive end R_END BOOL OUT Turns ON when receiving has completed Receive error R_ERR BOOL OUT Turns ON if a receive error has occurred Receive status R_STS WORD OUT Code to indicate
69. for only one pulse The result of receiving is stored in R_STS receive status If a receive error has occurred R_END receive end and E_ERR receive error are turned ON for only one pulse 2 Receiving status list No Result of receiving Remarks 00 Ended normally 02 Receive buffer has overflowed 42 BCC error 90 General purpose communication module disconnected 91 SX bus send error 92 SX bus receive error AQ Object port error General purpose communication module detected an error A3 Processing impossible because in code conversion mode pineal purpose c rmmunicaton modu edetecteg A5 Processing impossible because in loader mode pole purposes communication module detected AG Processing impossible because self diagnosis is being General purpose communication module detected executed an error C0 Hardware error detected during receiving General purpose communication module detected Parity error Franming error etc an error C1 Receive buffer has overflowed General purpose communication module detected an error Note Receiving conditions The processing for receiving differs with the setting of parameter Frame detection None Receiving completes when data is received Fixed length Receiving completes when receive data reaches the specified number of receive data bytes Variable length Receiving completes when the data in a range between start and end
70. g receiving data 3 45 3 6 FUJI Bar Code Reader Procedure FB _CfdPK 3 6 2 Specifiction for CfdPK 1 FB format Input terminal name Open Send request Number of send data bytes Send data Receive data Communication parameter RAS information 4 BOOL OPEN BOOL S_REQ INT S_LEN _CfdPK BOOL OK WORD O_STS BOOL S_END BOOL S_ERR WORD S_STS BOOL R_END BOOL R_ERR WORD R_STS INT R_LEN _C_SND_TYP45 S_DAT _C_RCV_TYP45 R_DAT _C_PAR_TYP45 PARA _C_work_TYPE45 RAS indicates data type _CfdPK Output terminal name Communication ready Open status Send end Send error Send status Receive end Receive error Receive status Number of recieve data bytes Send data Receive data IN OUT terminal Note Communication parameter RAS information Note In general FBs are used with only the terminals connected that are necessary for communication Be sure to connect variables to the IN OUT terminals 3 46 _CftdPK 2 FB terminals 3 6 FUJI Bar Code Reader Procedure FB _CfdPK Terminal name Variable Data type 1 0 Description name ON Sends the communication parameters to the general purpose communication module to initialize communication When communication becomes possible Open OPEN BOOL D communication ready turns ON OFF Performs th
71. his bit indicates the end of data Designate the proper one to match the setting of the 7 Stop bit device at the other end 0 1 bit 2 2 bits 8 Reserved Not used 15 The timer for monitoring during the period from when the CPU module sends a send e request to a device until communication ends This value can be set in 0 01 second 16 Response monitoring timer steps Example For 1 second set this value to 100 17 Retry count In case of communication error this designates how many times to retry communication 18 Reserved Not used 39 Note No in the above table is element number of the array variable for communication parameter 3 23 3 3 FUJI General Purpose Inverter Standard _CfdFVR Communication FGI BUS Procedure FB _CfdFVR 2 Initialization procedure When the OPEN terminal of FB is turned ON communication parameters are transferred to the general purpose communication module which executes initialization If initialization is impossible due to communication parameter setting error or hardware error FB outputs the corresponding error code to O_STS OPEN status Turned ON by the application program Turned OFF by the application program Note OPEN OPEN Processing for initialization N Port closing operation Communication ready OK If an initialization error has occurred OPEN Status OR i gt O_STS 00 a Error status Note OPEN signal shall be kept ON during data com
72. ication program it is necessary to declare variables in the following manner lt Example of variable declaration gt VAR RAS _C_work_TYPE61 END_VAR lt RAS information area INT array gt For the variable declaration shown above the array variable in which RAS information is stored becomes RAS Individual element stores the following RAS information RAS RAS 0 Port status RASRAS 1 Communication module RAS RAS 2 Send request count RAS RAS 3 Send end count RAS RAS 4 Receive count RAS RAS _ 5 Frame detection count RAS RAS 6 M_OPEN status RAS RAS 7 M_SEND status RAS RAS 8 M_RECEIVE status RAS RAS 9 M_SEND error count RAS RAS 10 M_RECEIVE error count RAS RAS 11 Reserved RAS RAS 12 Reserved RAS RAS 13 Reserved RAS RAS 14 Reserved RAS RAS 15 Reserved RAS RAS 16 Reserved RAS RAS 17 Reserved RAS RAS 18 Reserved RAS RAS 19 Reserved Port status Status of general purpose communication module Control data Error data 432 151413 1211109876543 210 E AE REA E g Mode switch RS signal i Mode switch CS signal y Mode switch DR signal i Mode switch ER signal CD signal Reserved Reserved Cl signal sigr o Reserved Initialization end Reserved Reserved Reserved Send error A Reserved Receive error Reserved Framing error Reserved Overrun
73. ied with the PK2 series bar code reader 1 Initialization of communication ports Initializes RS 232C ports the setting of transmission speed data bit length parity bit etc 2 Data sending receiving function Sends data from an application program in the MICREX SX series CPU module to the FUJI bar code reader via the general purpose communication module or outputs the data received via the general purpose communication module to an application program 3 Transmission condition monitoring function Monitors data transmission condition and outputs error information if abnormal lt Connecting method of _CfdPK gt The connecting method between the general purpose communication module and FUJI PK2 series bar code reader must be 1 1 connection by RS 232C lt FB operating conditions gt System configuration One FB is necessary for each communication port RS 232C to be used e FUJI PK2 series bar code reader may not be connected to the RS 485 port Memory capacity Program area 2907 steps Data memory capacity Instance memory for user FBs 352 words Standard memory 846 words Instance memory for system FBs 90 words Notes 1 Above figures for memory capacity includes the area for the main body of FUJI bar code reader procedure FB and those for sub FBs that are called from the bar code reader procedure FB 2 Above figures for standard memory and retain memory includes the memory capacity necessary for sendin
74. installation dialog box does not appear perform the following operations Click Start and then Run enter autorun exe then click the OK button 2 When you click Standard Expansion FB Setup the following Welcome dialog box appears STANDARD EXPANSION FB Setup Welcome to the InstallShield Wizard for STANDARD EXPANSION FB The InstallShield Wizard will install STANDARD EXPANSION FB on your computer To continue click Next Click here first 2 2 2 2 Installation Procedure of Standard Extended FB 3 When you click the Next gt button in the Welcome dialog box the Choose Destination Locarion dialog box appears STANDARD EXPANSION FB Setup Choose Destination Location Select folder where Setup will install files Setup will install STANDARD EXPANSION FB in the following folder To install to this folder click Next To install to a different folder click Browse and select another folder The target folder appears here Destination Folder c Browse InstallShield To change the target folder click the Browse button The following Choose Folder dialog box appears Specify a folder and then click the OK button Control returns to the Choose Destination Location dialog box Choose Folder i x Please choose the installation folder Path JE AD300win Directories E WIN ME PG E E a Acrobat 4 0
75. inverter FRENIC 5000 series via the general purpose communication module or outputs the data received via the general purpose communication module to an application program 3 Transmission condition monitoring function Monitors data transmission condition and outputs error information if abnormal lt Connecting method of _CfdFRN gt The connecting method between the general purpose communication module and FUJI FRENIC 5000 series general purpose inverter must be 1 N connection by RS 485 2 wire system lt FB operating conditions gt System configuration e One FB is necessary for each communication port RS 485 to be used Communication with the inverters that are connected to one RS 485 system is performed by one FB e FUJI general purpose inverter may not be connected to the RS 232C port e This FB cannot be used in the mode where RS 232C RS 485 signal conversion is enabled for the general purpose communication module Memory capacity Program area 2046 steps Data memory capacity Instance memory for user FBs 280 words Standard memory 854 words Instance memory for system FBs 90 words Notes 1 Above figures for memory capacity includes the area for the main body of non procedural FB and those for sub FBs that are called from the non procedural FB 2 Above figures for standard memory and retain memory includes the memory capacity necessary for sending receiving data 3 12 _CfdFRN 3 2 FUJI Ge
76. lization N Port closing operation Communication ready OK If an initialization error has occurred OPEN Status OR i gt O_STS 00 a Error status Note OPEN signal shall be kept ON during data communication 3 OPEN status list No Result of initialization Remarks 00 Ended normally 01 Transmission speed error General purpose communication module detected an error 02 Data bit length error General purpose communication module detected an error 03 Parity bit error General purpose communication module detected an error 04 Stop bit error General purpose communication module detected an error 05 Reserved 06 Reserved 07 Reserved SF Parameter changeover error Parameter modification after OPEN detected 40 Response monitoring timer value setting error 41 Retry count setting error 42 Reserved 43 Reserved 80 General purpose communication module station No setting error 81 Port No setting error 82 Message port No setting error 93 Open error Initialization failed due to SX bus error 94 Open error as abnormality on general purpose A3 is ors Bass General purpose communication module detected an error A5 E a o because in General purpose communication module detected an error AG Frocessing impossible because General purpose communication module detected an error selfdiagnosis is being executed 3 16
77. lization is impossible due to communication parameter setting error or hardware error FB outputs the corresponding error code to O_STS OPEN status Turned ON by the application program Turned OFF by the application program Note OPEN OPEN N Processing for initialization N Port closing operation Communication ready OK If an initialization error has occurred OPEN Status aks E O_STS 00 be Error status Note OPEN signal shall be kept ON during data communication 3 OPEN status list No Result of initialization Remarks 00 Ended normally 01 Transmission speed error General purpose communication module detected an error 02 Data bit length error General purpose communication module detected an error 03 Parity bit error General purpose communication module detected an error 04 Stop bit error General purpose communication module detected an error 3F Parameter changeover error Parameter modification after OPEN detected 40 Response monitoring timer value When negative setting error 41 Retry count setting error When negative ihe General purpose communication 80 module station No setting error 81 Port No setting error 82 Message port No setting error 93 Open error Initialization failed due to SX bus error 94 Open error Initialization failed due to abnormality on general purpose communication module A3 plecessinig im
78. mality on general purpose A3 aU ae gl y General purpose communication module detected an error A5 eae i because in General purpose communication module detected an error A6 Processing Impossible because self General purpose communication module detected an error diagnosis is being executed 3 8 _Cfrp2 3 1 Communication Protocol Included Non procedural FB _Cfrp2 3 1 4 Data sending 1 Data sending procedure Set data Set data length Send data length S_LEN A tp x Turned ON by the application program Turned OFF by the application program Send request S_REQ Pe Processing for sending Send end S_END In case of sending error no Send status S_STS X Result of sending En Output only one scanning Send error S_ERR ES Output only one scanning After setting send data and its data length turn S_REQ send request ON by the application program Then FB detects the rising edge to execute the processing for sending When sending has ended S_END send end flag is turned ON for only one pulse If a send error has occurred S_END send end and S_ERR send error are turned ON for only one pulse and the corresponding error code is output to S_STS send status 00 when ended normally 2 Send status list No Result of sending Remarks 00 Normally ended 01 Send buffer has overflowed 40 Data sen
79. message to the master station 3 If not coincides the slave station discards the received message and waits for next command message 1 Data sending receiving procedure Set data Turned ON by the application program Turned OFF by the application program _ pe Send request S_REQ Normal sending recieving Processing for sending y recieving Receive end R_END S Output only one scanning Recieive data R_DAT Ki Recieve data l I l l i i In case of sending recieving error 7 P Output only one scanning Receive error R_ERR After send data is set send request is turned ON by the application program FB detects the rising edge to execute the processing for sending When sending operation ends and response message is received from the slave station receive end flag is turned ON for only one pulse In case of receive error receive end and receive error flags are turned ON for only one pulse and the corresponding error code is output to the receive status area 00 when ended normally 3 63 3 7 MODBUS Procedure FB _C_modm 2 Receiving status list No Result of receiving Remarks 00 Ended normally 10 Receive buffer has overflowed 41 Unsupported function was sent 12 Unsupported function was received 13 Send station No error 114 Length 2 setting error 41 Time up of response monitoring timer 42 CRC error WA General
80. mode executing the processing for receiving When the processing for sending and receiving has completed received data transmission keyword for receiving receive data area designation 1 receive data area designation 2 and receive data area designation 3 are stored and then the receive end flag is set ON for only one pulse In case of transmission error both end flag and receive error flag are set ON for only one pulse 3 42 _CfdPYX 3 5 FUJI Temperature Controller Procedure FB _CfdPYX 2 Sending receiving status list No Result of sending receiving Remarks 00 Ended normally 01 Reserved 02 Send buffer has overflowed 40 Data send time out 41 Protocol response error 42 BCC error 90 General purpose communication Not detected module disconnected 91 SX bus send error 92 SX bus receive error AO Object port error General purpose communication module detected an error A3 Processing impossible because in General purpose communication conversion mode module detected an error ieee Processing impossible because in General purpose communication A5 loader mode module detected an error PA Processing impossible because self General purpose communication A6 ite i diagnosis is being executed module detected an error CO Hardware error detected during General purpose communication receiving module detected an error C1 Receive buffer
81. munication 3 OPEN status list No Result of initialization Remarks 00 Ended normally 01 Transmission speed error General purpose communication module detected an error 02 Data bit length error General purpose communication module detected an error 03 Parity bit error General purpose communication module detected an error 04 Stop bit error General purpose communication module detected an error SF Parameter changeover error Parameter modification after OPEN detected 40 Response monitoring timer value setting error 41 Retry count setting error ani General purpose communication 80 i module station No setting error 81 Port No setting error 82 Message port No setting error 93 Open error Initialization failed due to SX bus error 94 Open error Initialization failed due to abnormality on general purpose communication module A3 Processing impossible because General purpose communication module detected an error conversion mode A5 Processing impossible because in General purpose communication module detected an error loader mode AG Processing impossible because General purpose communication module detected an error selfdiagnosis is being executed 3 24 _CfdFVR 3 3 FUJI General Purpose Inverter Standard Communication FGI BUS Procedure FB _CfdFVR 3 3 4 Data sending receiving 1 Data sending receiving procedure Set send
82. n the CPU module and FUJI PYX or PYH series temperature controller using the start stop synchronization type transmission protocol For more information of the dedicated transmission parameters that are necessary to control the PYX or PYH series temperature controller refer to the manual for the corresponding temperature controller 1 Initialization of communication port Initializes the RS 485 port the setting of transmission speed data bit length parity bit etc 2 Data sending receiving function Sends data from an application program in the MICREX SX series CPU module to FUJI PYX or PYH series temperature controller via the general purpose communication module or outputs the data received via the general purpose communication module to an application program 3 Transmission condition monitoring function Monitors data transmission condition and outputs error information if abnormal lt Connecting method of _CfdPYX gt The connecting method between the general purpose communication module and FUJI PYX or PYH series temperature controller must be 1 N connection by RS 485 2 wire system lt FB operating conditions gt System configuration One FB is necessary for each communication port RS 485 to be used Communication with all the temperature controllers that are connected to one RS 485 is performed by one FB e This FB cannot be used in the mode where RS 232C RS 485 signal conversion is enabled for the general purpos
83. nds communication parameters to the general purpose communication module to initialize communication When communication becomes possible communication Open OPEN BOOL IN ready turns ON OFF Performs the processing for ending communication Communication ready turns OFF Starts to send data When sending is completed this needs to Send request Ss RE ROUL N be turned OFF by the application program _C_STXT Send text data S_TXT TYP62PR IN_OUT Stores the send text data Communication _C_PAR ee eset parameter PARA TYP62PR IN_OUT Stores the initialization parameters Communication Turns ON when initialization has ended normally to indicate that ready Qk BOOL OUT the system is ready for sending receiving data Open status O_STS WORD OUT 2 digit hexadecimal code to indicate the result of initialization Send run S_RUN BOOL OUT Turns ON while data is sent to all stations Receive end R_END BOOL OUT Turns ON when receive ends Turns ON if a receive error has occurred R_ERR does not turn ON while NAK is received from a remote Receive error R_ERR BOOL OUT station because NAK signal is received normally R_ERR turns ON only when data is not normally received due to no response or BCC error for example Code to indicate the result of receiving Recieve status R STS WORD OUT In case of no response or BCC error sending station code is output to the receiving station address so that it can be known which station didn t respond
84. necessary for communication Be sure to connect variables to the IN OUT terminals 3 3 3 1 Communication Protocol Included Cfrp2 Non procedural FB _Cfrp2 3 Explanation for FB terminals Terminal name Terminal Data type 1 0 Description name ON Sends the communication parameters to the general purpose communication module to initialize Open OPEN BOOL IN communication When communication becomes possible communication ready turns ON OFF Performs the processing for ending communication Communication ready turns OFF Starts to send data When sending has ended this needs to be Send request REQ BOOL IN turned OFF by the application program o e S_LEN INT IN Designates the length of send data by the number of bytes Send data S_DAT ANDO IN_OUT Stores send data 11 PR2 Communication PARA Ae IN_OUT Stores the initialization parameters parameter 11 PR2 Communication OK BOOL OUT Turns ON when initialization has ended normally to indicate that ready the system is ready for sending receiving data Open status O_STS WORD OUT 2 digit hexadecimal code to indicate the result of initialization Send end S_END BOOL OUT Turns ON when sending has completed Send error S ERR BOOL OUT Turn ON if a send error has occurred Send status S_STS WORD OUT Code to indicate the result of sending Receive end R_END BOOL OUT Turns ON when receiving has completed Receive error R_ERR B
85. neral Purpose Inverter Procedure FB _CfdFRN 3 2 2 Specifications for _CfdFRN 1 FB format Input terminal name i OPEN Send request Send station address Send command code Send function code Number of send data bytes Send text data Receive text data Communication parameter RAS information BOOL OPEN BOOL S_REQ WORD S_STN WORD S_CMD _C_SFNC_TYP61 S_FNC _CfdFRN BOOL OK WORD O_STS BOOL R_END BOOL R_ERR WORD R_STS INT S_LEN WORD R_STN _C_RFNC_TYP61 R_FNC WORD R_ERCD INT R_LEN C_STXT_TYP61 S_ TXT _C_RTXT_TYP61 R_TXT _C_PAR_TYP61 PARA _C_work_TYPE61 RAS indicates data type Output terminal name Communication ready Open status Receive end Receive error Receive status Receive station address Receive function code H Receive error code Number of receive data bytes Send text data H Receive text data m Communication parameter H RAS information IN OUT terminal Note Note In general FBs are used with only the terminals connected that are necessary for communication Be sure to connect variables to the IN OUT terminals 3 13 3 2 FUJI General Purpose Inverter Procedure FB _CfdFRN 2 Explanation of each FB terminal _CfdFRN
86. ocol Included Non procedural FB _Cfrp2 s seccsesseeeeeesseeeeeeeeeeeeees 3 1 cc ral e e sede eed Si Ab ead lee eee hb bleed i ariede Ea a A eects 3 1 3 1 2 Specification tor Cilicia cei aie A Gide 3 2 3 123 INITAlIZatlON uti ii tee lee ade A ne eh ee A a ea 3 5 3 1 4 Data Sending 1s5 43 4 sk he yee A ee A es 3 9 Il Data TOGOIVING ss s2 se ci taetetse sai sagceessasaaneaduastaessaneagasteceesianapacaesasaessceensassanasectasoesesseuselseeveeraapeaaeesuaceagpeale 3 10 3 16 RAS Informations s23 2522 222 escsacssadecheatescetacsh Aid ans 3 11 3 2 FUJI General Purpose Inverter Procedure FB _CfdFRN cccccscseeeeeseseeeessseeenseeeeeeeeeeees 3 12 3 271 Generalne eet A ER Ail ee a De es dn eR es 3 12 3 2 2 Specifications for Ctd FR Ninco ln ia eea r tesla di 3 13 3 223 INIT AlIZAtlON i A ee ee AS 3 15 3 2 4 Data sending rec ViN ienn tet ieee LRA EA era eevee a ad Aas 3 17 352 5 RAS informations O 3 19 3 3 FUJI General Purpose Inverter Standard Communication FGI BUS ProceduresFB CldF VR iaa AR UR a na idea 3 20 323 1 General EE E hes des need Hin ee ies A Lee eins Ee ee el 3 20 3 3 2 Specifications for CidEV Riss sianandin aia nein none ae a 3 21 3 33 MEAE io a a A A ee a ee 3 23 323 4 Data sending fecelviNO sissi iana darte hai daa pa 3 25 373 57 RAS informatica A isa 3 27 3 4 Communication Protocol Included General Purpose Inverter Procedure FB _Cfvrpr 3 28 CA A aes ec hie araa a enecdee ee e
87. ommunication ready OK If initialization error has occurred Note OPEN signal shall be setto Always ON during data communication OPEN Status 00 O_STS Error status 3 OPEN status list No Result of initialization Remarks 00 Ended normally 01 Transmission speed error General purpose communication module detected an error 02 Data bit length error General purpose communication module detected an error 03 Parity bit error General purpose communication module detected an error 04 Stop bit error General purpose communication module detected an error 3F Parameter modification error Parameter modification error after OPEN 40 Response monitoring timer value setting error 41 Retry count setting error 42 Start code setting error 43 End code setting error 44 BCC code setting error 45 Retry count setting error 80 General purpose communication module station No setting error 81 Port No setting error 82 Message port No setting error 93 Open error Initialization failed due to bus error 94 Open error ES abnormality on general purpose A3 de E in General purpose communication module detected an error A5 a eee beca se in General purpose communication module detected an error AG F rocessing IMposSIbIE beca se selt General purpose communication module detected an error diagnosis is being executed 3 49 3 6
88. on parameters In order to initialize each individual port of the general purpose communication module it is necessary to set values which match the communication specifications of the object external device to the individual communication parameters The table below shows the setting contents of these parameters No Item Description 0 General purpose communication Sets the station number of the general purpose communication module on the SX module station No bus Designates an interface port on general purpose communication module 1 Port No 0 RS 232C port 1 RS 485 port Designates a port No for sending receiving messages to from a general purpose communication module 1 to 127 2 Message port No Note Avoid designating a port No which is already used for sending receiving messages to from other module 3 Reserved Not used Designates the transmission speed 4 Transmission speed 0 1200 1 2400 2 4800 3 9600 4 19200 5 38400 6 57600 7 76800 8 115200 90 300 91 600 bps 5 Reserved Not used This is a bit which is added to data for the purpose of error detection Designate 6 Parity bit the proper one to match the setting of the device at the other end 0 None 1 Odd 2 Even This bit indicates the end of data Designate the proper one to match the setting 7 Stop bit of the device at the other end 0 1 bit 2 2 bits When signal line control is not performed there is no difference in function
89. ords _Cfrp2 The program capacity is reduced by performing a part of the communication processing with the module In addition communication processing can be mabe high speed by using two SX bus message ports _CfdFRN For FUJI Inverter FRENIC series _CfdFVR For FUJI Inverter FVR C11 series FGI BUS For FUJI Inverter For FUJI Inverter FVR C11 series FGI BUS _Cfvrpr The program capacity is reduced by performing a part of the communication processing with the module For FUJI heater _CfdPYX For FUJI heater PYX series and PYH series For FUJI bar code _CfdPK For FUJI bar code reader PK2 series MODBUS _C_modm MODBUS procedure FB communicates data with MODBUS slave statins making MICREX SX the master station Note For _Cfrp2 CfdFRN CfdFVR _Cfvrpr CfdPYX and _CfdPK refer to MICREX SX USER S MANUAL GENERAL PURPOSE COMMUNICATION MODULE FEH225 1 1 1 2 General Purpose Communication Package for Factory Automation Machine In addition to standard expansion FBs for the general purpose communication module the general purpose communication package for Factory Automation machine NP4H COMFV2 is prepared Procedure FB name Device _CrkREX RIKA KOGYOU CO LTD REX F REX D FAREX SR series Temperature _Com AX OMRON Corporation Digital temperature controller E5AX E5XJ series controller _ComCK OMRON Corporation Digital temperature controller E5CK series _CymSDC Yamatake Corporation Digit
90. possible Pecause sin General purpose communication module detected an error conversion mode A5 Pipe ses poi Decals General purpose communication module detected an error loader mode AG Processing impossible because General purpose communication module detected an error selfdiagnosis is being exected 3 33 3 4 Communication Protocol Included General Cfvrpr Purpose Inverter Procedure FB _Cfvrpr 3 4 4 Data sending receiving 1 Data sending receiving procedure The send data for all stations is set as a batch Send text data S_TXT X X Turned ON by the application program Turned OFF by the application program RAR _ Send request S_REQ Send data for 1st station Send data for 2nd station Receive data for 1st station E Receive data for 2nd station Receive end R_END A Turned ON for Turned ON for we one scan cycle one scan cycle Receive error R_ERR The send text data for all the stations is set as a batch and send request is turned ON by the application program The FB sends the data to the 1st station and sets receive status R_STS receive station address R_STN receive command type R_KND and receive function code R_FNC when response data is received from the inverter on the 1st station Then receive end flag R_END is turned ON for one scan cycle During the next scan cycle communication with the 2nd station inverter is started When response
91. pper order Lower order Lower order Upper order Calculation range designation Designate position Formula Selected from add add and inver EOR CRC BCC code Selected from character code binary code Transmission timer value x10ms Note The non procedural FBs that can select the transmission speed of 300 600 76800 and 115200 bps are _Cfrpr and _Cfrp2 V2535 or later version of general purpose communication module can use the _Cfrpr FB V2536 or later version of general purpose interface module can use the _Cfrp2 FB 3 2 Cfrp2 2 FB format Input terminal name Open Send request Send data length Send data Receive data Communication parameter RAS information 3 1 Communication Protocol Included Non procedural FB _Cfrp2 Output terminal name _C frp2 BOOL OPEN BOOL S_REQ INT S_LEN BOOL OK WORD O_STS BOOL S_END BOOL S_ERR WORD S_STS BOOL R_END BOOL R_ERR WORD R_STS INT R_LEN INT STN_NO L Communication ready Open status Send end Send error H Send status Receive end Receive error Receive status Receive data length RS 485 station No Send data H Receive data m Communication parameter RAS information indicates data type IN OUT terminal Note Note In general FBs are used with only the terminals connected that are
92. r 42 BCC error 90 General purpose communication module disconnected 91 SX bus send error 92 SX bus receive error AO Object port error General purpose communication module detected an error A3 Processing impossible because in code conversion mode alado purpose communicatonmmodulegetecteg A5 Processing impossible because in loader mode ee purpose Communication module etected AG Processing impossible because self diagnosis is being General purpose communication module detected executed an error CO Hardware error detected during receiving General purpose communication module detected Parity error Franming error etc an error Cr Receive butter has overlowed General purpose communication module detected an error c2 Send buffer has overflowed General purpose communication module detected an error C3 Number of send data over General purpose communication module detected 3 51 an error 3 6 FUJI Bar Code Reader Procedure FB _CfdPK 3 6 6 RAS information _CfdPK RAS information area is used as the work memory for FB operations as well as for checking the operating condition of FBs To use RAS information from the application program it is necessary to declare variables in the following manner lt Example of variable declaration gt VAR END_VAR RAS _C_work_TYPE45 lt RAS information area INT array gt For the variable declaration shown above the ar
93. r module power down library correction for module power down library correction for module power down and warning SND_TMR un used library correction for module power down library correction for module power down library correction for module power down library i correction for module power down library correction for module power down _CfdPYX library correction for module power down a a a a nr arn ann tae nF U2 6 1 6E _Cfrp2 library U2 6 8 1 added _Cfurpr library U2 8 8 2 added 4 4 4 4 ia library comment change library bug fixed for bit length BCC comment change library bug fixed for bit length BCC comment change library bug fixed for bit length BCC comment change library bug fixed for bit length BCC comment change library bug fixed for bit length BCC comment change library i new FB library comment change library comment change library comment change library bug fixed for MAX word length library no change library no change noo e ii U2 0 0 1E This is the original 2 3 Registration to Library Individual communication FBs included in the standard expansion FB package can be used when registered in a library under a created project lt Operation gt 1 Right click Libraries in the project tree and then left click the Insert button Then the Include library dialog box will appear on the screen Include library EY Project Insert
94. ray variable in which RAS information is stored becomes RAS Individual element stores the following RAS information RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS RAS Port status Control data 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Port status Status of general purpose communication module Send request count Send end count Receive count Frame detection count M_OPEN status M_SEND status M_RECEIVE status M_SEND error count M_RECEIVE error count Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Error data 1514131211109 8 765 43 210 RS signal CS signal DR signal ER signal CD signal Cl signal Reserved Send error Overrun Parity error Reserved Reserved Reserved Initialization end Receive error Framing error e Status of general purpose communication module 1514131211109 8 765 4 3 2
95. rder CRC upper order Notes 1 In case of abnormal response 80hex is added to function code F_CODE_ O 2 Function 05 does not use data length LEN_l or the number of bytes LEN2_l Set WORD 16 0000 for these terminals 3 CRC is automatically calculated and added to the data by this FB 4 Forcible ON command sets WORD 16 FFO00 for the start word of send data Forcible OFF command sets WORD 16 0000 3 58 C_modm 3 7 MODBUS Procedure FB _C_modm 4 Retain register writing 1 word code 06 Writes data in the register 1 word that is designated by a slave device The format of request message and response message is shown below FB terminals Slave station No SIN_NO_l gt Function code F_CODE_l gt Start address ADD_l gt Send data S_DAT gt Notes Request message Response message Slave station No Slave station No Function code 06h Function code 06h Register address upper order Register address upper order Register address lower order Register address lower order Write data upper order Write data upper order Write data lower order Write data lower order CRC lower order CRC lower order CRC upper order CRC upper order 1 In case of abnormal response 80hex is added to function code F_CODE_O 2 Function 06 does not use the data length LEN_l or the number of bytes
96. ronic temperature controller SDC40A 40G series _ComV6 OMRON Corporation V600 series CshDS SHARP MANUFACTURING SYSTEM CORPORATION Microwave ID plate ID system system DS series _CymWAM Yamatake Corporation Code distinguish ID system WAM120 series _CizFP IDEC IZUMI CORPORATION Data carrier system FP1A series _CtkTCD THOKEN Co Ltd TCD8200 8500 TLMS 3200RV series _CndBCC NIPPON ELECTRIC INDUSTRY CO LTD BCC2600 series BL500 BL700 Bar code reader A _CkyBL KEYENCE CORPORATION BL180 series _CizDS IZUMI DATA LOGIC CO LTD Bar code reader DS series SECS _C_SECS SECS procedure semiconductor manufacturing system for SECS I only FANUC _CDCN2 FANUC CNC machines Serial Printer _Cprint Commercially available serial printers 1 2 Section 2 Installation Page 2 1 Personal Computer Environment Necessary for Standard Expansion FBs 2 1 2 2 Installation Procedure of Standard Extended FB ooonncccconcconccnnconnnanoncnanannnnananenane 2 2 2 3 Registration to Library ccccecsseeceeeeeeeeeeeeeeeneeeeeenseeeeseeenseeeseeensneeeeeeesseceeeeenseeeeeeeenss 2 5 ZII iii 2 7 Section 2 Installation 2 1 Personal Computer Environment Necessary for Standard Expansion FBs To use standard expansion FBs the operating environment of D300win plus the hard disk capacity necessary to install the expansion FBs that you want to use are required as personal computer operating environment Item Specification Hardware IBM AT
97. s Function code Function Function code Function 01 Coil output reading 06 Retain register writing 1 word 02 Input bit reading 08 Diagnosis see note 03 Retain register reading OF Forcible ON OFF multiple bits 04 Input register reading 10 Retain register writing multiple words 05 Forcible ON OFF 1 bit Note For more information of diagnosis refer to the MODBUS specification lt Connecting method of _C_modm gt For the connecting method between the general purpose communication module and MODBUS devices 1 N connection by RS 485 2 wire system and 1 1 connection by RS 232C are available lt FB operating conditions gt System configuration One FB is necessary for each communication port RS 232C RS 485 to be used One FB is used to communicate data with the MODBUS devices that are connected to one port e This FB can be used with V2536 or later version of the general purpose communication module Memory capacity Program area 3276 steps Data memory capacity Instance memory for user FBs 342 words Standard memory 2386 words Instance memory for system FBs 55 words Notes 1 Above figures for memory capacity includes the area for the main body of MODBUS procedure FB and those for sub FBs that are called from the MODBUS procedure FB 2 Above figures for standard memory and retain memory includes the memory capacity necessary for sending receiving data 3 53 3 7 MODBUS Pro
98. s between DCE and DTE modes The RS 232C of the general purpose communication module is of DTE specification however it can be used as a DCE specification interface when signal lines are converted as follows 8 DCE designation No 7 pin RS to CS No 8 pin CS to RS No 6 pin DR to ER No 4 pin ER to DR 0 DTE 1 DCE 2 Modem DTE 9 ER DR signal control 0 Disable initial values 1 Enable initial values DTE mode 0 Off RS always ON Sending unconditional 46 Signal flow 1 On RS ON while sending Sending when CS is ON control DCE mode 0 Off CS always ON Sending unconditional 1 On CS ON when RTS is ON Sending when ER is ON Because communication between sender and receiver is performed asynchronously flow control may be necessary The receiver sends an XOFF signal to indicate that it cannot receive data for a while and then sends an XON 11 XON XOFF control signal to cancel the XOFF condition To use XON OFF control the device at the other end must also have this function This prerequisite of XON XOFF flow control is that XON or XOFF won t appear on the data 0 NO 1 YES Selects 4 wire or 2 wire for RS 485 12 RS 485 mode 0 4 wire 1 2 wire 13 Reserved Not used 34 This timer for monitoring during the period from when the CPU module sends a E sarral send request to a device until communication ends This value can be set in 0 01 35 Responce monitoring timer second steps Example For 1 second set this value to 100 36
99. sion error 0 None 1 Set in the order of upper and lower order byte 31 BCC designation Upper byte of BCC Lower byte of BCC 2 Set in the order of lower and upper order byte Lower byte of BCC Upper byte of BCC Sets the calculation range and BCC position Calculation range 0 Calculates the text part and enters it ahead of the end code Start code TEXT Note e see ee 1 Calculates text part and end code and inserts them behind the end code 32 Calculation range position 2 Calculates start code and text part and inserts them ahead of the end code Note _ _ii 3 Calculates start code text part and end code and inserts them behind the end code Start code TEXT Cr NNN Note In this case the BCC code type cannot be designated as binary Specify other than CRC 16 for the BCC expression 3 6 Cfrp2 No ltem 33 BCC calculation formula 3 1 Communication Protocol Included Non procedural FB _Cfrp2 Description Calculation method to check for transmission error D1 D2 AS Dn D1 D2 Dn 0 Add 1 Add and invert Inversion of D1 D2 Dn 2 EOR D1 EOR D2 EOR EOR Dn 3 CRC When CRC is selected specify BCC Code Format to 0 Binary CRC 16 X16 X 154X241 Designates the code type of BCC data 0 Binary 34 BCC code type 1 ASCII 2 EBCDIC The timer value for monitoring transmission since
100. the send data terminal S_DAT shall be set to zero 3 CRC is automatically calculated and added to the data by this FB 4 Request message specifies the number of words by data length LEN_1 response message stores it as the number of bytes of read data in the upper order byte of data length LEN_O 5 Read data is received in the order of upper order byte and lower order byte as shown below Therefore word data can be accessed in units of word as it is Upper order byte Lower order byte Upper order byte Lower order byte Recieve data R_DAT gt Upper order byte Lower order byte 3 Forcible ON OFF 1 bit code 05 Forcibly sets ON OFF a bit coil that is designated by a slave station The format of request message and response message is shown below FB terminals Request message Response message FB terminals Slave station No SIN_NO_I gt Slave station No Slave station No Slave station No SIN_NO_O Function code F_CODE_ gt Function code 05h Function code 05h gt Function code F_CODE_O Coil address upper order Coil address upper order gt Data length LEN_O Start address ADD_I gt upp upp gth ES Coil address lower order Coil address lower order FFh ON 00H OFF upper order FFh ON 00H OFF lower order Send data S_DAT gt Receive data R_DAT 00h lower order 00h lower order CRC lower order CRC lower order CRC upper o
101. the MICREX SX series CPU module to general purpose inverter FVR via the general purpose communication module or outputs the data received via the general purpose communication module to an application program 3 Transmission condition monitoring function Monitors data transmission condition and outputs error information if abnormal lt Connecting method of _Cfvrpr gt The connecting method between the general purpose communication module and FUJI FVR series general purpose inverter must be 1 N connection by RS 485 2 wire system lt FB operating conditions gt System configuration e One FB is necessary for one communication port to be used RS 485 The control of all the inverters that are connected to one RS 485 system is performed by one FB e FUJI general purpose inverter may not be connected to the RS 232C port This FB cannot be used in the mode where RS 232C RS 485 signal conversion is enabled for the general purpose communication module Memory capacity Program area 1186 steps Data memory capacity Instance memory for user FBs 116 words Standard memory 826 words Instance memory for system FBs 74 words Notes 1 Above figures for memory capacity includes the area for the main body of non procedural FB and those for sub FBs that are called from the non procedural FB 2 Above figures for standard memory and retain memory includes the memory capacity necessary for sending receiving data 3 28
102. the data send request has been 35 sent from the CPU module onto the RS 232C line until sending is completed This Send timer value value can be set in 0 01 second steps Example For 1 second set this value to 100 Maximum 327 67 seconds can be set 36 E Reserved Not used 39 Note 1 Parameter Nos 16 to 35 are valid even if changed after opening After opening if parameter Nos 16 to 35 are changed and a setup error occurs or if other parameters are changed an open error results and communication OK is turned OFF Note 2 No in the above table is element number of the array variable for communication parameter 3 7 3 1 Communication Protocol Included Non procedural FB _Cfrp2 2 Initialization procedure When the OPEN terminal of FB is turned ON communication parameters are transferred to the general purpose communication module which executes processing for initialization If initialization is impossible due to a communication Cfrp2 parameter setting error or hardware error FB outputs the corresponding error code to the OPEN Status O_STS Turned ON by the application program Turned OFF by the application program Note OPEN OPEN KN Processing for initialization N Port closing operation Communication ready OK If initialization error has occurred Note OPEN signal shall be setto Always ON during data communication OPEN Status 00 O_STS Error status 3 OP
103. the result of receiving Slave tation SIN NO INT OUT Remote slave station number is output No Response _O Function code F_CODE WORD OUT Response O First address According to the request from this FB the values of function Response ADD_O WORD OUT code start address data length and the number of bytes that are included in the response data sent from slave device E EA LEN O WORD OUT are output Response They are output in the same format as is set in the input Query Bone bytes LEN2_ O WORD OUT Response Receive data R_DAT ea eee IN_OUT Stores received data RAS information RAS Te eis IN_OUT Stores the operating status of this FB 3 56 _C_modm 3 7 MODBUS Procedure FB _C_modm lt Format of the variables that are connected to the send data terminal S_DAT gt The data that is connected to S_DAT shall be laid out as follows lt When variable name is S_DAT gt Upper order Lower order VAR S_DAT 0 Sune PS re ro eee datas Datas END_VAR Data 4 Data 3 S_DAT 255 Data512 Data 511 lt Format of the variables that are connected to the receive data terminal R_DAT gt The data that is connected to R_DAT will be laid out as follows lt When variable name is R_DAT gt Upper order Lower order VAR R_DAT 0 Data 2 Data 1 R_DAT _C_RCV_TYP11MD R_DAT 1 END_VAR Data 4 R_DAT 255 Data 512 Data 511 4 Function code 1 Coil reading
104. ting method of _CfdFVR gt The connecting method between the general purpose communication module and FUJI FVR series general purpose inverter must be 1 N connection by RS 485 2 wire system lt FB operating conditions gt System configuration e One FB is necessary for one communication port to be used RS 485 The control of all the inverters that are connected to one RS 485 system is performed by one FB e FUJI general purpose inverter may not be connected to the RS 232C port e This FB cannot be used in the mode where RS 232C RS 485 signal conversion is enabled for the general purpose communication module Memory capacity Program area 2015 steps Data memory capacity Instance memory for user FBs 278 words Standard memory 794 words Instance memory for system FBs 90 words Notes 1 Above figures for memory capacity includes the area for the main body of non procedural FB and those for sub FBs that are called from the non procedural FB 2 Above figures for standard memory and retain memory includes the memory capacity necessary for sending receiving data FGI BUS Fuji Electric General Inverter s Serial protocol 3 20 _CfdFVR 3 3 FUJI General Purpose Inverter Standard 3 3 2 Specifications for _CfdFVR 1 FB format Input terminal name OPEN Send request Send station address Send command type Send function code Send text data Receive text data Communication parameter RAS
105. tion Company names and product names described in this catalog are trademarks or registered trademarks of the corresponding companies This manual may not be reproduced in whole or part in any form without prior written approval by the manufacturer The contents of this manual including specifications are subject to change without prior notice If you find any ambiguous or incorrect descriptions in this manual please write them down along with the manual No shown on the cover and contact FUJI Safety Precautions Be sure to read the Safety Precautions thoroughly before using the module Here the safety precaution items are classified into Caution N Caution Incorrect handling of the device may result in minor injury or physical damage Even some items indicated by Caution may also result in a serious accident Both safety instruction categories provide important information Be sure to strictly observe these instructions Caution Do not use one found damaged or deformed when unpacked otherwise failure or erratic operation might be caused Do not shock the product by dropping or tipping it over otherwise it might be damaged or troubled Do not play back the CD ROM supplied with the product using an ordinary audio CD player otherwise you may get your auditory sense or audio device damaged due to a loud sound 0 Engage the CD ROM or loader connector in a correct orientation otherwise
106. tn a a 3 28 3 4 2 Specifications for Ciprian darks eta nid ie dint diet 3 29 32423 IMMA ZATION Zecca tritio iaa albo 3 32 324 4 Data sending rece NiNa a A elaine ee a a ea 3 34 324 5 RAS infor Matti tddi ee 3 36 Contents 3 5 FUJI Temperature Controller Procedure FB _CfdPYX cocooocccccccoconccnnononcncnnnnnnnnnennnnnrrnnnanannss 3 37 B IMG ONG ral EEE EEE at ee Ati ih os elt TE e da et o Rd Roca Ai 3 37 3 5 2 Specificationtor Cd PVX cole do ate ae aah ise Saeki ha 3 38 CE AEAEE a E EE E S te a a aaa das 3 40 3 5 4 DPatasendingreceNiNg roren n a ra a a lle bid n 3 42 3 5 5 RAS Information susci e dida A 3 44 3 6 FUJI Bar Code Reader Procedure FB _CfdPK cccccsseccceeeeeeeeeeeeeeeeeseeeeeeeeeesneeeeseeeeneseaes 3 45 3 01 General EEEE A EE O e E AAA AATA 3 45 3 6 2 Specifiction for CdP K ici aa aE e AA Eaa E a a Ee O ara TE ao A N aE AAE EEEa 3 46 CE AE AET o EEEE EEE EA EA EE A AET 3 48 3 6 4 Data sending Procedure iisipin ad iia 3 50 3 6 5 Data receiVingiproced re cunas cin il iicibe 3 51 3 6 6 RAS information cia A hassle eles Rares en Rc eda ee eI es 3 52 3 7 MODBUS Procedure FB _C_ MOM eecceceseeceeeeeneeeeeeeeennneceeseeeenseaeeseeeeeeseaaeseeeeeseaaeseeeeneeaes 3 53 STERRE TE e 4s hazeoclete Bett threats eats a er lea sbAth ihe to tl sheen tite a os eit 3 53 3 7 2 Specification for C A 3 54 SE A A O 3 61 3 7 4 Data Communication uta A A 3 63 IL RAS IO MAMI A as ad dada 3 65 Section 1
107. up one data 5 Data bit 0 7 bits 1 8 bits This is a bit which is added to data for the purpose of error detection Designate the 6 Parity bit proper one to match the setting of the device at the other end 0 None 1 Odd 2 Even This bit indicates the end of data Designate the proper one to match the setting of 7 Stop bit the device at the other end 0 1 bit 2 2 bits When signal line control is not performed there is no difference in functions between DCE and DTE modes The RS 232C of the general purpose communication module is of DTE specification however it can be used as a DCE specification interface when signal lines are converted as follows 8 DCE designation No 7 pin RS to CS No 8 pin CS to RS No 6 pin DR to ER No 4 pin ER to DR 0 DTE 1 DCE 2 Modem DTE 9 ER DR signal control 0 None DTE mode 0 Off RS always ON Sending unconditional 10 Signal flow 1 On RS ON while sending Sending when CS is ON control DCE mode 2 Off CS always ON Sending unconditional 1 On CS ON when RS is ON Sending when ER is ON Because communication between sender and receiver is performed asynchronously flow control may be necessary The receiver sends an XOFF signal to indicate that it cannot receive data for a while and then sends an XON signal to cancel the XOFF 11 BONESO EP control condition To use XON OFF control the device at the other end must also have this function 0 NO 1 YES Selects 4 wire or 2 wire for RS 485 Ie
108. when ASCII code is used 1 8 bits when EBCDIC code is used This is a bit which is added to data for the purpose of error detection Designate the 6 Parity bit proper one to match the setting of the device at the other end 0 None 1 Odd 2 Even This bit indicates the end of data Designate the proper one to match the setting of the 7 Stop bit device at the other end 0 1 bit 2 2 bits 8 Reserved Not used 15 The timer for monitoring during the period from when the CPU module sends a send e request to a device until communication ends This value can be set in 0 01 second 16 Response monitoring timer steps Example For 1 second set this value to 100 17 Retry count In case of communication error this designates how many times to retry communication 18 Reserved Not used 39 Note No in the above table is element number of the array variable for communication parameter 3 15 3 2 FUJI General Purpose Inverter Procedure _CfdFRN FB _CfdFRN 2 Initialization procedure When the OPEN terminal of FB is turned ON communication parameters are transferred to the general purpose communication module which executes initialization If initialization is impossible due to communication parameter setting error or hardware error FB outputs the corresponding error code to O_STS OPEN status Turned ON by the application program Turned OFF by the application program Note OPEN OPEN Processing for initia
109. y turns ON OFF Performs the processing for ending communication Communication ready turns OFF Starts to send data When sending is completed this needs to Send request S REQ BOOL be turned OFF by the application program Send station S_STN WORD IN Stores the address of the send station address F commen S_KND WORD IN Stores the send command type Send function code S_FNC E IN_OUT Stores the send function code Send text data S_TXT 10_STXT IN_OUT Stores the send text data _TYP62 Communication _C_PAR a as parameter PARA _TYP62 IN_OUT Stores the initialization parameters Communication OK BOOL OUT Turns ON when initialization has ended normally to indicate that ready the system is ready for sending receiving data Open status O_ STS WORD OUT 2 digit hexadecimal code to indicate the result of initialization Receive end R_END BOOL OUT Turns ON when receive ends Receive error R_ERR BOOL OUT Turns ON if a receive error has occurred Receive status R_STS WORD OUT Receive result code Receive station R_STN WORD OUT Stores the address of the receive station address oe command R_KND WORD OUT Stores the receive command type Receive tunction R_FNC 2C RENG IN_OUT Stores the receive function code code _TYP62 Receive error code R_ERCD WORD OUT Stores the receive error code pHMBSROvIses Ie R_LEN INT OUT Stores the number of receive data bytes data bytes Receive text data R_TXT CEES IN_OUT Stores receive text data _TYP62
Download Pdf Manuals
Related Search
Related Contents
Funkey 37 Keyboard - Musikhaus Kirstein Xpress User Guide Biostar M7VKQ Owner's Manual NEUTRAPIN - Megalab produits chimiques Montréal Laval Québec AMBITI WC - Lulukabaraka CONTRÔLE EASYMINI Redox AK Primer - Mastic Pinturas Copyright © All rights reserved.
Failed to retrieve file