background image

Device manual CR3105/CR3106

30

8.4.2  Function block CAN1_CANREMOTE_RXFILE

 

Library: 

IFM_CANx_CR310x_Vxxxxxx

 

Purpose: 

This block is integrated if files are to be received from the ifm remote 

maintenance portal�

 

Parameters:

Input

Data type

Value Description

ENABLE

BOOL

TRUE 

FALSE

processing the instance  

no processing

RECEIVE

BOOL

��� A rising edge fetches the data from the receive buffer�

Max� size of the receive buffer: 1024 bytes

RECEIVE_DATA_ADR

DWORD

��� indication of the address in the PLC memory where the 

received data is stored�

Output

Data type

Value Description

RESULT

BYTE

3

ready 

done 

busy 

error

FILE_AVAILABLE

BOOL

TRUE 

FALSE

ready 

new data available in the receive buffer 

FILE_NAME

STRING (13)

��� name of a file on the server from where the data bytes 

were sent

FILE_SEGMENT

WORD

��� file reception: number of the file segment

FILE_SEGMENT_LEN

WORD

��� file reception: file segment length

FILE_SEGMENT_MAX

WORD

��� file reception: maximum number of the file segments

Files can only be sent/received if there is an online connection to the ifm 

remote maintenance portal in the portal mode�

Содержание CR3105

Страница 1: ...Device manual CANremote GSM quad band modem for CANopen networks without with GPS receiver CR3105 CR3106 7390697 01 09 2014 UK ...

Страница 2: ...ace 8 5 2 Serial interface 8 5 3 Antenna s 9 6 Operating and display elements 10 6 1 LEDs 10 7 Set up 11 7 1 SIM card 11 7 1 1 SIM card for the direct online data transmission 11 7 2 Opening the lid 12 7 3 Inserting the SIM card 12 7 4 Removing the SIM card 13 7 5 Setting up the device with the CANremote_Configurator 14 7 5 1 Connection 14 7 5 2 Operating parameters 18 7 5 3 GSM parameters 19 7 5 ...

Страница 3: ...MOTE_SMS 32 8 4 5 Function block CAN1_DATA_CACHE 34 8 5 Real time access to CoDeSys 36 8 5 1 Requirements for real time access with CoDeSys 37 8 5 2 Initialising the connection 39 9 Technical data 40 9 1 CR3105 40 9 2 CR3106 42 10 Troubleshooting 44 10 1 GSM network search and troubleshooting 44 11 Maintenance repair and disposal 45 12 Approvals standards 45 This document is the original instructi...

Страница 4: ...ry Slight reversible injuries may result NOTICE Warning of damage to property 1 3 Further documentation If the device is operated using the control program CoDeSys 2 3 and an ifm controller further documentation is available on the internet Programming manual CoDeSys 2 3 www ifm com data sheet search e g CR0020 Download Software System manual R360 CoDeSys 2 3 www ifm com data sheet search e g CR00...

Страница 5: ...xclusion of liability and warranty 2 2 Air traffic The device must not be operated on board of aircraft Using it in an aircraft can affect the navigation and communication systems An offence can lead to legal action against the offender 2 3 Explosive substances In general radio equipment must not be used in the vicinity of petrol stations fuel depots chemical plants or blasting operations Do not t...

Страница 6: ...ected actuators Alarm messages as SMS e mail or fax only unidirectional Reading operational data of the system Location tracking of mobile machines only possible with CR3106 Receiving and sending files via the ifm remote maintenance portal To implement the applications ifm provides different chargeable communication packages 3 2 Products of the ifm remote maintenance portfolio Communication packag...

Страница 7: ...a sheet search e g CR3106 Download Software Download area with registration 4 Installation To ensure that the device is protected against electrical interference the housing must be connected to the ground of the vehicle This is for example guaranteed when the device is fixed to the conductive parts of the vehicle using the supplied brackets The screws under the 4 caps are used to fix the brackets...

Страница 8: ...rticipants must be linked Otherwise a safe device function is not ensured or the CAN interface can be destroyed 5 2 Serial interface SUB D plug 9 poles Pin Potential 1 2 3 4 5 6 7 8 9 1 n c GSM modem PC 2 TxD GSM modem PC 3 RxD Dataset ready 4 DSR Signal ground 5 GND 6 9 n c The serial interface is only used for configuring the device using the software tool CANremote_Configurator Information abou...

