Home
Appendix 4 Additional Explanation for NP1L-RS5
Contents
1. Add C free to Favorites Help Local Variables Worksheets LADDERV kd Properties Instance Height feo Advanced gt gt Set the necessary items in the dialog box 5 6 ed Parameters 5 5 Communication Parameters Setting etting Parameter values are assigned to the variables INT type array data which are connected to the communication parameter terminal PARA of non procedural FB In this paragraph how to do this using ST language is described lt Sample variable declaration gt Because it is used by the POU on which an expansion FB is pasted communication parameter variable PARA must be global Therefore it is necessary to make a variable declaration in 2 locations as below Local variable declaration VAR EXTERNAL Data type C PAR TYP11 is PARA C PAR TYP11 automatically declared when non procedural PSET BOOL FB is pasted END VAR II Setting operation flag Global variable declaration VAR GLOBAL PARA C PAR TYP11 PSET BOOL TRUE SDAT C SND TYP11 d SSET BOOL TRUE END VAR FT Used by the POU for writing send data Sample setting program This sample program assigns necessary communication parameter values to INT type array data PARA When no setting changes are required setting is made during the first scan It is not necessary for each scan IF PSET THEN PARA O INT S
2. When connected to the CPU of System 1 designate from the programming loader the CPU which is in the configuration When connected to the CPU of System 2 designate from the programming loader the RS 485 station number of RS1 on System 2 3 7 3 2 System Configurations Modem connecting 3 2 7 Loader network configuration using modems 1 This configuration enables remote programming using the public circuit by connecting a modem to the RS 232C port RS1 or RS2 JE o O 2 7 TA When the NP1L RS1 is used and the mode GE selection switch is set to 6 A or C Power CPU general purpose devices can be supply L connected to the RS 485 port RS 232C RS 485 Straight cable External device External device External device A B C Modern 4m Modem setup is made using WINDOWS Hyper Terminal and other application software with the following communication mode Stop bit 1 Data length 8 bits Parity None T Baud rate 9600 19200 38400 76800 115200 set by the mode selection switch of this module Dy Issue AT commands to perform the following Set with Restore the setup of the current value area to Factory Setup Do not perform the flow control e Set the number of rings until automatic receive of the modem to 3 s Do not return the response code e Wri
3. To change the target folder click the Browse button The following Choose Directory dialog box appears Specify a folder and then click the OK button Control returns to the Choose Destination Location dialog box Choose Directory b x Please choose the directory for installation Path e d300win Directories i ur D300win 23 LIBRARIES Cancel EI Pagelayout E ditor 3 Pagelayouts 3 Plc sl Drives e WIN ME E PG D Network 4 When you click the Next gt button in the Choose Destination Location dialog box the installation processing is started Copying files libraries _cfr64 poe _cfr64 src stl 17 5 3 5 2 Installation Procedure of Standard Extended FB Installation 5 When installation is completed the following Setup Complete dialog box appears Click the OK button to complete the installation procedure Setup Complete set up completed When you check here and then click the OK button the product information of the standard extended FB appears please click finish set up program finishes Example of release note gt amp j README Notepad E 10 x File Edit Search Help STANDARD EXPANSION FB RELEASE NOTE U2 6 1 6E Thank you for useing this FB This is an update description U2 0 1 0E _Cfrp2 library U2 0 8 1 added _Cfurpr library U2 0 0 2 added 4R 4 amp 4 amp 4
4. R STS RSTS ALEN P Received data is processed STN NO using the output of R END i Y and R ERR S DAT ee REND RERR HIDAT RDAT l gt to the processing of received data ii ET SE 5 10 Section 6 Wiring Page 6 1 Precautions usoniene AA EE AES A 6 1 6 2 Wiring Method seernnnnnnvvvnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennr 6 2 6 2 1 When RS 485 is used 2 wire rnnnnnnnnrnnnnvnnnnnnnnvonnnnnnnrensvnnnnvnnrrrennrnnnnenerrnernvnernsenrnnnnenensene 6 2 6 2 2 When RS 485 is used 4 wire system 6 2 6 2 3 When RS 232C is used rervvrrnrrrrrrnrnrnrnnnnnnnvnnrrrrrrrrrrneveneveveveneserssssnsnsnsnsrrnrsrnrsrnrrrrrrrserennseneneer 6 3 Section 6 Wiring 6 1 Precautions 1 Before removing the connector remove the fixing screws 2 Communications cables must be isolated from high voltage cables and power cables as far as possible Communication cables must not be run parallel with those cables 3 These cables should be installed as shown in the following figure Shielding cables should be used Communication cables 300mm or more 1 RS 232C RS 485 300mm or more communication cables 2 Input output circuit Power supply circuit for PLC 3 Control circuit 4 Power circuit 300mm or more Metal plate Grounding Grounding resistance of 100 Q or less 200mm or more Communication cables Lower power cables Control cab
5. RS 485 mode Reserved Reserved Reserved PARA 16 PARA 17 PARA 18 PARA 19 PARA 20 PARA 21 PARA 22 PARA 23 PARA 24 PARA 25 PARA 26 PARA 27 PARA 28 PARA 29 PARA 30 PARA 31 PARA 32 PARA 33 PARA 34 PARA 35 PARA 36 PARA 37 PARA 38 PARA 39 Code conversion Frame detection Number of receive data bytes Number of start code bytes Start code 1 Start code 2 Start code 3 Start code 4 Start code 5 Number of end code bytes End code 1 End code 2 End code 3 End code 4 End code 5 BCC designation Calculation range position Formula Code type Send timer value Reserved Reserved Reserved Reserved 4 6 After FBopens the parameter from PARA 16 to PARA 35 is effective 4 3 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 4 3 Initialization No jitem Description General purpose Sets the station number of the general purpose communication module on the SX 0 communication module bus station No
6. Data access image gt Create request commands by means of an application program in the personal computer and then send them to the CPU module via the general purpose communication module The CPU which receives request commands returns response commands The data communication program is not required as an application program in the CPU module MICREX SX Set the MODE switch of the general communication module to 1 General purpose communication module Personal computer HEEN ETNE 9 8 Ex Request commands Response commands CPU module App 2 1 LO Les RST ES LET EET EEE ETE B Appendix 2 2 Send Data Format of Commands The send data of request and response commands consist of the transmission header loader command and checksum code The format of a request command is the same as that of response command All data are transmitted as HEX code Not ASCII code START code 5Ah fixed Transmission header 3 3 bvtes Data counter L Number of bytes in command plus one checksum code Data counter H g M J Processing status Connection mode Connection ID L Command consisting of ConnectionID H
7. 3 E eg Q Transmission speed is 38400 bps default for ol both RS 232C and RS 485 Changing transmission speed is done through the user Power program expansion FB supply CPU RS 485 External device External device External device B C D RS 232C External device A personal computer etc 3 5 3 2 System Configurations lt 2 Communication between external device A and the CPU module gt RS1 meer 3 z S Power supply CPU External device External device External device B C D RS 232C External device A personal computer etc Note Note A user program for controlling external device A is necessarv lt 3 Communication between external device B C or D and the CPU module RS1 O o G Note When the station number designated in the 5 send data is the same as the setting of the Power CPU fy RS 485 station number setting switch of RS1 supply FB in the CPU module receives the data RS 485 External device External device External device B C D V E ONES Note External devices A B and C must be the same in type as well
8. command header 16 bytes 2 B and data 11h fixed 00h fixed 00h fixed 00h fixed 00h fixed 00h fixed Command Mode 00h fixed 01h fixed Number of bytes in data L Number of bytes in data H Up to 492 bytes Data Checksum code 1 byte BCC Sc LA lt Detailed send data gt 1 START code Starting code of send data request command and response command Fixed to 5Ah 2 Data counter Indicates the number of bytes in command plus one checksum code BCC 3 Processing status Indicates the result of execution of each processing requested by commands Checked by response commands Request commands are issued with the processing status fixed to FFh App 2 2 Appendix 2 2 Send Data Format of Commands lt Status list gt Code Status Description 00h Normal end Command processing is normally completed 10h CPU error The CPU failed and command cannot be executed 11h CPU is operating Cannot execute command because the CPU is operating 12h Command execution not possible Cannot execute command because of CPU key switch condition 20h Undefined command The CPU received an undefined command or mode 22h Parameter error The command header contains a wrong specification 23h Transmission interlocked Transmission
9. lt Data type list gt FB Name Data type of RAS _C_free _C_work_TYPE11 Cfr252 C work TYPE16 Cfr128 C work TYPE14 Cfr64 C work TYPE13 Cfr32 C work TYPE15 _Cfrpr C work TYPE11PR RAS information area INT array RAS RASI 0 RAS RASI 1 RAS RASI 2 RAS RASI 3 RAS RASI 4 RAS RASI 5 RAS RASI 6 RAS RAS 7 RAS RASI 8 RAS RASI 9 RAS RAS 10 RAS RAS 11 RAS RAS 12 RAS RAS 13 RAS RAS 14 RAS RAS 15 RAS RAS 16 RAS RAS 17 RAS RAS 18 RAS RAS 19 Port status Refer to next page Status of general purpose T at Refer to next page communication module e OXE page 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 4 15 4 6 RAS Information 4 6 RAS Information e Port status Control data Error data 1514131211109 876 543210 RS signal CS signal DR signal Have a meaning when RS 232C port is used ER signal Reserved when RS 485 port is used CD signal CI signal Initialization end Reserved Send error Receive error Framing error Overrun Paritv error Reserved Reserved Reserved e Status of general purpose com
10. 4 4 4 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 neu FB CFdFRN library comment change CFdFUR library comment change CFdPK library comment change CFdPYX library bug fixed for MAX word length library no change library no change l lqlq0 qlq0 Jq This is the original 5 4 Library registration 5 3 Registration in Library Individual communication FBs included in the standard expansion FB package can be used when registered in a library under a created project 1 Left click the Libraries a subtree in the Project tree and then on the Insert button Then the Include library dialog box will appear on the screen include bra E GLEN Project Look in I LIBRARIES es e C Libraries C COM CI CFR128 CI MSPOS W _CFDPYX Data Types C FREE C3 cFR252 LJ C COM IB CFR128 y Logical POUs C FRPR C3 CcFR32 8 C FREE iB CFR252 e 71 LADDER INSER
11. Green Turns on when data is being sent from the RS 232C port NP1L RS4 RS485 ALM Red Turns on when the communication data via RS 485 is abnormal ONL TS1 RS485 RXD Green Turns on when the RS 485 port is receiving data ERR Ge ser TS2 RS485 TXD Green Turns on when data is being sent from the RS 485 port Blinks when internal RAM error is detected in self diagnosis mode 7 TS1 Green Blinks when RS 232C turning back test is abnormal in self diagnosis mode 8 RST CTS turning back error res Green Blinks when RS 232C turning back test is abnormal in self diagnosis mode 8 DTR DSR turning back error Example of LED status by module status ONL ERR ALM Fatal fault of module OFF JON Nonfatal fault of module ON ON Data error ON OFF JON 2 4 Functions 2 3 Names and Functions 2 Mode selection switch This switch is used to select a connectable device the signal conversion and the self diagnosis for the RS 232C port and the RS 485 port l Mode UR RS 232C lt gt RS 485 Remarks MODE No 3 lt gt RS RS 232C port RS 485 port Signal conversion 0 General purpose device General purpose device Not available Programming loader General purpose device Not available 2 General purpose device Programming loader Not available Applies to 3 Programming loader Programming loader Not available V2535 or later 4 General purpose device General purpose device Available 5 Not used Modem l
12. I O O O RS 485 1 n n Max 31 External device External device External device As an external device it is possible to connect a loader software package for in a personal computer lt Overview of SX bus connection gt Total length of SX bus Max 25m General purpose communication module Data transmission between CPU and an external device is performed via the SX bus External device 1 1 1 2 Selections and Programs for the Communication The following preparations are necessary for RS1 2 4 to communicate between a CPU module of MICREX SX series and external devices MICREX SX series pan RS1 2 4 O o O Power supply CPU I O I O VO UO lt CPU modules side gt lt RS1 2 4 side gt Initializing parameters for a RS 232C port and a Selection switch of the module is used RS 485 port KAN RS 485 station No selection switch 0 to F Transmission speed data length parity bit stop If RS 485 port is not used the selection is not bits etc necessary Application software for the communication Mode selection switch Device selection of RS 232C port and RS 485 port Data conversion FA packages are optionally provided for each external device RS 485 terminating resistor O
13. Note External devices A B and C must be the same in type as well as communication protocol For example this connection is not available when A and B are temperature controllers and C is a bar code reader With NP1L RS1 a D300win personal computer loader can be connected to an RS 232C port which is not in use In this case the mode selection switch needs to be set to 1 Mode selection switch 1 gt RS 232C port Loader RS 485 port General purpose device Signal conversion None RS 232C External device External device External device A B C For the connection refer to 3 3 1 When connecting to RS 232C port 3 3 3 2 System Configurations 1 1 1 N connection 3 2 3 Connecting independently to RS 232C and RS 485 ports This configuration connects to external devices using the RS 232C port and RS 485 port In this case communication through these ports is performed independentiv O o Power supply CPU RS1 e MEE A Mode selection switch 0 gt RS 232C port General purpose device RS 485 port General purpose device as ce Signal conversion None RS 485 External device External device Externa
14. 4 2 3 FB terminals lt Terminal list gt 4 2 Specifications for Non procedural FB Terminal name Terminal Data type I O Description name OPEN BOOL IN ON Sends the communication parameters to the general purpose communication module to initialize o communication When communication becomes possible pen LU 1 1 LU communication ready turns ON OFF Performs the processing for ending communication Communication ready turns OFF S REQ BOOL IN Starts to send data When sending has ended this needs to be Send request er turned OFF by the application program Send data S LEN INT IN Designates the length of send data by the number of bytes length S DAT Array of WORD JIN OUT Stores send data Send data Note Communication PARA Array of INT IN Stores the initialization parameters parameter Note 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 JBOOL OUT Turns ON when receiving has completed Receive error R ERR JBOOL OUT Turns ON if a receive error has occurred Recei
15. lights up while TS1 blinks If CH2 is abnormal CH2 ALM lights up while TS1 blinks 3 RS 232C data check The general purpose communication modules sends 16 bytes of data once and checks the looped back data received When both CH1 and CH2 are normal CH1 ALM lights up proceeds to step 4 IF CH1 and or CH2 is abnormal CH1 ALM blinks at 0 5 second intervals after 10 seconds proceeds to step 4 If CH1 is abnormal ERR lights up while CH1 ALM blinks If CH2 is abnormal CH2 ALM lights up while CH1 ALM blinks 4 Preservation of the result of the check After 10 seconds of displaying the results from 3 above the module returns to step 1 Here if the setting of the mode selection switch has been changed Self diagnosis Mode 2 is ended to enter the designated mode Appendix 3 5 Initialization Parameters Related page p4 7 No Wem Specification Designates an interface port on general purpose communication module 1 Port No 0 CH1 1 CH2 12 RS 485 mode Not used in case of NP1L RS3 App 3 3 Appendix 3 Additional explanation for NP1L RS3 Appendix 3 6 Detailed RAS Related page p7 3 No 4 and No 5 information newly added to detailed RAS information To NPIL RS3 module Currently NP1L RS1 RS2 RS4 doesn t support this information 0 AN Oa 2 Go NN to 10 11 12 13 Status of general purpose communication module Status of CH1 Status of CH
16. E a 5 1 Communication Program rsrrnnnnnvnnnnnvnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnr 54 5 2 Installation Procedure of Standard Extended FB sssseeennznnnnnnznnnnnzzznnnnzznnnnnzznenanzzmnnnzzzz 5 2 5 3 Registration in Library sencesa 5 5 5 4 Pasting Non procedural FB sssrennnnnnnnnvnnnnnnnnnvnnnnnnnnnnnnennnnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennn 5 6 5 5 Communication Parameters Setting rrrrsnvrnnnnnvnnnnnvvnnnnnnvnnnnvvennnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 5 7 5 6 Writing the Send H E 5 8 5 7 Connecting Variables and Commands to FB Terminals eese 5 9 5 7 1 Connecting variable to PARA terminal nn enne nre nnne enne 5 9 5 7 2 Operation for starting ER 5 9 5 7 3 Operation for sending data 5 10 5 7 4 Dat receiving Operation D a aaae e T a GE TEREE EEN E 5 10 Section le e E a 6 1 On 6 1 6 2 WIRING Method ME 6 2 6 2 1 When RS 485 is used 2 wire rnrnnnnrnnonvnnenrnnnnvnnenvnnnnrnnenrnnrnvenerennennnnervnnnnnnsesnnnenvnsevenennreersensnsenenensene 6 2 6 2 2 When RS 485 is used 4 wire System sssssssssssseeeeeenneeemeee nere neeen rennen nnne nennen nens 6 2 6 2 3 When RS 232C is USEC nennen nenne enne entretiens tnter en nn ette nnns etse nennen 6 3 Section 7 RAS EE TM 7 1 RAS Information of General Purpose Communication Module ee
17. as communication protocol For example this connection is not available when A and B are temperature controllers and C is a bar code reader RS 232C External device A personal computer etc 3 6 1 1 1 N connection 1 1 1 N connection 3 2 System Configurations 3 2 5 Connecting a personal computer loader to the RS 232C port and RS 485 port This configuration connects a D300win personal computer loader to each of RS 232C and RS 485 ports RS1 Mode selection switch 3 gt RS 232C port Loader RS 485 port Loader Signal conversion None For the connection refer to 3 3 Loader Connecting Cable 3 2 6 Loader network configuration using RS 485 This configuration connects a D300win personal computer loader to the RS 232C port of RS1 on System 1 A D300win can communicate with both CPUs of System 1 and System 2 Mode selection switch of System 1 5 gt lt Mode selection switch of System 2 2 gt RS 232C port Loader RS 232C port RS 485 port General device loader RS 485 port Loader Signal conversion Ves Signal conversion Normal RS1 RS1
18. as shown below Detail RAS EN xi Display Module sx bus station number 3 v Current RAS RAS group Module intensive status information SX bus transmission information 3 File save Type information pim File delete 0000 1000 3000 0000 0000 0000 0000 0000 0000 0008 0000 0000 0000 0000 0000 0000 0000 0000 0010 0000 0000 0000 0000 0000 0000 0000 0000 0018 0000 0000 0000 0000 0000 0000 0000 0000 No 1 No 2 No 7 0000 1000 9000 0000 0000 0000 0000 0000 0000 No 15 0008 1000 0000 0000 0000 0000 0000 0000 0000 No 23 0010 1000 0000 0000 0000 0000 0000 0000 0000 No 31 0018 1000 0000 0000 0000 0000 0000 0000 0000 One word 16 bits represents each detailed RAS item The detailed RAS corresponding to each number is shown below lt Detailed RAS information gt Status of general purpose 14 15 Not used communication module Status of RS 232C port Status of Tie 65 port 18 Number of overrun error occurrences RS 485 Not used 19 Send buffer overflow 16 Number of parity error occurrences 17 Number of framing error occurrences Niet veeg 20 Receive buffer overflow Number of parity error occurrences 21 Loopback buffer overflow 22 23 Not used Number of framing error occurrences Number of overrun error occurrences RS 232C Number of SX bus send error Send buffe
19. connecting to RS 232C port sess esses eene entere nnne nnne treni tenni nenne tenente trennen 3 9 3 3 2 When connecting to RS 485 port EE 3 9 3 4 Selt diagmosis i sis ii 3 10 3 4 1 Self diagnosis Model EE 3 10 3 4 2 Self diagnosis mode Zisis Eee i Cer 3 11 Section 4 Software Interface axrannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnernr 41 4 1 TC TE 4 1 4 2 Specifications for Non procedural FB rrnsrnrnnnvvrnnnnnvnnnnnvnnnnnnnnnnnnnnnnnnnvnennnnnnnnnnnnnnnnnnnnnnnnnnnnennnennnnr 4 3 4 2 1 Communication specification sesssssssssseseeeeeeeeeeneeeneee nennen neret n nennt nret ren nnn nnne nns 4 3 et EE 4 4 4 2 3 FB terminals errrrrrnnnnnrrrvrnnnrrnnnnnnnnerenrrnrnnnnnnnesernnvrnnnnnnnsnerennnnrnnnnsnnssennnnrrnnnnnnsserenennnvrnnrnnnnnnsnsseseennnnnnnnnn 4 5 Contents Page 43 Se UE e LE 4 7 4 3 1 Initialization parameters preisen e i i e 4 7 4 3 2 Initialization ere E 4 10 4 3 3 OPEN cud EE 4 10 4 4 Data Sending BE 4 11 4 4 1 Data sending procedure sisirin aiei api a aTa 4 11 4 4 2 Send Status list dnon a ne eria g eselet a g a 4 12 LEMPLiCE CICJnec E 4 13 4 5 1 Data receiving procedure sessista aaaea aeaaaee ada EEEE EEE aE EEE EE 4 13 4 5 2 Receiving Status EE 4 14 4 6 RAS Information sis e G bnseeeadkknvsnende 4 15 section 5 Programming
20. data signal line 4 SDA gt Send data signal line 5 SG Signal ground common return 6 FG Frame ground 7 Ges 8 RDB Receive data signal line B 9 RDA Receive data signal line A Note For wiring refer to 6 2 Wiring 2 6 Dimensions 2 4 Dimensions Dimensions are same for NP1L RS1 NP1L RS2 and NP1L RS4 90 sis 37 T 90 N Note jet de BS elo o Note Front formation depends on each type 2 7 Section 3 System Configuration Page 3 1 Mounting Restrictions rnnrnsvennnnnnnnvnnnnnnnnvnnnnnnnnnvennnnnnnvnennnnnnnvennnnnnnnvennnnnnnvnennnnnnnvennennn 3 1 s 1 1 MOUNTING position ii m 3 1 3 1 2 Number of mountable modules nanna 3 1 3 2 System Configurations sis i ien i ierra tee ankenemnd cauce subsea 3 2 3 2 1 1 1 Connection using RS 232C port nanna 3 2 3 2 2 1 N Connection using RS 485 port N max 31 modules 3 3 3 2 3 Connecting independently to RS 232C and RS 485 ports LL 3 4 3 2 4 Connection using RS 232C and RS 485 ports OO 3 5 3 2 5 Connecting a personal computer loader to the RS 232C port and RS 485 port 3 7 3 2 6 Loader network configuration using RS 485 000 eee nn nnnnn mnn nn rna nn 3 7 3 2 7 Loader network configuration using modems OO 3 8 3 3 Loader Connecting Cable rrnnnvnnnnnvnnnnnnvnnnnvnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 3 9 3 3 1 When connecting to RS
21. of commands For details on commands and modes refer to Appendix 2 3 Loader Command Details 6 Number of bytes in data Indicates the number of bytes in data The total number of bytes in the request command during data write operation and the response command during data read operation must not exceed 492 bytes 7 BCC block check character Checksum code for send data check The BCC consisting of one byte is obtained by the following expression BCC 00h I Data counter Connection status Data App 2 3 Appendix 2 3 Loader Command Details Appendix 2 3 1 Read data 1 Function This command reads the specified number of words from the specified address of the specified data memory If the requested number of words exceeds the range of the specified memory up to the end of the specified memory is read 2 Command mode code Command 00h Mode 00h 3 Data format of request command response command Data format of request command Data format of response command Memory type Memory type Memory address L Memory address L Memory address M Memory address M Memory address H Memory address H Number of words of read data L Number of words of read data L Number of words of read data H Number of words of read data H Read data 4 Arrangement of read data The read data is arranged as shown below MICREX SX module Person
22. performing a part of the communication processing with the module For FUJI heater _CfdPYX Note 2 For FUJI heater PYX series and PYH series For FUJI bar code CfdPK Note 2 For FUJI bar code reader PK2 series Note 1 Refer to Section 4 in this manual Note 2 For Cfrp2 CfdFRN CfdFVR _Cfvrpr CfdPYX and CfdPK refer to MICREX SX USER S MANUAL STANDARD EXTENDED FB FEH255 1 3 1 4 Product Versions and Supported Functions For the general purpose communication module supported functions and available FBs depend on the product version 1 4 1 Supported functions Note 2 supported X Not supported Format and version Modem based loader function 1 Modem based loader function 2 Earlier than NP1L RS1 V 1031 x x Earlier than NP1L RS2 V 1031 X x Earlier than NP1L RS4 V 1031 Note 1 Note 1 NP1L RS1 V 1031 or later o x NP1L RS2 V 1031 or later o x NP1L RS4 V 1031 or later Note 1 Note 1 NP1L RS1 V 2535 or later o o NP1L RS2 V 2535 or later o o NP1L RS4 V 2535 or later Note 1 Note 1 Note 1 The modem based loader functions are functions which realize remote operation and programming bv connecting a modem to the RS 232C port and using the public circuit These functions cannot be used with the NP1L RS4 which is provided only with the RS 485 port Note 2 With modem based function 1 the transmission rate between this module and a commercial modem is fixed to 1920
23. result in death or serious injury N Caution Incorrect handling of the device mav result in minor injurv or phvsical damage Even some items indicated bv Caution mav also result in a serious accident Both safety instruction categories provide important information Be sure to strictly observe these instructions D Warning Never touch any part of charged circuits as terminals and exposed metal portion while the power is turned ON It may result in an electric shock to theoperator Turn OFF the power before mounting dismounting wiring maintaining or checking otherwise electric shock erratic operation or troubles might occur 0 Place the emergency stop circuit interlock circuit or the like for safety outside the PLC A failure of PLC might break or cause problems to the machine 9 Do not connect in reverse polarity charge except rechargeable ones disassemble heat throw in fire or short circuit the batteries otherwise they might burst or take fire If batteries have any deformation spilled fluids or other abnormality do not use them The use of such batteries might cause explosion or firing Do not open the FG terminal with the LG FG short circuited It must be grounded otherwise it might cause electric shock o o Safety Precautions N Caution o Do not use one found damaged or deformed when unpacked otherwise failure or erratic operation might be caused Do not shock the product b
24. s service conditions Shock Acceleration peak 147m s Noise immunity 1 5kV 1kV clamping to transmission line rise time ins pulse width 1us noise simulator RAE Electrostatic Contact discharge 6kV ti discharge Aerial discharge 8kV conditions Radioelectromagn 4 orn 80MHz to 1000MHz etic field Construction Panel mounted type Cooling Air cooling Isolation method Photocoupler Dielectric strength 445V AC 1 minute between I O connector pins and ground Insulation resistance 10MQ or more with 500V DC megger between I O connector pins and ground NP1L RS1 24V DC 110mA or less Internal current consumption NP1L RS2 24V DC 90mA or less NP1L RS4 24V DC 80mA or less NP1L RS1 Approx 170g Mass NP1L RS2 Approx 160g NP1L RS4 Approx 160g Dimensions Described in 2 4 2 1 2 2 Communication Specifications Communication specifications Item Specification RS 232C RS 485 Type NP1L RS1 NP1L RS2 NP1L RS4 m NP1L RS1 1 channel 1 channel S Port NP1L RS2 1 channel NP1L RS4 1 channel S Communication method half duplex communication Note 1 8 Synchronization Start stop synchronous transmission method 1200 2400 4800 9600 19200 38400 57600 bps Note 2 Tronsmisst n spaed for RS1 max 57600bps or less in total of 2 channels Note 3 Transmission distance 15m or less 1km or less transmission speed 19 2k
25. type terminating resistor is available It is used to connect RS 485 cable 20 poles M3 screw Signal name Signal direction RS5 lt External device Description I e SDA Send data signal line Unused O SDB Em Send data signal line ie RDA Receive data signal line io RDB Receive data signal line ve el amp SG Signal ground Common return jii Gei DS FG Frame ground FG o Ie SDA o ie SDB o GC CHa RDA 18 RDB o LE SG 9 Ei FG o GC For wiring please refer 6 2 Wiring Method However in case of 2 wire short SDA and RDA SDB and RDB and connect to other device In case of RS5 no need to connect zener diode as it is already included in module App 4 3 Appendix 4 Additional Explanation for NP1L RS5 Appendix 4 4 Self diagnosis Related page p3 10 to p3 11 Appendix 4 4 1 Self diagnosis mode 1 Function of self diagnosis is same as NP1L RS1 2 4 However LED name is different 1 LED lighting check Of the external LEDs of the module the lighting condition of those operated by general purpose communication module are checked When the mode selection switch is set to 7 TS17 TS2 CH2 ALM and CH1 ALM LEDs light up in this ord
26. 0 TC7 DLE SP 0 P l p 0001 1 DC1 1 A Q a q 0010 2 DC2 i 2 B R b r 0011 3 DC3 3 e S c s 0100 4 DC4 4 D T d t 0101 5 TC8 NAK 5 E U e u 0110 6 TC9 SYN 18 6 F V f v 0111 7 TC10 ETB 7 G W g w 1000 8 CAN 8 H X h x 1001 EM 9 Y i y 1010 SUB J Z j z 1011 ESC K k 1100 IS4 FS lt L Y 1101 IS3 GS M m 1110 IS2 RS gt N f n 1111 IS1 US 2 O 8 o DEL App 1 1 Appendix 2 Data Access by Command Page Appendix 2 1 Command Overview rrnssvrnnnnvnnnnnvnnnnnnnnnnnvnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn App 2 1 Appendix 2 2 Send Data Format of Commands ssssreseennnnzznnnnnznnnanzznnanznmnnnzz App 2 2 Appendix 2 3 Loader Command Details eese App 2 4 Appendix 2 3 1 Read data dsos iias nsina rea dtr ctae eer eo euren edge dee App 2 4 Appendix 2 3 2 E EE App 2 6 Appendix 2 3 3 Batch Start of Ce App 2 7 Appendix 2 3 4 Batch Initiazation Start of CPUS Lena n anna App 2 7 Appendix 2 3 5 Batch Stop of CPUS nennen nnne nnns App 2 7 Appendix 2 3 6 Batch Reset of CPUS sse nnne App 2 8 Appendix 2 3 7 Individual Start of CDU App 2 8 Appendix 2 3 8 Individual Initialization Start of CDU App 2 8 Appendix 2 3 9 Individual Stop of CRU App 2 9 Appendix 2 3 10 Individual Reset of CDU App 2 9 Appendix 2 Data Access by Command Appendix 2 1 Command Overview When accessing data inside the MICREX SX series CPU module from a personal computer or other intelli
27. 0 bps With modem based function 2 the transmission rate can be selected from 9600 19200 and 38400 bps 1 4 2 Available standard extended FB Applicable version of general FB Name FB Overview purpose communication module 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 All versions Cfrc4 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 Cfror Send 512 words Receive 512 words P The program capacity is reduced by performing a part of the communication V 2535 or later processing with the module Non procedure FB which built into communication protocol Send 512 words Receive 512 words _CfRP2 The program capacity is reduced by performing a part of the communication l of ee V 2536 or later 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 All versions Note 1 CfdFVR For FUJI Inverter FVR C11 series FGI BUS All versions Note 1 For FUJI Inverter FVR C11 series FGI BUS _Cfvrpr The program capacity is reduced by performing a part of the communication V 2536 or later Note 1 processing with the module _CfdPYX For FUJI heater PYX se
28. 00 Bar code reader _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 Note General purpose communication FB in the table below is included in D300win Type FB name FB Overview _C_free Note 1 Non procedural FB Send 512 words Receive 512 words _Cfr252 Note 1 Non procedural FB Send 252 words Receive 252 words _Cfr128 Note 1 Non procedural FB Send 128 words Receive 128 words Cfr64 Note 1 Non procedural FB Send 64 words Receive 64 words _Cfr32 Note 1 Non procedural FB Send 32 words Receive 32 words Non procedure FB which built into communication protocol Non procedural FB Cfrpr Note 1 Send 512 words Receive 512 words l IN 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 words _Cfrp2 Note 2 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 Note 2 For FUJI Inverter FRENIC series _CfdFVR Note 2 For FUJI Inverter FVR C11 series FGI BUS For FUJI Inverter For FUJI Inverter FVR C11 series FGI BUS _Cfvrpr Note 2 The program capacity is reduced by
29. 2 Not used Self diagnostic 1 Self diagnostic 2 Not used Not used Number of parity error occurrences Number of framing error occurrences Number of overrun error occurrences Send buffer overflow Receive buffer overflow Loopback buffer overflow No 4 Self diagnostic 1 Bit 0 External RAM abnormal Bit 1 to 15 Not used No 5 Self diagnostic 2 RS 232C CH1 CTS ON abnormal CH1 CTS OFF abnormal CH1 DSR ON abnormal CH1 DSR OFF abnormal CH2 CTS ON abnormal CH2 CTS OFF abnormal CH2 DSR ON abnormal CH2 DSR OFF abnormal Not used Not used Not used Not used CH1 Send Receive data abnormal SD RD Send data error detected CH1 Loop back abnormal SD RD Communication error detected CH2 Send Receive data abnormal SD RD Send data error detected CH2 Loop back abnormal SD RD Communication error detected App 3 4 Appendix 4 Additional Explanation for NP1L RS5 Page Appendix 4 1 Applicable Version for NP1L RS5 eee App 4 1 Appendix 4 2 General Specifications sees ennt App 4 1 Appendix 4 3 Names and Functions esses eene nnne nennen App 4 1 Appendix 4 3 1 Names p ee App 4 1 Appendix 4 3 2 a Tore Te e se App 4 2 Appendix 4 4 Self diagnosis rnnnvvnnnnnvnnnnnvnnnnnvnnnnnnnnnnnnnn
30. 22 words 1608 words 0 words 82 words Note 1 The above memory capacity includes that of non procedural FB itself as well as of the sub FB which is called from non procedural FB Note 2 Standard memory or Retain memory includes the memory capacity necessary for data transmissin 4 2 4 2 1 Communication specification Item Transmission speed 4 2 Specifications for Non procedural FB Specification 1200 2400 4800 9600 19200 38400 57600 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 Coda sohvetsig 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 Upper order Lower order Lower order Upper order Calculation
31. 232C port L neret 3 9 3 3 2 When connecting to RS 485 port sssssssssssseseseeeeeeneen eene nennen nnne nnns 3 9 SEET ue wissiet da i ka je a mt p peti 3 10 3 4 1 Self diagriosis le EE 3 10 Eelere EE 3 11 1 AS to CS signal CHECK eie ear a a itid a d re destine des 3 11 LER TO DR signal Check siete ner Pre a ie p e Eo i Ta ina taq a Paga ET 3 11 8 e EE 3 11 4 Preservation of the result of the check rrarsraonvonernaoreonennonnennsnnonnnnannnassnnnenennernnennanennnssnnssnnenernavsrannener 3 11 HESE Section 3 System Configuration 3 1 Mounting Restrictions 3 1 1 Mounting position NP1L RS1 2 4 is a general purpose communication module which is connected to the SX bus of MICREX SX series The mounting position on the base board is restricted as follows They can be mounted in any slot except those for the power supply module the two slots from the left on the base board lt Base board other than 6 slots base board gt Mountable slots lt 6 slots base board gt EBEN 0 DD p U U D D Q OQ Mountable slots T link interface module Note The general purpose communication modules cannot be mounted o
32. 28 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 Cher Non procedural FB Send 512 words Receive 512 words A part of communication processing is processed by the firmware in the module Non procedural FB Send 512 words Receive 512 words _Cfrp2 A part of communication processing is processed by the firmware in the module and two message boards are used to increase the processing speed Note 1 Cfrpr FB can be used with V 2535 or later versions of the NP1L RS1 JP1L RS2 and NP1L RS4 The functions of the non procedural FB are shown below Note 2 Cfrp2 FB can be used with V 2536 or later versions of the NP1L RS1 JP1L RS2 and NP1L RS4 For the specifications of _Cfrp2 refer to EXTENDED FB FOR COMMUNICATION USER S MANUAL FH255 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 and if abnormal outputs error information lt Function diagram of Non proce
33. 2C External device With RS1 a D300win personal computer loader can be connected to an RS 485 port which is not used In this case the mode selection switch needs to be set to 2 i lt Mode selection switch 2 gt o S RS 232C port General purpose device 0 Power S RS 485 port Loader supply CPU Signal conversion None RS 485 RS 232C External device For the connection refer to 3 3 2 When connecting to RS 485 port 3 2 1 N connection 3 2 System Configurations 3 2 2 1 N Connection using RS 485 port N max 31 modules This configuration connects to external devices having an RS 485 interface via the RS 485 port The mode selection switch is set to 07 A maximum of 31 external devices can be connected However when all external devices are RS1 or RSA the maximum number is limited to 15 because only 0 to F are available for addressing RS1 or RS4 Q lt Mode selection switch 0 gt oj a O B RS 232C port General purpose device i Power 9 RS 485 port General purpose device supply CPU Signal conversion None RS 485 External device External device External device A B C V J E
34. 4 RS 232C port we UC D sub 9 pin female Sg PEEL e E Nameplate ef o gt 5 RS 485 terminating resistor RS232C 99 ON OFF switch 6 RS 485 port 89 D sub 9 pin male RS485 TERM 123 RS485 O eso fare 2 NPIL RS2 1 Status indication LED 2 Mode selection switch ONL RS232 TSI 4 RS 232C port woe VO D sub 9 pin female z Nameplate RS232C 96 2 3 2 3 Names and Functions Names and functions 3 NP1L RS4 1 Status indication LED 2 Mode selection switch 3 RS 485 station No selection switch oN pom o MODE 4 RS485 o wo ROS Te 0 F NIT Nameplate PN 5 RS 485 terminating resistor ON OFF switch 6 RS 485 port D sub 9 pin male RS485 TERM 123 RS485 2 3 2 Functions 1 Status indication LED This LED indicates the running status of NP1L RS1 2 4 NP1L RS1 Symbol Color Description ONL RS232 TSI EE E er ay EET NSKES VEETEREN VEGENE NESEN GENET STEEN ALM RXD TXD ONL Green Turns on when the module is ready to communicate with the SX bus RS485 TS2 zm ERR Red Turns on when the module is abnormal NP1L RS2 RS232C ALM Red Turns on when the communication data via RS 232C is abnormal Lo LL RS232C RXD Green Turns on when the RS 232C port is receiving data ERR as RS232C TXD
35. Additional Explanation for NP1L RS3 Appendix 3 4 Self diagnosis Related page p3 10 to p3 11 Appendix 3 4 1 Self diagnosis mode 1 Function of self diagnosis is same as NP1L RS1 2 4 However LED name is different 1 LED lighting check Of the external LEDs of the module the lighting condition of those operated by general purpose communication module are checked When the mode selection switch is set to 7 TS1 TS27 CH2 ALM and CH1 ALM LEDs light up in this order Appendix 3 4 2 Self diagnosis mode 2 1 RS to CS signal check In this check the general purpose communication module turns RS signal ON to check whether CS signal is looped back and turns ON and then checks that this signal turns OFF When both CH1 and CH2 are normal TS2 lights up proceeds to step 2 IF CH1 and or CH2 is abnormal TS2 blinks at 0 5 second intervals after 5 seconds proceeds to step 2 If CH1 is abnormal ERR lights up while TS2 blinks If CH2 is abnormal CH2 ALM lights up while TS2 blinks 2 ER to DR signal check In this check the general purpose communication module turns ER signal ON to check whether DR signal is looped back and turns ON and then checks that this signal turns OFF When both CH1 and CH2 are normal TS1 lights up proceeds to step 3 IF CH1 and or CH2 is abnormal TS1 blinks at 0 5 second intervals after 5 seconds proceeds to step 3 If CH1 is abnormal ERR
36. DCBA9876543210 Mode switch Mode switch Mode switch Mode switch Reserved CH1 station number CH2 station number x x x x No 4 and No 5 information newly added to detailed RAS information Almost same as RS3 specification 0 Status of general purpose communication module 1 Status of CH1 2 Status of CH2 3 Not used 4 Self diagnostic 1 5 Self diagnostic 2 6 Not used 7 Not used 8 Number of paritv error occurrences 9 Number of framing error occurrences 10 Number of overrun error occurrences 11 Send buffer overflow ae 12 Receive buffer overflow 13 Loopback buffer overflow No 4 Self diagnostic 1 Bit 0 External RAM abnormal Bit 1 to 15 Not used No 5 Self diagnostic 2 1514131211109 876 5432 1 0 Not used Not used Not usedl Not used Not used Not used Not used Not used Not used Not used Not used Not used CH1 Send Receive data abnormal SD RD Send data error detected CH1 Loop back abnormal SD RD Communication error detected CH2 Send Receive data abnormal SD RD Send data error detected CH2 Loop back abnormal SD RD Communication error detected App 4 5 Fuji Electric FAComponents amp Systems Co Ltd Mitsui Sumitomo Bank Ningyo cho Bldg 5 7 Nihonbashi Odemma cho Chuo ku Tokyo 103 0011 Japan Phone 81 3 5847 8011 Fax 481 3 5847 8172 URL htt
37. Designates an interface port on general purpose communication module 1 Port No 0 RS 232C port 1 RS 485 port Message port No 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 3 Reserved Not used SE Designates the transmission speed 4 i speed 0 1200 1 2400 2 4800 3 9600 4 19200 5 38400 6 57600 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 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 BTE mode 0 Off RS always ON Sending unconditional 10 Signa
38. ERR are output in one pulse Send error S_ERR Es 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 4 11 4 4 Data Sending 4 4 2 Send status list No Result of sending Remarks 00 Normally ended 01 Send buffer has overflowed HEI Reserved 03 Reserved 04 Reserved 05 Reserved 06 Reserved 40 Data send time out 41 Protocol response error 42 Reserved 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 AR Processing impossible because in loader mode AG Processing impossible because self diagnosis is being Error detection on general purpose communication executed module Co Hardware error detected during receiving Error detection on general purpose communication module CH Receive buffer has overflowed Error detection on general purpose comm
39. FC e Front runners MICREX SX series SPH USER S MANUAL General Purpose Communication Module Type NP1L RS1 RS 232C 1CH RS 485 1CH NP1L RS2 RS 232C 1CH NP1L RS3 RS 232C 2CH NP1L RS4 RS 485 1CH NP1L RS5 RS 485 2CH FEH225d Preface This User s Manual explains the system configuration of SPH general purpose communication module the specifications and operation of the modules Read this manual carefully to ensure correct operation When using modules or peripheral devices be sure to read the corresponding user s manuals listed below lt Relative manuals for the SX Programmer Expert D300win gt Title Manual No Contents User s Manual Instruction FEH200 Explains the memory language and system definitions of the MICREX SX series MICREX SX series User s Manual Hardware FEH201 Explains the system configuration the specifications and MICREX SX series SPH operations of modules in the MICREX SX series User s Manual D300win lt Reference gt FEH254 Explains the menu and icon of D300winV2 and all of the MICREX SX series operations of D300winV2 User s Manual D300win Reference FEH257 Explains the menu and icon of D300winV3 and all of the MICREX SX series operations of D300winV3 User s Manual Standard Extended FB FEH255 Explains the specification of Standard Extended FB of the MICREX SX series attachment to D300win Relative manuals for the SX Programmer Standard Standard Lo
40. N OFF switch ON OFF of terminating resistor is selected If RS 485 port is not used this switch is ignored External device lt External device side gt Transmission speed data length parity bit stop bits etc Application software for the communication 1 2 1 3 General Purpose Communication Package for Factory Automation Machine Nonsequenced FB is provided for NPIL RS1 2 4 to communicate with external serial devices Included in D300win General purpose communication package for Factory Automation machine NPAN COMF is provided to communicate with specified external serial devices NP4N COMF includes following function blocks Procedure FB name Device _CrkREX RIKA KOGYOU CO LTD REX F REX D FAREX SR series Temperature _Com AX OMRON Corporation Digital temperature controller ESAX E5XJ series controller _ComCK OMRON Corporation Digital temperature controller E5CK series _CymSDC Yamatake Corporation Digitronic temperature controller SDC40A 40G series ComV6 OMRON Corporation V600 series CshDS SHARP MANUFACTURING SYSTEM CORPORATION Microwave ID plate ID system m 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 BL7
41. None 4 Batch reset command of CPUs When resetting all the CPUs at one time request and response commands are as shown below Request command FF7A0000110000000000040300010000 Response command 007A0000110000000000040300010000 Appendix 2 3 7 Individual Start of CPU 1 Function This command activates a specified CPU in the configuration separately Each CPU cold starts or warm starts depending on the condition If the specified CPU has already been activated an error result CPU specification is made with the connection mode and connection ID 2 Command mode code Command 04h Mode 04h 3 Data format of request command response command None 4 Example of individual start command of CPU When activating a CPU separately CPU1 in a multi CPU system request and response commands are as shown below Request command FF7BFD00110000000000040400010000 Response command 007BFD00110000000000040400010000 Appendix 2 3 8 Individual Initialization Start of CPU 1 Function This command Initializes and activates a specified CPU in the configuration separately The specified CPU cold starts If the specified CPU has already been activated or the key switch is set to the RUN STOP position an error result CPU specification is made with the connection mode and connection ID 2 Command mode code Command 04h Mode 05h 3 Data format of request command response command None 4 Example of individual initialization start command of CPU Whe
42. Overrun error It becomes ON when data receive process of firmware failed while receiving data Parity error It becomes ON when parity error detected while receiving data Those error bit remains until initialize this module or power off Appendix 1 JIS Code E JIS 7 bit Codes Bi JIS 8 bit Codes Codes Appendix 1 JIS Code The following table shows the character code in Japan Industrial Standards JIS Bi JIS 7 bit Codes 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 b4 to b1 0 1 2 3 4 5 6 7 0000 0 NUL TC7 DLE SP 0 P p 0001 1 TC1 SOH DC 1 A Q a q 0010 2 TC2 STX DC2 2 B R b r 0011 3 TC3 ETX DC3 3 C S c s 0100 4 TCA EOT DC4 4 D T d t 0101 5 TCS ENQ TC8 NAK 5 E U e u 0110 6 TC6 ACK TC9 SYN 18 6 F V f v 0111 7 BEL TC10 ETB 7 G W g 1000 8 FEO BS CAN 8 H X h x 1001 FE1 HT EM 9 l Y i y 1010 FE2 LF SUB J Z j z 1011 FE3 VT ESC mi K I k 1100 FE4 FF IS4 FS lt L Y 1101 FESCH 1S3 GS 3 M m 1110 SO IS2 RS gt N i n E 1111 SI IS1 US O li o DEL Bi JIS 8 bit Codes Unlike 7 bit codes JIS 8 bit codes assign different codes for alphabetic characters than for katakana characters The table below shows the codes for alphabetic characters 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 b4 to b1 1 2 3 4 5 6 7 0000
43. PUs already activated or CPUs with the key switch set to the RUN position do not perform any processing They respond normally without error 2 Command mode code Command 04h Mode 01h 3 Data format of request command response command None 4 Batch initialization start command of CPUs When initializing and activating all the CPUs at one time request and response commands are as shown below Request command FF7A0000110000000000040100010000 Response command 007A0000110000000000040100010000 Appendix 2 3 5 Batch Stop of CPUs 1 Function This command deactivates all the CPUs in the configuration at one time CPUs already activated or CPUs with the key switch set to the RUN position do not perform any processing They respond normally without error 2 Command mode code Command 04h Mode 02h 3 Data format of request command response command None 4 Batch stop loader command of CPUs When deactivating all the CPUs at one time request and response commands are as shown below Request command FF7A0000110000000000040200010000 Response command 007A0000110000000000040200010000 App 2 7 Appendix 2 3 Loader Command Details Appendix 2 3 6 Batch Reset of CPUs 1 Function This command Resets all the CPUs in the configuration at one time This command is executed regardless of the key switch position of the CPU 2 Command mode code Command 04h Mode 03h 3 Data format of request command response command
44. T button _CFDFRN CJ CFR amp 4 B C FRPR W CFR32 3 83 Physical Hardware _CFDFVR C3 Cfm2 B CFDFRN W CFR64 Sq C SX MICREXSX _CFDPK C Civipr B CFDFVR DB Ciip2 I E T wi D ER System Definition _CFDPYX CJ MHCN SI CFDPK IB Cap ai R HOS NPIPH 08 2 z D Tasks Filename com Global Variables 0022 Files of type use Library mwt si Cancel A 2 Select an FB file name which vou want to register in the librarv and left click the Insert button 3 The FB is registered in the librarv as shown in the figure below B Project TE E Libraries Cg Libraries l C COM Note io aris CB Data Types amp Logical POUs 8 LADDER 2 Physical Hardware When C free is registered in the same manner Data Types y Logical POUs amp 8 LADDER a Physical Hardware 2 9 C SX MICREXSX BB System Definition 3 D HOS NP1PH 08 Tasks Global Variables 3 a C SX MICREXSX BB System Definition 29 R HOS NP1PH 08 SIS Tasks Global Variables Note The common FB C COM is required when using any communication FB C COM is used inside each extended communication FB It is not necessary to call it on the code worksheet and use it 4 FBs in the project registered in the library can be selected from the Function Function Block dialog box In this case child FB
45. X station No PARA 1 INTHO SX station No PARA 2 INT 50 Message port No PARA 4 INT 3 Transmission speed 9600 bps PARA 5 INT 1 8 bits PARA 6 INT Even parity PARA 7 INT 1 Stop bit 1 PARA 8 INT O DTE designation PARA 9 INT 1 Signal control PARA 10 INT 0 Signal flow control None PARA 11 INT 1 XON XOFF control None PARA 16 INT 0 Code conversion None PARA 17 INT 1 PARA 18 INT 0 PARA 19 INT 1 PARA 20 INT 2 PARA 25 INT 1 PARA 26 INTH2 PARA 31 INT 1 PARA 34 INT 1 Frame detection variable length Received bytes Variable length Number of starting code bytes 1 Starting code STX Number of end code bytes 1 End code ETX BCC none Code type ASCII Starting and end codes are also set by INT type PARA 35 INT 1000 Send timer 10 s For example when you want to set for starting PSET FALSE code it is described by INT 16 003A or END_IF INT 58 because the code for is 3A After all necessary parameters are set the processing for the above setting will not be executed from the next scan when the flag is set to FALSE 5 7 5 6 Writing the Send Data Writing the Send Data Send data is written in the variables WORD type array data which are connected to send data t
46. ables and Commands Connecting to FB terminals to FB Terminals 5 7 3 Operation for sending data Send request is made after send data and its byte length are set Send condition After confirming that the data has been written send request is turned ON OPEN OK OKF SSET OK E lI Kn S_REQ OSTS INT 18 S LEN SEND S ERR 18 bytes 9 words for the example in 5 6 Writing the Send Data S STS REND j R ERR R STS Variable SDAT which is written into data in 5 6 Writing the Send Data is connected RLEN SDAT Note When data sending is completed send end flag 5 END turns ON only for one scan In case of sending error send error flag 5 ERR turns ON only for one scan As the content of sending error is stored in send status S_STS judge the occurred error according to the S STS data stored when S ERR has turned ON 5 7 4 Data receiving operation When communication ready terminal OK is turned ON non procedural FB continuously checks whether there is any data to be received and when it exists executes operations for data receiving When the delimiter between received data frames is detected R END receive end turns ON for one scan and receive data and receive status are stored in R DAT and R STS respectively In case of receiveing error R ERR receive error also turns ON for one scan R_END REND cn R ERR HERR
47. ader Title Manual No Contents User s Manual Instruction FEH588 Explains the memory language and system definitions of the MICREX SX series MICREX SX series User s Manual Hardware FEH201 Explains the system configuration the specifications and MICREX SX series SPH operations of modules in the MICREX SX series User s Manual FEH590 Explains the menu and icon of the SX Programmer Standard SX Programmer Standard lt Reference gt and all of the operations of the SX Programmer Standard MICREX SX series This manual is structured to be applicable to both D300win and Standard Loader In addition to the above manuals the following Fuji Electric FA Components amp Systems Co Ltd site offers various manuals and technical documents associated with MICREX SX URL http www fujielectric co jp fcs eng index html 1 This manual may not be reproduced in whole or part in any form without prior written approval by the manufacturer 2 The contents of this manual including specifications are subject to change without prior notice 3 If vou find anv 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 Warning and Caution D Warning Incorrect handling of the device may
48. al computer 15 0 12 34 34 lt gt 56 78 12 78 56 5 Example of Read Data command When reading 2 word data from standard memory MW1 1000 of the CPU module CPU station No 0 request and response commands are as shown below Data 4MW1 1000 WORDH1641234 MW1 1001 WORD 16 5678 Request command FF7A000011000000000000000001060002E803000200 Response command 007A0000110000000000000000010A0002E80300020034127856 App 2 4 Appendix 2 3 Loader Command Details lt Memory type code gt The memory type code for each memory of the MICREX SX module is shown below Target module Memory type Area name Remarks CPU module 02h Standard memory MWI 04h Retain memory MWB3 08h System memory MW10 PE link module FFh Broadcast area MWL 1 Note 1 P link module FFh Broadcast area MW 1 Note 2 FL net module FFh Common memory etc MW 1 Note 1 When accessing the broadcast area of the PE link module by means of a command the address does not start with 0 Refer to the following address correspondence table Note 2 When accessing the broadcast area of the P link module by means of a command the high speed bit area high speed word area and low speed word area are not continuous Refer to the following address correspondence table lt Address correspondence table of PE link gt Access from Access from
49. al purpose communication module disconnected 91 SX bus send error 92 SX bus receive error AO Object port error Error detection on general purpose communication module A3 Processing impossible because in code conversion mode Error detection on general purpose communication module AS Processing impossible because in loader mode Error detection on general purpose communication module AG Processing impossible because self diagnosis is being Error detection on general purpose communication executed module Cp Hardware error detected during receiving Error detection on general purpose communication Parity error Franming error etc module CH Receive buffer has overflowed Error detection on general purpose communication module C2 Send buffer has overflowed Error detection on general purpose communication module C3 Send data size over Error detection on general purpose communication module 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 codes is received 4 14 Operating status of FB is stored in the RAS infomation area Variable declaration example of RAS C free gt VAR RAS C work TYPE11 END VAR
50. annel is selected and used Note 2 Note 3 Note 4 3 RS 485 station No selection switch This switch used to select a RS 485 station number of NP1L RS1 or NP1L RS4 Selecting range is 0 to F RS485 No 0 F 2 5 2 3 Names and Functions Functions 4 RS 232C port This port is D sub 9 pin connector female This connector is connected to D sub 9 pin connector male iia Signal name Signal direction RS1 2 to external device Description 1 CD Carrier detect 2 RD Receive data 3 SD gt Send data 4 ER gt Data terminal ready 5 SG Signal ground common return 6 DR Data set ready Ve 7 RS gt Request to send Screw 8 CS Clear to send 9 RI lt Call indication 5 RS 485 terminating resistor ON OFF switch This switch used to select the ON OFF of the RS 485 terminating resistor There are three positions for this switch Switch position Left Status 2 wire type Terminating resistor is available Center Terminating resistor is not available Right 6 RS 485 port 4 wire type Terminating resistor is available This port is D sub 9 pin connector male This connector is connected to D sub 9 pin connector female ge Signal name Signal direction RS1 4 to External device Description 1 SDB gt Send data signal line 2 SDA gt Send data signal line 3 SDB gt Send
51. ber of words of write data H Write data 4 Arrangement of write data The write data is arranged as shown below MICREX SX module Personal computer 15 0 12 34 34 lt gt 56 78 12 78 56 5 Example of Write Data command When writing 1 word data to retain memory MWB3 0 of the CPU module CPU station No 0 request and response commands are as shown below Write data WORD 16 1234 Request command FF7A00001100000000000100000108000400000001003412 Response command 007A0000110000000000010000010800040000000100 App 2 6 Appendix 2 3 Loader Command Details Appendix 2 3 3 Batch Start of CPUs 1 Function This command activates all the CPUs in the configuration at one time Each CPU cold starts or warm starts depending on the condition CPUs already activated or CPUs with the key switch set to the RUN position do not perform any processing They respond normallv without error 2 Command mode code Command 04h Mode 00h 3 Data format of request command response command None 4 Batch start command of CPUs When activating all the CPUs at one time request and response commands are as shown below Request command FF7A0000110000000000040000010000 Response command 007A0000110000000000040000010000 Appendix 2 3 4 Batch Initialization Start of CPUs 1 Function This command initializes and activates all the CPUs in the configuration at one time Each CPU cold starts C
52. bps or less No of connectable 1 1 One external device 1 31 Max modules Connection method D sub 9 pin connector female D sub 9 pin connector male Depends on the application program FB in the CPU module Transmission protocol Non procedural FB Included in D300win Occupied slot 1 slot ONL Normally running Green ERR General purpose communication module Red indication LED ALM Communication error Red ALM Communication error Red Status indication RXD Signal receiving Green RXD Signal receiving Green TXD Signal sending Green TXD Signal sending Green TS1 TS2 Self diagnosis Green Note 1 The use of the non procedural FB allows this mode to be used like the full duplex mode on applications Note 2 Transmission rates 300 600 76800 and 115200 bps can be used in the following combinations Version of general purpose communication module V 2535 or later Standard extended FB Cfrpr Non procedural FB with built in protocol _Cfrp2 Non procedural FB with built in protocol 2 message version vener _Cfvrpr Inverter procedure FB with built in protocol Note 3 This limitation is applied to RS1 before version V2535 2 2 Names and functions 2 3 Names and Functions 2 3 1 Names 1 NP1L RS1 1 Status indication LED 2 Mode selection switch 3 RS 485 station No selection switch NE EI
53. cification Internal current consumption 110mA or less Mass Approx 190g Appendix 4 3 Names and Functions Related page p2 3 to 2 6 Appendix 4 3 1 Names Status indication LED Mode selection switch a RS 485 station Ei G number switch B 8 Terminating resistor O eer 6 Ta block or A Ole SE Ei c SE SEI App 4 1 Appendix 4 Additional Explanation for NPIL RS5 Appendix 4 3 2 Functions 1 Status indication LED Here explains difference for NP1L RS5 Symbol Color Description CH1 ALM Red Turns on when the communication data via CH1 is abnormal CH1 RXD Green Turns on when the CH1 is receiving data CH1 TXD Green Turns on when data is being sent from CH1 CH2 ALM Red Turns on when the communication data via CH2 is abnormal CH2 RXD Green Turns on when the CH2 is receiving data CH2 TXD Green Turns on when data is being sent from CH2 TS1 Green Blinks when internal RAM error is detected in self diagnosis mode 7 TS2 Green Not used 2 Mode selection switch i Mode Switch Remarks No CH1 CH2 0 General purpose device General purpose device 1 Program
54. ctor covers on unused connectors otherwise failure or erratic operation might occur Install the furnished terminal cover on the terminal block otherwise electric shock or fire might occur 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 Engage the loader connector in a correct orientation otherwise an erratic operation might occur Before touching the PLC discharge any static electricity that may have been collected on your body To discharge it touch a grounded metallic object Static electricity might cause erratic operation or failure of the module Be sure to install the electrical wiring correctly and securely observing the operating instructions and manual Wrong or loose wiring might cause fire accidents or failure 0 When disengaging the plug from the outlet do not pull the cord otherwiase break of cable might cause fire or failure Do not attempt to change system configurations such as installing or removing I O modules while the power is ON otherwise failure or erratic operation might occur 6 Do not attemp to repair the module by yourself contact your Fuji Electric agent When replacing the batteries correctly and securely connect the battery connectors otherwise fire accidents or failure might occure To clean the module turn power off and wipe the module with a cloth moistened wi
55. dule Normal File save File delete Select the general purpose communication module SX station No 3 and then left click the Detail RAS button Cannot be fail soft amp individual reset 3 The following Detail RAS dialog box of the general purpose communication module appears First the Module intensive status information appears Detail RAS B xi Display Module sx bus station number 3 Current RAS z RAS group Module intensive status Information SX bus transmission information Fil General purpose communication module RS1 detail RAS Fiesave Type information pm File delete Content Hee Module valid running 4 When you select Type information the module format software version number and other information appear in Contents as shown below Detail RAS E Display Module sx bus station number 3 si Current RAS RAS group Module intensive status information S5 bus transmission information Fi General purpose communication module AS1 detail RAS oui File view File delete Content Her Module group type OxC8 Representative type 0x84 Type information NPIL RS1 Hardware version No Y02 Software version No MOD 7 2 7 1 RAS Information of General Purpose Communication Module 5 When you select General purpose communication module RS1 detail RAS the detailed RAS information appears in Contents
56. dural FB gt CPU module RS1 2 4 Application program External device 4 1 4 1 General 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 TA Processor Non procedural FB for RS 232C Non procedural FB for RS 485 Processor Non procedural FB for both channels General purpose communication module normal mode General purpose communication module conversion mode External device connected to RS 232C External device connected to RS 485 External device connected to RS 232C External device connected to RS 485 When used in RS 232C RS 485 conversion mode channel number for the parameter PARA 1 is 1 2 RS 485 Memorv capacitv FB Name re el Standard memory Retain memory M eee I C free 2656 402 words 3656 words 0 words 82 words Cfr252 2757 474 words 2174 words 0 words 82 words Cfr128 2757 474 words 1886 words 0 words 82 words _Cfr64 2757 474 words 1758 words 0 words 82 words _Cfr32 2757 474 words 1672 words 0 words 82 words _Cfrpr 1190 1
57. e De RS 485 RS 232C Converter jen i l L DR RS CS RI 5 SG 6 7 8 9 Personal computer side 9 pin D sub connector female 1 cp 2 RD 3 sp 4 ER 5 SG 6 DR 7 Rs 8 cs 9 RI For conversion from RS 232C to RS 485 port on personal computer use a commercially available converter 3 9 3 4 Self diagnosis Self diagnosis 3 4 1 Self diagnosis mode 1 Setting the mode selection switch of the module to 7 activates Self diagnosis Mode 1 This mode is used to check the internal memory and the lighting condition of LEDS Diagnosis flow gt C Start set the mode selection switch to 7 Check the internal memory of general purpose communication module Normal No Yes TS1 blinks 0 25s Continue to blink if RAM error Repeat Self diagnosis is detected and the check of Mode operations when Check the lighting LED lighting condition will not there is no change in the of LEDs be executed status of the mode selection switch 1 Internal memory check After the completion of LED lighting check automatically returns to the diagnosis of the internal memory of general purpose communication module If an internal memory error is detected TS1 blinks 2 LED lighting check Of the external LEDs of the module the lighting condi
58. ed as binary Specifv other than CRC 16 for the BCC expression 4 8 4 3 Initialization No Wem Description Calculation method to check for transmission error D1 D2 AS Dn D1 D2 Dn 0 Add 1 Add and invert 33 BCC calculation formula 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 X15 X2 1 Designates the code type of BCC data 0 Binary 34 BCC code type 1 ASCII 2 EBCDIC The timer value for monitoring transmission since the data send request has been 35 Send timer value sent from the CPU module onto the RS 232C line until sending is completed Normally set to 100 1 second in 0 01 second steps 36 Reserved Not used 39 Reserved 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 If you use EBCDIC at parameter No 16 and or 34 make sure to select 8 bit at parameter No 5 Note 3 This module ignore data when error detected while receiving data We recommend to use No 6 Parity No 31 BCC to detect data error if you use this module on noise environment In this case external device also support parity BCC 4 9 4 3 Initialization 4 3 2 In
59. effect the shielding wire needs to extend in the connector cover and be connected properly to the terminal Note Precaution when there is no SG terminal on the external device SG wire cannot be connected if there is no SG terminal on the external device Depending on the ambient environment in the worst module internal element might be damaged To avoid this connect a Zener diode of 6 V Zener voltage RD6 2F from NEC or equivalent between signal cable and SG terminal in the connector on this module side When 2 wire RS1 RS4 V2738 or later version has built in zener diode When 4 wire RS5 has zener diode 6 2 6 2 Wiring Method 6 2 3 When RS 232C is used Receive data Send data Communication ready Send request Signal ground Data set ready Data channel Carrier detection Call indication Data terminal ready General purpose communication module External device Pin No RD 2 SD 3 CS 8 Note RS 7 Connect as necessary on SG 5 ES the external device side DR 6 CD 1 Ri 9 ER 4 Shielded section of communication cable Shielding wire is connected using the D sub connector cover fixing screw It is possible to connect to FG of PLC via this module In order to obtain the proper shielding effect the shielding wire needs to ext
60. elata oen ntn p 5 10 5 7 4 Data receiving operation yeiki cicer iere ma pr f e bakte nakke 5 10 Section 5 Programming 5 1 Communication Program Creating Procedure Taking non procedural FB C free for example the procedure for creating a communication program is explained below 1 Install the standard expansion FB Refer to 5 2 Installation Procedure of Standard Extended FB 2 Register the library in the project tree Refer to 5 3 Registration in Library 3 Paste non procedural FB C free onto the program work sheet Refer to 5 4 Pasting Non procedural FB 4 Assign values baud rate start end cord etc to the communication parameters Refer to 5 5 Setting Communication Parameters 5 Write send data Refer to 5 6 Writing Send Data 6 Connect variables or commands to each terminal of the expansion FB Refer to 5 7 Connecting Variables and Commands to FB Terminals 5 1 5 2 Installation Procedure of Standard Extended FB Installation 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 SX Fu ET E GYPIE Installation Note If the installation dialog box does not appear perform the following operations Click Start and then Run enter autorun exe then click t
61. end in the connector cover and be connected properly to the terminal Note 1 Generally a plastic cover is used for connection as shown in the above figure Commercially available plastic cover 1 DE C4 J6 from JAE 2 HDE CTF or HDE CTF1 from Hirose Electric Co Ltd Or their equivalent Note 2 When the on site operating environment requires stricter EMC measures it is more effective to make this cable using commercially available metallic covers Metallic cover 1 DE CE J6 from JAE aluminum die cast 2 HDB CTHI from Hirose Electric Ni coated plastic 3 17JX 09H 1A from DDK Ltd Ni coated plastic Or their equivalent 6 3 Section 7 RAS 7 1 RAS Information of General Purpose Communication Module Section 7 RAS 7 1 RAS Information of General Purpose Communication Module The following describes the procedure for monitoring and analyzing the RAS information of the general purpose communication module using the D300win lt Example system configuration gt General purpose communication module MICREX SX esee o O gt To external device p x EE SE EE f 1 i 1 yj ae bus station No 3 D300win X bus station No 2 X bus station No 1 O lt Monitoring analysis procedure gt The following describes the monitoring analysis procedure us
62. enn App 3 1 Appendix 3 2 General Specifications cesses esses eee nn nennen nnn nannten App 3 1 Appendix 3 3 Names and Functions sssvennnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn App 3 1 Appendix 3 31 EE App 3 1 Appendix 3 3 2 let App 3 2 Appendix 3 4 Ee E Le EE App 3 3 Appendix 3 4 1 Self diagnosis mode App 3 3 Appendix 3 4 2 Self diagnosis mode 3 App 3 3 Appendix 3 5 Initialization Parameters rrnnnnnvnnnnnnnnnnnvnnnnnnnnnnvnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnr App 3 3 Appendix 3 6 Detailed RAS cc reeieccenrr rice swew App 3 4 Appendix 4 Additional Explanation for NP1L RS5 App 4 1 Appendix 4 1 Applicable Version for NP1L RS5 rrnnsssvrnnnnnvnnnnnvnnnnnnnvrnnnnnvnnnnnvennnnnnnnnnnnvnnnnnnnenr App 4 1 Appendix 4 2 General Specifications eese esses eee nn nennen nnne nnn annn nnman App 4 1 Appendix 4 3 Names and Functions sssvvnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn App 4 1 Appendix 4 3 1 Names C de App 4 1 eene d Nee App 4 2 Appendix 4 4 Self diagnosis rrrrrnnnnvrnnnnnvnnnnnvvnnnnnvnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn App 4 4 Appendix 4 4 1 Self diagnosis mode 1 App 4 4 Appendix 4 4 2 Self diagnosis mode 3 App 4 4 Appendix 4 5 Initialization Parameters rrnn
63. er Appendix 4 4 2 Self diagnosis mode 2 1 RS 485 data check The general purpose communication modules sends 16 bytes of data once and checks the looped back data received When both CH1 and CH2 are normal CH1 ALM lights up proceeds to step 2 If CH1 is abnormal CH1 ALM blinks at 0 5 second intervals and ERR turns ON after 10 seconds proceeds to step 2 If CH2 is abnormal CH2 ALM blinks at 0 5 second intervals and ERR turns ON after 10 seconds proceeds to step 2 2 Preservation of the result of the check After 10 seconds of displaying the results from 1 above the module returns to step 1 Here if the setting of the mode selection switch has been changed Self diagnosis Mode 2 is ended to enter the designated mode Appendix 4 5 Initialization Parameters Related page p4 7 No Item Specification Designates an interface port on general purpose communication module 1 Port No 0 CH1 1 CH2 8 DCE designation Not used in case of NP1L RS5 9 ER DR signal control Not used in case of NPIL RS5 10 Signal flow control Not used in case of NP1L RS5 Appendix 4 6 Loader Network Functions Related page p3 7 If you use this module on loader network configuration connect cable to CH2 App 4 4 Appendix 4 Additional Explanation for NP1L RS5 Appendix 4 7 Detailed RAS Related page p7 3 RS 485 station No switch setting appears on bit 5 to 9 0 to 4 on communication status area FE
64. erminal S DAT When the volume of send data is small the send data writing program is created on the same work sheet as that for expansion FB when the volume is large it is better to create the program on separate work sheet or POU This paragraph describes how to create a send data writing program on a POU other than that including the non procedural FB lt Sample variable declaration gt Because it is used by the POU on which an expansion FB is pasted the send data variable SDAT must be global Therefore it is necessary to make variable declaration at 2 locations as below Local variable declaration VAR EXTERNAL Data type C SND TYP11 is SDAT C SND TYP11 automatically declared when non procedural SSET BOOL TE FB is pasted END VAR Setting operation flag Global variable declaration VAR GLOBAL PARA C PAR TYP11 PSET BOOL TRUE l SDAT C SND TVP11 Used by the POU for setting parameter values SSET BOOL TRUE END VAR Sample setting program To set a desired value for WORD type array data SDAT IF SSET THEN SDAT 0 WORD 16 0000 SDAT 1 WORD 16 0001 SDAT 2 WORD 16 0002 SDAT 3 WORDH1640003 SDAT 4 WORD 16 0004 SDAT 5 WORD 16 0005 SDAT 6 WORD 16 0006 SDAT 7 WORD 16 0007 SDAT 8 WORD 16 0008 After all necessary values are set the processing for SSET FALSE the above setting wil
65. f start code bytes when Variable length is selected 19 Number of start code bytes 0 means no start code 20 Start code 1 Designates start code when Variable length is selected 21 Start code 2 22 Start code 3 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 Designates end code when Variable length is selected 27 End code 2 28 End code 3 29 End code 4 30 End code 5 Sets whether or not to add horizontal parity for checking text data transmission 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 byte Lower byte of BCC JUpper 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 BCC End code Note ieda ida az 1 Calculates text part and end code and inserts them behind the end code 32 Calculation range position Start code TEXT End code BCC eg 2 Calculates start code and text part and inserts them ahead of the end code BCC Note End code Start code JITEXT aM 3 Calculates start code text part and end code and inserts them behind the end code TEXT End code Z Note In this case the BCC code type cannot be designat
66. gent devices data read and write operations are possible by issuing request commands from the personal computer without preparing send and receive application programs in the CPU module The following 10 commands are prepared Function Command name Command Mode Overview Read Read Data 00h 00h Reads data from the specified data memory Write Write Data 01h 00h_ Writes data to the specified data memory PC control Activate All CPUs at One Time 04h 00h Activates all the CPUs in the configuration at one time Initialize and Activate All CPUs at Oih Initializes and activates all the CPUs in the One Time configuration at one time Deactivate All CPUs at One Time 02h Deactivates all the CPUs in the configuration at one time Reset All CPUs at One Time O3h Resets all the CPUs in the configuration at one time Activate a CPU Separately O4h Activates a specified CPU in the configuration separately Initialize and Activate a CPU 05h Initializes and activates a specified CPU in the Separately configuration separately Deactivate a CPU Separately O6h Deactivates a specified CPU in the configuration separately Reset a CPU Separately 07h Resets a specified CPU in the configuration separately Note When the Initialize and Activate All CPUs at One Time command or Initialize and Activate a CPU Separately command is executed the retain memory is cleared before activation
67. he OK button 2 When you click Standard Expansion FB Setup the following Welcome dialog box appears Welcome to the STANDARD EXPANSION FB Version 2 0 1 0E Setup program This program will install STANDARD EXPANSION FB Version 2 0 1 0E lt is strongly recommended that you exit all Windows programs before running this Setup program Click Cancel to quit Setup and then close any programs you have running Click Next to continue with the Setup program WARNING This program is protected by copyright law and international treaties Unauthorized reproduction or distribution of this program or any portion of it may result in severe civil and criminal penalties and will be prosecuted to the maximum extent possible under law Click here first 5 2 Installation 5 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 Choose Destination Location m x If you want to install to another area please click Browse and enter the directry name If vou agree with this directry please click Next The default install drive is c J IF you change the install drive you should change the library path when you use the library When you click cansel the installation aborts The target folder appears here Destination Directory Browse Cancel
68. ication module 08 RS 485 mode setting error Error detection on general purpose communication module SF Parameter modification error Parameter modification error after OPEN 40 Code conversion setting error A1 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 en General purpose communication module station No setting error 81 Channel No setting error 82 Message port No setting error 93 Open error SX bus is abnormal 94 Open error Failed the general purpose communication module initialization A3 f und EE n Error detection on general purpose communication module A5 eee bedansein Error detection on general purpose communication module A6 EE Error detection on general purpose communication module diagnosis is being executed 4 10 4 4 Data Sending 4 4 1 Data sending procedure Set data Send data S DAT d x Set data length Turned ON by the application program 4 Turned OFF by the application program Send request S_REQ Processing for sending a In case of sending error mE Send end S END S END and S ERR are output in one pulse Send status S STS X Result of sending S_END and S_
69. ing the above system as an example 1 Connect the D300win to the MICREX SX series CPU module to display the following Control dialog box GE R HOS CPU0 Call State Run Key state TERM Batch operation Individual operation otio peintre nione Stop Initial start av Left click here Program control Calendar Watch Resource information Password Close Help Failure diagnosis 2 The following Failure diagnosis dialog box appears Failure diagnosis A MW xi m Resource RAS Level Contents Detail RAS Processor bus master CPU 5X bus master CPU File save Resource Sw information File view Rotary SW CPU No 0 key State TERM File delete Change GW Loader Resource information Running Auto running mode Help Left click here to read further information 7 1 7 1 RAS Information of General Purpose Communication Module Failure diagnosis When you left click here the detailed RAS information of the selected module appears r Resource RAS Level Contents Close Detail RAS Resource information in configuration CPUO Normal All module information in configuration 5X bus station No 1 module Normal 5X bus station No 2 module Normal 5x bus station No 3 module Normal SX bus station No 254 mo
70. is interlocked by a loader command from other device 28h Command processing in progress Processing other command Cannot execute the request command 2Bh Other loader processing in progress Processing the D300win loader Cannot execute the request command 2Fh Initialization not completed System initialization in progress Cannot execute the request command 40h Data specification error An invalid data type number was specified 41h Specified data not found The specified data does not exist 44h Memory address specification error The specified address is out of the valid range 45h Memory size exceeded The number of addresses and read write words exceeds the valid range AOh Command target specification error The specified target station number is assigned no module A2h No command response No response data from the target module A4h SX bus send error An error occurred on the SX bus Cannot send or receive commands A5h SX bus send NAK A NAK occurred on the SX bus Cannot send or receive commands FFh When the request command is specified 4 Target module specification connection ID Specifies the target module Target module Connection mode Connection ID L Connection ID H CPUO 7Ah 00h 00h CPU1 to CPU7 7Bh SX bus station number for the target CPU 00h P PE link FL net 7Bh SX bus station number for the target module 00h 5 Command mode Command Major category code of commands Mode Detailed code
71. itialization 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 word type to the OPEN Status O_STS Turned ON by the application program Turned OFF by the application program Note OPEN OPEN KS Processing for initialization Ex Port closing operation Communication ready OK Note OPEN signal shall be set to Always ON during data communication If initialization error has occurred Y OPEN Status 0 STS 00 Error status 4 3 3 OPEN status list No Result of initialization Remarks 00 Ended normally 01 Transmission speed error Error detection on general purpose communication module 02 Data bit length error Error detection on general purpose communication module 03 Parity bit error Error detection on general purpose communication module 04 Stop bit error Error detection on general purpose communication module 05 DCE designation error Error detection on general purpose communication module 06 Signal flow control setting error Error detection on general purpose communication module 07 XON XOFF control setting error Error detection on general purpose commun
72. l device A B C M Y Note External devices A B and C must be the same in type as well as communication protocol For example this connection is not available when A and B are temperature controllers and C is a bar code reader RS 232C External device 3 4 1 1 1 N connection 3 2 System Configurations 3 2 4 Connection using RS 232C and RS 485 ports 2 This configuration connects to external devices using the RS 232C port and RS 485 port RS1 2 ETER lt Mode selection switch 0 gt QO 5 RS 232C port General purpose device 9 i RS 485 port General purpose device O Power Signal conversion Yes External device External device External device B C D RS 232C External device personal computer etc With this configuration the following communications can be performed 1 Communication between external device A and external device B C or D not via the CPU module 2 Communication between external device A and CPU module 3 Communication between external device B C or C and CPU module lt 1 Communication between external device A and external device B C or D gt This communication is performed directly namelv not via the CPU module NN F
73. l 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 signal to cancel the XOFF 11 XON XOFF one 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 18 RES made 0 4 wire 1 2 wire 13 Reserved Not used 14 Reserved 15 Reserved Converts binary data into a character string variable 16 Code conversion 0 None 1 ASCII conversion 2 EBCDIC conversion Designates data receiving method 0 None Receiving completes when data is received i7 Brame detection 1 Variable length Receiving completes when the data in a range between start and end codes is received Receiving completes when receive data reaches the specified number of receive data bytes 2 Fixed length 4 7 4 3 Initialization No Item Description 48 Number of ive data bvt Designates the number of receive data bytes when Fixed length is selected for umber ot receive data Dyte frame detection When Variable length is selected set this item to 0 Designates the number o
74. l not be executed from the next END IF scan when the flag is set to FALSE 5 8 Connecting to FB terminals 5 7 Connecting Variables and Commands to FB Terminals This paragraph describes how to program for each expansion FB terminal C free BOOL OPEN BOOL S REQ INT S LEN WORD array S DAT eee eee R_DAT INT array PARA EN RAS 5 7 1 Connecting variable to PARA terminal BOOL WORD BOOL BOOL WORD BOOL BOOL WORD INT INT WORD array Structure The variable which was assigned data in 5 5 Communication Parameter Setting is connected to communication parameter terminal PARA PARA Because data was assigned to array data type variable PARA in 5 5 Communication Parameter Setting connection is made only by writing variable name PARA at the terminal 5 7 2 Operation for starting FB After all necessary communication parameters are set initialization will start when the input terminal OPEN is turned ON When initialization ends the output terminal OK turns ON and communication becomes possible FB starting conditions PSET Note PSET is a flag which is programmed to turn OFF when parameter setting ends Refer to lt Sample setting program gt in 5 5 5 9 Note FB starting conditions need to be programmed such that the ON status is kept 5 7 Connecting Vari
75. les Power cables Grounding Grounding resistance of 100 0 or less 6 1 6 2 Wiring Method 6 2 1 When RS 485 is used 2 wire To make a 2 wire system as shown in the figure below 4 and 9 as well as 3 and 8 are short circuited in the connector and 1 SDB 2 SDA and 5 SG are used to connect to external devices General purpose communication module External device Pin No SDA 2 SDB 1 SG SL SDA 4 SDB S to the next external device RDA 9 RDB 8 In order to obtain the proper shielding effect the FG 6 shielding wire needs to extend in the connector cover and be connected properly to the terminal To seta terminating resistor for a 2 wire system change the RS 485 Terminating resistor ON OFF switch to 1 left side when facing the front panel 6 2 2 When RS 485 is used 4 wire system To make a 4 wire system 1 2 5 8 and 9 are used as in the figure below General purpose communication module To seta terminating resistor for 4 wire system RDA 9 RDB 8 FG 6 change to the next external device External device Pin No SDA 2 SDB 1 SG 5 1 SDA 4 SDB 3 the RS 485 Terminating resistor ON OFF switch to 3 left and right side when facing the front panel In order to obtain the proper shielding
76. loader application command H M L o T MW 1 0 T T 00 high speed bit area Mw O 4 511 00 1F FF MW L1 1 512 00 20 00 High speed 2 area MW U 1 8703 00 3F MW LI 1 8704 00 40 00 Low speed 1 area all MW LI 1 12799 00 4F FF MW L1 1 12800 00 50 00 Low speed 2 area MW LI 1 25087 00 7F FE lt Address correspondence table of P link gt Access from Access from loader application command H M L o High speed 1 area 0MW 1 0 1 ri 1 high speed bit area ou O 4 511 00 o FF MW L1 1 512 00 02 00 High speed 2 area MW L1 1 1663 00 06 ZE MW L1 1 1664 00 08 00 Low speed 1 area MW L1 1 14735 00 13 FF MW LI 1 14736 00 14 00 Low speed 2 area MW L1 1 17807 00 1F FF App 2 5 Appendix 2 3 Loader Command Details Appendix 2 3 2 Write data 1 Function This command writes the specified number of words to the specified address of the specified data memory 2 Command mode code Command 01h Mode 00h 3 Data format of request command response command Data format of request command Data format of response command Memory type Memory type Memory address L Memory address L Memory address M Memory address M Memory address H Memory address H Number of words of write data L Number of words of write data L Number of words of write data H Num
77. ming loader General purpose device 2 General purpose device Programming loader 3 Programming loader Programming loader 4 Not used 5 Not used Modem loader 6 19200 bps General purpose device Self diagnosis mode 1 diagnoses internal memorv and LED Self diagnosis mode 2 diagnoses CH1 CH2 turning back Modem loader A 9 19200 bps Programming loader Modem loader A 9600 bps General purpose device Modem loader B 9600 bps Programming loader Modem loader A C 38400 bps General purpose device Modem loader l D 38400 bps Programming loader Modem loader E 76800 bps General purpose device F Modem loader Modem loader 115200 bps 115200 bps n case of switch No F use either CH1 or CH2 Can t be used simultaneously App 4 2 3 RS 485 station No switch Used to set RS 485 station No for CH1 CH2 individually Range 00 to 1F HEX MSB CH1 CH2 CH1 No CH2 No The second digit is set by dip switch OFF 0 ON 1 Appendix 4 Additional Explanation The first digit is set by rotary switch 0 to F 4 Terminating resistor ON OFF switch for NP1L RS5 This switch used to select the ON OFF of the RS 485 terminating resistor There are three positions for this switch cp 5 RS 485 terminal block Switch position Status Right 2 wire type terminating resistor is available Center Terminating resistor is not available Left 4 wire
78. munication module 1514131211109 8 76 54 3 2 1 0 Mode switch Mode switch Mode switch Mode switch Reserved Reserved Reserved Reserved Reserved Reserved Reserved 1 71 Reserved RS 485 station No RS 485 station No 1 RS 485 station No RS 485 station No x8 x4 x2 x1 annann Reserved when NP1L RS2 is used 4 16 Section 5 Programming Page 5 1 Communication Program Creating Procedure sssseesennenzzznnnnzznznnzzznnnnznmnnnzzn 5 1 5 2 Installation Procedure of Standard Extended FB esee 5 2 5 3 Registration in Library rrnnnnnvnnnnnnnnnvennnnnnnvnnnnnnnnnvennnnnnnnvennnnnnnvnennnnnnnvennnnnnnvnenennnnnvennennn 5 5 5 4 Pasting Non procedural FB rrsannnvvnnnnnnnvnnnnnnnnnvnnnnnnnnnvnnnnnnnnvnnnnnnnnnvennnnnnnvnennnnnnnvennennn 5 6 5 5 Communication Parameters Setting rrnnvrnnnnvnnnnnvvnnnnvnnnnnnnnnnnvvnnnnnnnnnnnnennnnnnnnnnnnnnnnnr 5 7 5 6 Writing the Send Data rrrnnvnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnennnnnnnnnnnennnne 5 8 5 7 Connecting Variables and Commands to FB Terminals 5 9 5 7 1 Connecting variable to PARA terminal essen nennen 5 9 5 7 2 Operation for starting F B suite tte ette pret tei p ce ote Ras BER eaae named 5 9 5 7 9 Operation for sending data cci ricis
79. n T link or OPCN 1 slave station base boards Ol Power supply Power supply T link master module 3 1 2 Number of mountable modules A maximum of 16 modules per configuration can be connected However when other communication related modules are used in the same configuration the maximum number of 16 is the total of these and NP1L RS1 2 4 modules P link module NP1L PL1 PE link module NP1L PE1 FL net OPCN 2 module NP1L FL1 General purpose communication module NP1L RS1 2 4 PC card interface module NP1F PC2 Memory card interface module NP1F MM1 Maximum of 16 modules per configuration 3 1 3 2 System Configurations 1 1 connection 3 2 1 1 1 Connection using RS 232C port This configuration connects to an external device having an RS 232C interface via the RS 232C port The mode selection switch is set to 0 zero IATA RS1 or RS4 Mode selection switch 0 gt O 5 a RS 232C port General purpose device Q k RS 485 port General purpose device Q Power Signal conversion None supply CPU RS 23
80. n initializing and activating a CPU separately CPU1 in a multi CPU system request and response commands are as shown below Request command FF7BFD00110000000000040500010000 Response command 007BFD00110000000000040500010000 App 2 8 Appendix 2 3 Loader Command Details Appendix 2 3 9 Individual Stop of CPU 1 Function This command deactivates a specified CPU in the configuration separately If the specified CPU has already been deactivated or the key switch is set to the RUN STOP position an error result CPU specification is made with the connection mode and connection ID 2 Command mode code Command 04h Mode 06h 3 Data format of request command response command None 4 Example of individual stop command of CPU When deactivating a CPU separately CPU1 in a multi CPU system request and response commands are as shown below Request command FF7BFD00110000000000040600010000 Response command 007BFD00110000000000040600010000 Appendix 2 3 10 Individual Reset of CPU 1 Function This command resets a specified CPU in the configuration separately If the key switch is set to the RUN STOP position an error result CPU specification is made with the connection mode and connection ID 2 Command mode code Command 04h Mode 07h 3 Data format of request command response command None 4 Example of individual reset command of CPU When resetting a CPU separately CPU1 in a multi CPU system request and response commands a
81. nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn App 4 4 Appendix 4 4 1 Self diagnosis mode 1 E App 4 4 1 LED lighting Check EE App 4 4 Appendix 4 4 2 Self diagnosis mode 3 App 4 4 KE data Check aan App 4 4 2 Preservation of the result of the Check rrr cn re nemne App 4 4 Appendix 4 5 Initialization Parameters rssvvnnnnnnnnvennnnnnnvnnnnnnnnnvnnnnnnnnnvvnnnnnnnvnnnennnnn App 4 4 Appendix 4 6 Loader Network Functions eene App 4 4 Appendix 4 7 Detailed RAS nnnernnveranvrnnvennnvennvnnnnvnnnnvnnnnennnvnnnnennnennnvennnvennvnnnnvnnnnnennnnr App 4 5 Appendix 4 Additional Explanation for NP1L RS5 Communication module Type NP1L RS5 has two RS 485 port Function is almost same as other modules Type NP1L RS1 RS2 RS4 Here explains difference between NP1L RS5 and other modules NP1L RS1 RS2 RS4 As for common function with other modules please read main chapter of this manual Appendix 4 1 Applicable Version for NP1L RS5 Related page p1 4 Type Support version CPU SPH200 30 or later include NP1L RS1 2 4 SPH300 25 or later include NP1L RS1 2 4 Loader D300win V2 Not supported D300win V3 V3 3 2 0 or later Standard Loader V2 2 2 1 or later If you use NP1L RS5 you need to use with above mentioned version CPU and Loader NP1L RS5 supports Modem based loader function and Standard extended FB Appendix 4 2 General Specifications Related page p2 1 Item Spe
82. nnnvnnnnnnnnnnnvnnnnnnnnnnvnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnr App 4 4 Appendix 4 6 Loader Network Functions ssrvvrnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnneer App 4 4 Appendix 4 7 Detailed RAS rnnnernnvennnvnnnnvnnnnvennnennnvennnvnnnnvnnnnennnnennnvennnvnnnnvnnnnenunvennnvnnnnvnnnnvnnnnennner App 4 5 Section 1 General Page 1 1 Generali iii east staat ceca cde eee tcc Leu eile 1 1 1 2 Selections and Programs for the Communication esee 1 2 1 3 General Purpose Communication Package for Factory Automation Machine 1 3 1 4 Product Versions and Supported Functions cessere 1 4 1 4 1 Supported functions 1 4 2 Available standard extended FB arrat 1 4 General Section 1 General 1 1 General NP1L RS1 2 4 are communication modules which enable data communication between a CPU module and external devices and which are connected to the base board on the SX bus of MICREX SX series NP1L RS1 2 4 are sometimes abbreviated as RS1 2 4 The port type and the number of ports are as follows Type No of ports NP1L RS1 RS 232C 1 channel RS 485 1 channel NP1L RS2 RS 232C 1 channel NP1L RS4 RS 485 1 channel RS1 A a RS 232C G 1 1 1 1 External Q Power device supply CPU I O
83. oder Applies to 6 19200 bps General purpose device Not available V1031 or later 7 Self diagnosis mode 1 diagnoses internal memory and LED 8 Self diagnosis mode 2 diagnoses RS 232C RS 485 turning back Modem loder Applies to 9 19200 bps Programming loader Not available V1031 or later A Modem loder General purpose device Not available 9600 bps purp Modem loder d B Programming loader Not available 9600 bps 9 g Applies to Modem loder V2535 or later C 38400 bps General purpose device Not available Modem loder D 38400 bps Programming loader Not available Modem loder B E General purpose device Not available 76800 bps purp Applies to Note 5 Modem loder Modem loder il V2536 or later F 115200 bps 115200 bps Note 1 For details of the function mode refer to 3 2 Svstem configuration For the self diagnosis refer to 3 4 Self diagnosis Programming loader is the mode for connecting to D300win Communication specifications are fixed to 38400 bps for transmission speed 8 bits for data length 1 bit for stop bits and even for parity Modem loader is the mode that is basically used to connect to D300win loader via a modem In general for modems none is specified for parity Therefore in this mode communication specifications become 8 bits for data length 1 bit for stop bits and none for paritv Note 5 Either ch
84. on 4 Software Interface Page 41 General E T A A T 4 1 4 2 Specifications for Non procedural FB rrnvrnnnnnvnnnnvvnnnnnvnnnnnnnnnnnvnnnnnnnnnnnvnnnnnnnnnnnnnvnnnnr 4 3 4 2 1 Communication specification niise oks iea ae i iiaea itai nn 4 3 4 22 FB format ie a i n 4 4 4 2 9 FB ru e TEE 4 5 4 3 initialization 4 7 4 3 1 Initialization parameters mm 4 7 4 3 2 Initiali ati n procedure vu sissa dei aa a p A 4 10 4 3 3 OPEN statusilist iii i a dash gende 4 10 4 4 Data Sending 22se EE 4 11 4 4 1 Data sending procedure sees essere nennen nnn mn nnn nnne enhn nennen 4 11 4 4 2 Send status let 4 12 4 5 MPriCcAiCcuuub 4 13 4 5 1 Data receiving Procedure is si ii ia cs A ee 4 13 4 5 2 Receiving status list cs iii iicet inen pk ir a ede Len e 4 14 46 RAS Information egene ege edd 4 15 Section 4 Software Interface 4 1 General The non procedural FB supplied with the D300wind is used for communication between the NP1L RS1 2 4 and external devices The non procedural FB performs data communication between the CPU module and external devices based on the start stop synchronous transmission protocol The following seven types of non procedural FBs are offered FB Name Specification Overview C free Non procedural FB Send 512 words Receive 512 words Cfr252 Non procedural FB Send 252 words Receive 252 words Cfr1
85. p www fujielectric co jp fcs eng Information in this manual is subject to change without notice
86. r overflow ES interrupts Receive buffer overflow 25 Number of SX bus receive error Loopback buffer overflow interrupts bd 26 Number of error message data receptions 27 Number of invalid message data receptions 28 31 Not used 7 3 7 1 RAS Information of General Purpose Communication Module e RS 232C RS 485 Port status Control data Error data 1514131211109 87 654 32 1 0 RS signal CS signal Meaningful when the RS 232C port is used E ES Reserved when the RS 485 port is used I CD signal CI signal Initialization end Reserved Send error Receive error Framing error Overrun Note If a framing error overrun error or parity error occurs Parity error products with V 2535 or earlier module versions incur Reserved module nonfatal error while products with V 2535 or later Reserved module versions do not Reserved General purpose module communication status 1514131211109 87654321 0 Mode switch x8 Mode switch x4 Mode switch x2 Mode switch x1 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved RS 485 station No x8 RS 485 station No x4 RS 485 station No x2 Reserved when NP1L RS2 is used RS 485 station No x1 Framing error It becomes ON when stop bit is not detected while receiving data e
87. range designation Designate position Formula Selected from add add and invert EOR CRC BCC code Selected from character code binary code Transmission timer value x10ms Note Transmission rates 300 600 76800 and 115200 bps can be used in the following combinations Version of general purpose communication module V 2535 or later Standard extended FB _Cfrpr Non procedural FB with built in protocol V 2536 or later _Cfrp2 Non procedural FB with built in protocol 2 message version 4 3 4 2 Specifications for Non procedural FB 4 2 2 FB format Input terminal name Output terminal name i _C_free Note 1 Open BOOL OPEN BOOL OK 1 Communication ready Send request BOOL S_REQ WORD O STS f Open status Send data length INT S_LEN BOOL S END Send end BOOL S ERR Send error WORD S STS f Send status BOOL R END Receive end BOOL R ERR Receive error WORD R STS Receive status INT R LEN Receive data length INT STN NO RS 485 station No Send data Send data Receive data Receive data IN OUT terminal Communication parameter Communication parameter Note 2 RAS information RAS information indicates data type Note 1 All non procedural FBs have the same pin assignment Note 2 Only the FB pins necessary for control are used by connecting variables to them However be sure to connect variables to the IN OUT pins 4 4
88. re as shown below Request command FF7BFD00110000000000040700010000 Response command 007BFD00110000000000040700010000 App 2 9 Appendix 3 Additional Explanation for NP1L RS3 Page Appendix 3 1 Applicable Version for NP1L RS3 eese App 3 1 Appendix 3 2 General Specifications sees App 3 1 Appendix 3 3 Names and Functions ssssseeseenennzzznnnnnnnnnzznnnnnnznzznnnnnnzzznnnnnnzzzz App 3 1 Appendix 3 3 1 Names ees ee EEN a L ea App 3 1 Appendix Eelere EE App 3 2 Appendix 3 4 Self diagnosis rnnnvvnnnnnvnnnnnvnnnnnvnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn App 3 3 Appendix 3 4 1 Self diagnosis mode 1 EE App 3 3 1 LED ifo le CHECK EE App 3 3 Appendix 3 4 2 Self diagnosis mode 3 App 3 3 KEE Signal cheek i ra a NR App 3 3 VER IS DR Nee Bei e App 3 3 3 AS 232C E App 3 3 4 Preservation of the result of the Check ains reete reet rer a ede App 3 3 Appendix 3 5 Initialization Parameters eere App 3 3 Appendix 3 6 Detailed RAS nnnernnvernnvrnnvennnvennvnnnnvnnnnvnnnnennnvnnnnennnvnnnnennnvensvennnvnnnnnennnnr App 3 4 Appendix 3 Additional Explanation for NP1L RS3 Communication module Type NP1L RS3 has two RS 232C port Function is almost same as other modules Type NP1L RS1 RS2 RS4 Here explains difference between NP1L RS3 and other modules NP1L RS1 RS2 RS4 As for common function with other module
89. ries and PYH series All versions Note 1 _CfdPK For FUJI bar code reader PK2 series All versions Note 2 Note 1 This FB uses the RS 485 port Cannot be used with the NP1L RS2 which is provided only with the RS 232C port Note 2 This FB uses the RS 232C port Cannot be used with the NP1L RS4 which is provided only with the RS 485 port 1 4 Section 2 Specifications Page 2 1 General Specifications rrnsrnnnnnnnnnnnvennnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnennnnnnnnnnnnnnnnn 2 1 2 2 Communication Specifications cesses esee essen nennen nennen nena 2 2 2 3 Names and Functions munaannvnnnnnnnnnvnnnnnnnnvnnnnnnnnnvnnnnnnnnnvnnnnnnnnvnenennnnnvennnnnnnvnennnnnnnvennnnnn 2 3 2 31 Names ere ede et edes eee 2 3 CGD LS Dear Sa earner er ee ee Pee eee eee ae eee 2 3 Nd 2 3 GNIR 2 4 2 3 2 suec EE 2 4 2 4 DIMENSIONS i a TEC IuTT 2 7 General specifications Section 2 Specifications 2 1 General Specifications Item Specification Operating ambient 0 to 55 C temperature Storage 25 to 70 C Physical temperature environmental Relative humidity 20 to 95 RH no condensation conditions Pollution degree 2 Corrosion immunity Free from corrosive gases Not stained with organic solvents Operating altitude 2000m or less above sea level Transport condition 70kPa or more Mechanical Vibration Half amplitude 0 15mm Constant acceleration 19 6m
90. rmal CH2 RXD Green Turns on when the CH2 is receiving data CH2 TXD Green Turns on when data is being sent from CH2 2 Mode selection switch i Mode Switch Remarks No CH1 CH2 0 General purpose device General purpose device 1 Programming loader General purpose device 2 General purpose device Programming loader 3 Programming loader Programming loader 4 Not used 5 Not used Modem loader 6 19200 bps General purpose device Self diagnosis mode 1 diagnoses internal memory and LED Self diagnosis mode 2 diagnoses CH1 CH2 turning back Modem loader 9 19200 bps Programming loader Modem loader A A 9600 bps General purpose device Modem loader B 9600 bps Programming loader Modem loader C 38400 bps General purpose device Modem loader A D 38400 bps Programming loader E Modam Ad General purpose device 76800 bps RS F Modem loader Modem loader 115200 bps 115200 bps In case of switch No F use either CH1 or CH2 Can t be used simultaneously 3 RS 232C port Same type connector and pin assignment as NP1L RS2 In case of NP1L RS3 SG Pin No 5 and FG M2 6 Screw are internally connected Generally connect shield wire of RS 232C cable to FG of NP1L RS3 However if communication failed because of noise connect shield wire of RS 232C cable to both FG of NP1L RS3 and FG of external device Ground on both device App 3 2 Appendix 3
91. rocedural FB Contents changed according to addition of the modem loader function Descriptions of the standard extended FB in Appendix 2 deleted and reprinted in Standard Extended FBs for General Purpose Communication Module FEH255 The content of 6 2 Wiring method was reviewed Wrong description in paragraph 3 2 7 was corrected Communication specifications for Modem loader and Programming loader modes were added to paragraph 2 3 2 NP1L RS3 was added Wrong description in paragraph 3 4 1 was corrected Paragraph 4 3 1 Note2 was added Wrong description in paragraph 6 2 2 was corrected Appendix 2 3 1 Memory type code 00h 01h deleted NP1L RS5 was added Appendix 4 Contents Preface Safety Precautions Revisions Contents Page Section 1 General BN E Tel General 1 1 1 2 Selections and Programs for the Communication sssssrennnnnzznnenzznznnnnznnnnnnzznnnnzznannnzzznzz 1 2 1 3 General Purpose Communication Package for Factory Automation Machine 1 3 1 4 Product Versions and Supported Functions rrsssrrrnnnvnnnnnvvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnnnnnnnner 1 4 1 41 Supported functions usce arenaen tote is Sad Paste spredde 1 4 1 4 2 Available standard extended FB nrnnvnnnnnnnvnnnnnnrnnennnnnnrnrnnvnnnvnnvnnenvnnvnnenrnnnnenvnnennnnnnnneesvnnnnenrennennnnennnene 1 4 Section 2 Specification
92. s sess ssennnnnnnnnnznnnnnnnnnnzzznnnnnnnnnnzzzznnnnnnnmmzzznnnnnnee 27 1 2 1 General Specifications 2 croci pa al EEGEN 2 1 2 2 Communication Specifications rssrrrnnnvnnnnnvvrnnnnvnnnnnnvennnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnn 2 2 223 Names and FUNCTIONS mec 2 3 vss Inc Ce 2 3 2 92 FUNCOMS Lu 2 4 2 4 DIMENSIONS i etsende 2 7 Section 3 System Configuration eeeeeeeeeeeeee O71 Kadett te e TEE 3 1 Sad MOUM POSHO WEE 3 1 3 1 2 Number of mountable modules semm nn KE aptina ausy 3 1 3 2 System Configurations rnnavrnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnennnnnnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnennnnr 3 2 3 2 1 1 1 Connection using RS 232C port 3 2 3 2 2 1 N Connection using RS 485 port N max 31 modules 3 3 3 2 3 Connecting independently to RS 232C and RS 485 porte 3 4 3 2 4 Connection using RS 232C and RS 485 ports OO 3 5 3 2 5 Connecting a personal computer loader to the RS 232C port and RS 485 port 3 7 3 2 6 Loader network configuration using RS 485 sse nennen nnne nens 3 7 3 2 7 Loader network configuration using modems 1 rennrvrnnnnvnnnnvrnnnvrnnnnvnnnnvrnnnnvnennrnnrnrenrrnnnerrensnrenernannnnn 3 8 3 3 Loader Connecting Cable rrrnnannnnnnvnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnr 3 9 3 3 1 When
93. s FBs which start with C like CBCCII etc used inside C free or other extended communication FBs are also displayed However use only parent FBs C free etc on the code worksheet Function Function Block f i xi Group Name Function block OK c FREE EX Help TTE L Tee Add CBCC11 _CCAL11 _CFCK11 _CPCK11 _CPOS11 CSMK11 Height Help Local Variables Worksheets Properties Instance C free 1 fo Advanced gt gt l HEE 5 5 5 4 Pasting Non procedural FB The following procedure pastes non procedural FB C free on the LADDER code worksheet Pasting procedure 1 Open the code work sheet on which you want to paste C free Code work sheet DDER LADD mix 3 6 Project E Libraries C COM Double click this T y _C_FREE item with the left Left click the desired point on the Data Types button code work sheet to determine the 3 Logical POUs pasting position E LADDER sde LADDERT i LADDERV fa LADDER Sa Physical Hardware 3 C SX MICREXSX BA System Definition a D HOS NP1PH 08 Tasks Global Variables 2 Select non procedural FB C free jak e33 lt o 2 ej m m d Left click this button Function Function Block xl Group Name Function block kab E free p Hep Cancel
94. s please read main chapter of this manual Appendix 3 1 Applicable Version for NP1L RS3 Related page p1 4 Type Support version CPU SPH200 30 or later include NP1L RS1 2 4 SPH300 25 or later include NP1L RS1 2 4 Loader D300win V2 V2 2 6 0 or later D300win V3 V3 1 4 0 or later Standard Loader V2 1 0 0 or later If you use NP1L RS3 you need to use with above mentioned version CPU and Loader NP1L RS3 supports Modem based loader function and Standard extended FB Appendix 3 2 General Specifications Related page p2 1 Item Specification Isolation method Not isolated Internal current consumption 110mA or less Mass Approx 140g Appendix 3 3 Names and Functions Related page p2 3 to 2 6 Appendix 3 3 1 Names Status indication LED Mode selection switch MODE RS 232C port CH1 Ni D sub 9 pin female Nameplate RS232C CH1 RS 232C port CH2 D sub 9 pin female RS232C CH2 ceg eo App 3 1 Appendix 3 Additional Explanation for NPIL RS3 Appendix 3 3 2 Functions 1 Status indication LED Here explains difference for NP1L RS3 Symbol Color CH1 ALM Red Description Turns on when the communication data via CH1 is abnormal CH1 RXD Green Turns on when the CH1 is receiving data CH1 TXD Green Turns on when data is being sent from CH1 CH2 ALM Red Turns on when the communication data via CH2 is abno
95. se 7 1 Appendix 1 JIS Code E ss APP L1 BIS e App 1 1 E JiS 86 bit COS oc ct tees ee ee ee le App 1 1 Appendix 2 Data Access by Command App 2 1 Appendix 2 1 Command Overview rrnnnvvnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnnn App 2 1 Appendix 2 2 Send Data Format of Commands ssrennnznnnnnnznnnnnzzznnnnznznnannnznmennzzzmnnnzzznaz App 2 2 Appendix 2 3 Loader Command Details srssreennnnzznnnnnzznnnnnznnannnznnznzzznnnanzznnnnnzzmnnnzznnaz App 2 4 Appendix 2 3 1 Read data Lunnan ie A ab lode pa b p B A bir App 2 4 Appendix 2 3 2 Write data EE App 2 6 Appendix 2 3 3 Batch Start of CPUS rrarnennrvernvnnnarernnnennanernnnennenernrnennenennrnennnnrnernnnennrnnssenensvnennnenenenenene App 2 7 Appendix 2 3 4 Batch Initialization Start of CPUS sse App 2 7 Appendix 2 3 5 Batch Stop of CPUS I REEL E eei es App 2 7 Appendix 2 3 6 Batch Reset of CPUS ii si ns essei sai a ede App 2 8 Contents Page Appendix 2 3 7 Individual Start of CDU App 2 8 Appendix 2 3 8 Individual Initialization Start of CRU App 2 8 Appendix 2 3 9 Individual Stop of CDU App 2 9 Appendix 2 3 10 Individual Reset of CDU App 2 9 Appendix 3 Additional Explanation for NP1L RS3 App 3 1 Appendix 3 1 Applicable Version for NP1L RS3 rrnnnnvrnnnnnvnnnnnvnnnnnnnvnnnnnnvnnnnnnennnnnnnnnnnnvnnnnnnn
96. t VAR R DAT 0 Data 1 R DAT 1 R DAT C ROV TYP11 E 1 Data 3 END_VAR R_DAT 31 Data 64 Data63 Up to here is assigned to Cfr32 Data type list gt H FB Name Data type of R DAT R_DAT 63 Data 128 Data127 E Up to here is assigned to Cfr64 C free C ROV TYP11 l Cfr252 C ROV TYP16 R_DAT 127 Data 256 Data255 A Up to here is assigned to Cfr128 Cfri28 C RCV TYP14 NE NE Es C Rov TYP13 R DAT 251 Data 504 Data503 Up to here is assigned to _Cfr252 _Cfr32 _C_RCV_TYP15 Cipr C RCV_TYP11PR R_DAT 511 Data1023 UP to here is assigned to C free Cfrpr Upper order Lower order lt Communication parameter PARA INT array gt lt Variable declaration example C free gt VAR PARA C PAR TYP11 END VAR lt Data type list gt FB Name Data type of PARA C free C PAR TYP11 Cfr252 C PAR TYP16 _Cfr128 _C_PAR_TYP14 _Cfr 4 C PAR TYP13 _Cfr32 C PAR TYP15 _Cfrpr _C_PAR_TYP11PR Variable name PARA 0 PARAL 1 PARAL 2 PARAL 3 PARA 4 PARA 5 PARA 6 PARA 7 PARA 8 PARA 9 PARA 10 PARA 11 PARA 12 PARA 13 PARA 14 PARA 15 General purpose communication module station No Port No Message port No Reserved Transmission speed Data bit Parity bit Stop bit DCE designation DTR DSR signal control RTS CTS signal flow control XON XOFF control
97. t up proceeds to step 4 If RS 485 is abnormal RS 232C ALM lights up after 10 seconds and RS 485 ALM blinks at 0 5 second intervals proceeds to step 4 If RS 232C is abnormal RS 232C ALM blinks at 0 5 second intervals after 10 seconds and RS 485 ALM lights up at 0 5 second intervals proceeds to step 4 If both ports are abnormal RS 232C ALM and RS 485 ALM blinks at 0 5 second intervals proceeds to step 4 4 Preservation of the result of the check After 10 seconds of displaying the results from 3 above the module returns to step 1 Here if the setting of the mode selection switch has been changed Self diagnosis Mode 2 is ended to enter the designated mode Note 1 When an RS 232C dedicated module NP1L RS2 is used RS 485 ALM is kept turned off When an RS 485 dedicated module NP1L RS4 is used RS 232C ALM TS1 and TS2 are kept turned off Note 2 When judged as normal the next operation is started without any waiting time Therefore after all LEDs have turned off at the start of diagnosis the corresponding LED lights up instantaneously lt RS 232C loop back connector gt lt RS 485 loop back connector gt Pin No Pin No CD 1 SDB 1 RD 2 SDA 2 7P SD 3 SDB 3 ER 4 SDA 4 SG 5 SG 5 DR 6 FG 6 RS 7 7 CS 8 RDB 8 RI 9 RDA 9 3 11 Secti
98. te the current modem setup condition to PROFILE 1 Use the contents of PROFILE 1 as the setup used when the power is turned ON Example AT amp F amp KOS0 3Q1 amp W0 amp Y0 Note For details refer to the instruction manual supplied with the modem used 3 8 Loader connecting 3 3 Loader Connecting Cable To connect a D300win personal computer loader to the RS 232C or RS 485 port of the general purpose communication module the cable must be connected in the following manner 3 3 1 When connecting to RS 232C port Because the RS 232C connector of the general purpose communication module is female attach the male connector onto the cable connector for the general purpose communication module as shown in the figure below General purpose communication module side 9 pin D sub connector male CD RD SD ER SG DR RS CS RI Personal computer side 9 pin D sub connector female CD RD SD 1 2 l 3 4 ER ROI Oe eS 3 3 2 When connecting to RS 485 port Because the RS 485 connector of the general purpose communication module is male attach the female connector onto the cable connector for the general purpose communication module as shown in the figure below General purpose communication module 9 pin D sub connector female SDB SDA SDB SDA SG FG RDB RDA OO JO Om P OM xN e De
99. th warm water Do not use thinner or other organic solvents as the module surface might become deformed or discolored 9 Do not remodel or disassemble the product otherwise a failure might occur Follow the regulations of industrial wastes when the device is to be discarded The modules covered in these operating instructions have not been designed or manufactured for use in equipment or systems which in the event of failure can lead to loss of human life If you intend to use the modules covered in these operating instructions for special applications such as for nuclear energy control aerospace medical or transportation please consult your Fuji Electric agent 6 Be sure to provide protective measures when using the module covered in these operating instructions in equipment which in the event of failure may lead to loss of human life or other grave results 0 External power supply such as 24V DC power supply which is connected to DC I O should be strongly isolated from AC power supply oo Printed on Sep 1998 Jan 2002 Mar 2004 Jan 2005 Jul 2006 Manual No FEH225 FEH225a FEH225b FEH225c FEH225d Revisions Manual No is shown on the cover Revision contents First edition Contents changed according to changes of extended FB specifications Contents changed according to inclusion of a part of the non procedural FB in the firmware and reduction of the capacity of the non p
100. tion of those operated by the general purpose communication module are checked When the mode selection switch is set to 7 TS1 TS2 RS 485 ALM and RS 232C ALM LEDs light up in this order lt Normal lighting condition of LEDs gt rs II TS2 RS485 ALM PRE 1s mis vats 10s RS232C ALM 3 10 Self diagnosis 3 4 Self diagnosis 3 4 2 Self diagnosis mode 2 This mode is used to check the completeness of communications by looping back sent data and control signals via the communication port 1 RS to CS signal check In this check the general purpose communication module turns RS signal ON to check whether CS signal is looped back and turns ON and then checks that this signal turns OFF When normal TS2 lights up proceeds to step 2 If abnormal TS2 blinks at 0 5 second intervals after 5 seconds proceeds to step 2 2 ER to DR signal check In this check the general purpose communication module turns ER signal ON to check whether DR signal is looped back and turns ON and then checks that this signal turns OFF When normal TS1 lights up proceeds to step 3 If abnormal TS1 blinks at 0 5 second intervals after 5 seconds proceeds to step 3 3 RS 232C RS 485 data check The general purpose communication modules sends 16 bytes of data once and checks the looped back data received If both ports are normal RS 232C ALM and RS 485 ALM ligh
101. unication module Ca Send buffer has overflowed Error detection on general purpose communication module Ca Send data size over Error detection on general purpose communication 4 12 module 4 5 Data Receiving 4 5 1 Data receiving procedure Communication ready Continuous receiving operation Receive data R_DAT HE MR Receive data length R LEN X Receive status R STS X Receive end R END EE In case of receive error b R END Receive error E ERR Seele 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 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 4 13 4 5 Data Receiving 4 5 2 Receiving status list No Result of receiving Remarks 00 Ended normally 01 Reserved 02 Receive buffer has overflowed 03 Reserved 04 Reserved 05 Reserved 06 Reserved 40 Reserved 41 Reserved 42 BCC error 90 Gener
102. ve status R GIG WORD OUT Code to indicate the result of receiving Receive data R LEN INT OUT Outputs the received data length length Receivedata R DAT Array of WORD IN OUT Stores received data Note 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 i RAS Structure IN OUT Operating information of this FB Bre ntormallon Note For details refer to 4 6 RAS Information Note The data format differs for each non procedural FB lt Send data S DAT WORD array gt lt Variable declaration example gt Upper order Lower order S DAT 0 VAR S DAT 1 S DAT C SND TYP11 END VAR S_DAT 31 lt Data type list gt FB Name Data type of S DAT SPAT C free C SND TYP11 Cfr252 C SND TYP16 S DAT 127 Cfr128 C SND TYP14 Cfr64 C SND TYP13 S DAT 251 Cfr32 C SND TYP15 _Cfrpr _C_SND_TYP11PR S_DAT 511 Data 2 Data 1 Data 4 Data 3 Data 64 Data63 P Up to here is assigned to Cfr32 Data 128 Data127 lt q UP to here is assigned to Cfr64 Data 256 Data255 p Up to here is assigned to Cfr128 Data 504 Data503 g UP to here is assigned to Cfr252 Data 1024 Data1023 a Up to here is assigned to C free Cfrpr 4 5 4 2 Specifications for Non procedural FB lt Receive data R DAT WORD array gt lt Variable declaration example C free g
103. y dropping or tipping it over otherwise it might be damaged or troubled 0 Follow the directions of the operating instructions when mounting the product If mounting is improper the product might drop or develop problems or erratic operations 9 Use the rated voltage and current mentioned in the operating instructions and manual Use beyond the rated values might cause fire erratic operation or failure Operate keep in the environment specified in the operating instructions and manual High temperature high humidity condensation dust corrosive gases oil organic solvents excessive vibration or shock might cause electric shock fire erratic operation or failure o Select a wire size to suit the applied voltage and carrying current Tighten the wire terminals to the specified torque Inappropriate wiring or tightening might cause fire malfunction failure or might cause the product to drop from its mounting 0 Contaminants wiring chips iron powder or other foreign matter must not enter the device when installing it otherwise erratic operation or failure might occur Remove the dust cover seals of modules after wiring fire accidents failue or fault might occur Connect the ground terminal to the ground otherwise an erratic operation might occur Periodically make sure the terminal screws and mounting screws are securely tightened Operation at a loosened status might cause fire or erratic operation Put the furnished conne
Download Pdf Manuals
Related Search
Related Contents
Visualizar/Abrir Manual - Test Equipment Depot Adept_2.10_Installat.. だんじり会館及びだんじり会館駐車場 指定管理者募集要項 Sony XT-100HD Satellite Radio Receiver Verbatim CD-R Extra Protection Installationsanleitung - IGS-Industrielle Gefahrenmeldesysteme IBM techexplorer Hypermedia Browser User's Guide Copyright © All rights reserved.
Failed to retrieve file