Страница 9: ...uctions such as driver s cabs screening Faraday effect Do not extend or shorten the cable of the antenna s NOTICE Operation without antenna s can lead to destruction of the device A good antenna signal is the prerequisite for a stable direct online transmission In case of problems change the position of the antennas or the mobile equipment if necessary A loosely tightened antenna connector also ca...

Страница 10: ... portal mode configurator orange downloader GSM green GSM connection programming mode yellow real time mode orange downloader green file transfer mode GPS green GPS signal green finding GPS signal downloader Configurator CANremote_Configurator Downloader CANmem_com_Downloader In the initialisation phase about 5 s the LEDs indicate no defined status only CR3106 If all LEDs flash simultaneously the ...

Страница 11: ...d which supports the GSM data service If you want to use the SIM card only in conjunction with the device it is in some cases possible to make data only contracts with the provider In that case the online costs may be lower NOTICE The SIM card and its contacts can be easily damaged by scratching or bending Therefore use the card carefully and avoid touching the contacts NOTICE Always disconnect th...

Страница 12: ...ice Press the SIM eject button using a pointed object e g ballpen The SIM card holder will then slightly protrude from the slot and can be removed Insert the SIM card of the network operator or of the GSM service provider into the slot of the card holder 1 Slot SIM card holder 2 SIM eject button Insert the card holder with the SIM card into the slot without much pressure until you feel a stop NOTI...

Страница 13: ...ual CR3105 CR3106 13 7 4 Removing the SIM card Disconnect the device Open the lid 7 2 Opening the lid Press the SIM eject button using a pointed object Remove the card holder Remove the SIM card from the card holder ...

Страница 14: ...onnect the device to the serial interface of the PC or notebook via the SUB D connector Start the software tool CANremote_Configurator The window Select COM Port opens automatically Select the interface to be used for communicating with the device in the window Select COM Port Selection of the serial interface Acknowledge with OK ...

Страница 15: ...ndow Link to CANremote you are requested to switch on the device Switch on the device Request to switch on the device Connecting to the CANremote_Configurator The message Link to CANremote is ok appears Acknowledge with OK Successful connection ...

Страница 16: ...5 CR3106 16 Operating parameters are automatically read and shown in the tabs Automatic reading of the operating parameters The message Parameter read is ok appears Acknowledge with OK Reading of the parameters successful ...

Страница 17: ...UK Device manual CR3105 CR3106 17 To set further parameters the following tabs are needed Operating Parameters 7 5 2 GSM Parameters 7 5 3 GPRS Parameters 7 5 4 No changes are allowed in the other tabs ...

Страница 18: ...ecessary Node ID Node ID of the device For the Node ID default see the technical data 9 CANopen SDO Segmented Transfer Activate Protocol Optimization Must be selected if the device is only to be operated in the real time mode remote access with CoDeSys Otherwise no debugging is possible with CoDeSys or the CoDeSys OPC server in the real time mode Operating Counters Counter for statistical evaluati...

Страница 19: ...may also log in to foreign networks Roaming charges may apply Manual registration After power on again the device tries to log in to the GSM network defined under Predefined GSM Operators The code number of the provider is entered in the input field or selected from the drop down list of the providers When the CANremote_Configurator is installed for the first time the drop down list is empty Load ...

Страница 20: ...d data is usually supplied by the telecommunication provider The format for the number of the SMS centre must correspond to that shown in the screenshot Only numbers are entered in the other input fields All other input fields of this tab are not relevant and must not be activated ...

Страница 21: ...is often used abroad Primary DNS Is specified by the internet service provider ISP Secondary DNS Is specified by the internet service provider ISP CGDCONTEXT APN Is specified by the internet service provider ISP APN Access Point Name CGQREQ Quality of service Is specified by the internet service provider ISP PPP Authentication Is specified by the internet service provider ISP CHAP Challenge Handsh...

Страница 22: ...s DNS name into the corresponding IP address In this case the IP address can be directly entered Only proceed this way if connecting to the server is not possible At present the IP address is 62 206 129 131 Server Port No Specified port number 60200 max GPRS Online Time in min Enter the maximum value 65535 KWP 2000 Optimize Not relevant Make no entry Socket Mode Proemion File Transfer Portal mode ...

Страница 23: ...the hard disk In the menu File save the parameter settings on the hard disk with Save Configuration Menu File 7 5 7 Transferring the saved parameters to another device Connect the device to the PC notebook and the software tool CANremote_ Configurator 7 5 1 Connection In the menu File load a parameter setting with Load Configuration Transfer the parameters to the device with Write to CANremote Tra...

Страница 24: ... available 8 2 Switch on behaviour After power on the device logs in to the GSM network If in the parameter settings the automatic server dial up has been selected the device will log in to the ifm server As an alternative this selection can also be made from the application 8 3 CANremote process data objects PDOs The CAN communication is based on the communication profile CiA DS 301 Since there i...

Страница 25: ...n 3 modem status 0 1 2 3 4 5 10 11 255 ok modem connected to receiver calling modem no connection unknown command no dial tone dial up not possible GPRS internet connection active connected via TCP socket modem timeout 4 file reception 0 1 no new file available new file for download available 5 send command for file transfer 0 1 129 ready for transfer file remains open on the server file closed af...

Страница 26: ...e DWORD e g 514432128 51 4430180 4 7 latitude DWORD e g 70059241 7 0059241 8 3 3 PDO3 UTC time CR3105 and CR3106 Transfer type asynchronous manufacturer specific COB ID 380 node ID DLC 5 Data byte Contents Type Description 0 4 UTC time DT e g DT 2011 01 24 12 00 00 The UTC time is not evaluated until the device has connected to the ifm remote maintenance server Only then is the PDO3 sent by the de...

Страница 27: ...rver services File transfer upload File transfer download Modem control via the application The library lib currently contains the following function blocks CAN1_CANREMOTE_MAIN 8 4 1 CAN1_CANREMOTE_rxFILE FB 8 4 2 CAN1_CANREMOTE_txFILE FB 8 4 3 CAN1_CANREMOTE_SMS FB 8 4 4 CAN1_DATA_CACHE PRG 8 4 5 Additional library An additional library IFM_CANx_CR310x_CLF_Vxxxxxx lib to represent process data in...

Страница 28: ...ance no processing ID_MODEM BYTE node number set via the CANremote_Configurator MODE BYTE 00 02 12 portal mode real time mode CoDeSys optimised real time mode transparent ONLINE BOOL TRUE switches the modem ONLINE with the rising edge and OFFLINE with the falling edge RESET BOOL TRUE resets the modem and restarts it after 30 s CLOCK_MODE BYTE 0 1 2 3 4 no clock Proemion time GPS time external time...

Страница 29: ...ial up not possible GPRS internet connection TCP connected to server modem time out STATUS_GSM BYTE 0 1 2 3 4 5 not connected connected to the home network not connected network search connection not accepted by the provider unknown connected to a foreign network roaming charges The UTC time is not evaluated until the device has connected to the ifm re mote maintenance server or received a GPS sig...

Страница 30: ...DR DWORD indication of the address in the PLC memory where the received data is stored Output Data type Value Description RESULT BYTE 0 1 2 3 ready done busy error FILE_AVAILABLE BOOL TRUE FALSE ready new data available in the receive buffer FILE_NAME STRING 13 name of a file on the server from where the data bytes were sent FILE_SEGMENT WORD file reception number of the file segment FILE_SEGMENT_...

Страница 31: ...rver e g datafile dat FILE_ADR DWORD indication of the address in the PLC memory where the sent data bytes are stored FILE_LEN WORD length of the data string to be sent or number of the data bytes FILE_COMMAND BYTE 0x01 The file is opened for write access on the server and remains open for receiving further data bytes 0x81 The file is opened for write access on the server and data is written to it...

Страница 32: ...a text message as fax to the target call number sends a text message as e mail to the e mail address SMS_SEND_TEXT STRING 160 data bytes to be sent maximum 160 data bytes can be sent SMS_SEND BOOL TRUE A rising edge sends the data bytes as SMS fax or e mail to the entered target SMS_RECEIVE BOOL TRUE A rising edge fetches the data bytes from the receive buffer of the SIM card Output Data type Valu...

Страница 33: ...urce If the modem has connected to the server receiving sending SMS is not possible In case of invalid or corrupted data there will be no automatic repetition This has to be carried out by the user To find out whether CAN objects were lost or rejected one byte for example should be used as message counter ...

Страница 34: ...via ADR operator DATA_IN6 POINTER address dataset 6 determined via ADR operator DATA_IN7 POINTER address dataset 7 determined via ADR operator DATA_IN8 POINTER address dataset 8 determined via ADR operator Output Data type Value Description RESULT BYTE 0 1 2 3 ready transmission finished busy error SPACE_FULL BOOL not enough space to save more data SPACE_USED WORD number of the datasets in the mem...

Страница 35: ...N1_CAN_REMOTE CANx_CANREMOTE_MAIN END_VAR These declarations must also be made if the block is not used Otherwise the compiler reacts with an error message The constant RAM_BUFFER_MAX indicates a multiple of the total data volume which is written to the internal memory of the controller via the inputs DATA_INx The value depends on the size of the available RAM memory in the controller and on how m...

Страница 36: ...ram to a controller and forcing variables in real time mode can put an installation into non controllable states For safety reasons the remote access to a controller and or installation is only allowed to specially skilled commissioning personnel Contact your ifm sales partner for a training seminar ...

Страница 37: ...om version 5b Configure the device with the software tool CANremote_Configurator As an alternative switch the device to the real time mode via the application program library IFM_CANx_CR310x_Vxxxxxx lib Install the add on tool CANremote_Client www ifm com Service Download Specify the communication channel in CoDeSys To do so select Communication Parameters in the menu Online Open the window Commun...

Страница 38: ...rd On delivery the password is GSMONLIN 7 5 3 GSM parameters Download ID Enter the download ID of the CAN controller Proemion Username Proemion username Assigned when a remote maintenance contract is concluded Proemion Password Proemion password Assigned when a remote maintenance contract is concluded Activate Logging Activate to save the connection in a protocol file log for diagnosis Current log...

Страница 39: ...ed with data In CoDeSys the variable lists can be observed online in real time mode The signal quality must at least have the value 14 Otherwise no stable connection is ensured If the connection was not successful the log file can be opened for diagnosis Current logging file path The window CANremote hides all CoDeSys messages Therefore it is useful to minimise the window immediately when the conn...

Страница 40: ...racters corresp to 7 bits character max 16 Kbytes V 42 data compression RLP Control systems DATEN 100 DB FORM PZD 03 12 96 ifm electronic gmbh Friedrichstraße 1 45128 Essen 17 09 2014 CR3105 CANremote GSM quad band modem for the transfer of SMS messages and data packets CAN gateway with CANopen interface Operating voltage 10 30 V DC We reserve the right to make technical alterations without prior ...

Страница 41: ...g voltage ON Serial interface RS 232 GSM mode GSM Control systems ifm electronic gmbh Friedrichstraße 1 45128 Essen 17 09 2014 We reserve the right to make technical alterations without prior notice CR3105 page 2 CR3105 CE marking Electrical tests Electrostatic discharge immunity Electromagnetic field immunity Electrical fast transient burst immunity Surge immunity Conducted disturbance immunity M...

Страница 42: ...character max 16 Kbytes V 42 data compression RLP 16 channels NMEA 0183 compatible Control systems DATEN 100 DB FORM PZD 03 12 96 ifm electronic gmbh Friedrichstraße 1 45128 Essen 17 09 2014 CR3106 CANremote GSM GPS quad band modem for the transfer of SMS messages and data packets CAN gateway with CANopen interface GPS receiver 10 30 V DC We reserve the right to make technical alterations without ...

Страница 43: ...N Serial interface RS 232 GSM mode GSM GPS communication GPS Control systems ifm electronic gmbh Friedrichstraße 1 45128 Essen 17 09 2014 We reserve the right to make technical alterations without prior notice CR3106 page 2 CR3106 CE marking Electrical tests Electrostatic discharge immunity Electromagnetic field immunity Electrical fast transient burst immunity Surge immunity Conducted disturbance...

Страница 44: ...the device without CAN master GSM network no network available RS 232 cable The device is connected to the PC via the serial interface and passes into the configuration mode all LEDs flash simultaneously Pin 4 DSR of the serial interface is set to logic high and the device is in the update mode all LEDs are permanently on at the same time The device does not boot if the serial interface is connect...

Страница 45: ...hich must be maintained by the user The device must only be repaired by the manufacturer Dispose of the device in accordance with the national environmental regulations 12 Approvals standards Test standards and regulations 9 Technical data The CE declaration of conformity is available at www ifm com Data sheet search CR310 More information ...

Отзывы: