In this connection, ARP queries determine whether the device with IP address 192.168.6.9 is connected or disconnected. If it is disconnected, the relay output is closed and the current status is also stored in the database.NoteTo use the datalogger of the blocks you must have the "metel-datalogger" package installed.
IPWDG_ARP - IPWatchdog block.DATALOGGER_W_STRING - Metel block for logging text strings into the mysql database.NOT (Bitwise/Logical NOT) - Block for negating the input value 0->1, 1->0.
This example shows how to use function blocks for sending and receiving SMS messages. The system can be armed by sending SMS with text "Arm" or disarm sending SMS "Disarm", thereby simultaneously activating or deactivating the relay output. By sending an SMS with text Info, Iplog sends a message, the state of the current system (System is armed or System is disarmed ). If a typo is made when sending an SMS, Iplog will automatically send a message that it is an unknown command. Iplog monitors the switchboard tamper and sends an SMS message Tamper whenthe system is armed and the door is open. "Tamper Opened !"
SMS_TX - Block for sending SMS messages from the IPLOG unit.SMS_RX - Block for processing received SMS messages in the IPLOG unit.AND (Bitwise/Logical AND) - Logical AND function.EQ (Returns true if inputs are equal) - Block for comparing input values.MOVE_STRING (Copies the input value to the output) - Copy input string to output.TP (Timer Pulse: generates a pulse of width PT for each input rising edge) - Timer.SR (Bistable function block (set dominant)) - Flip-flop SR.
This connection sends an e-mail when input 1 is activated.
EMAIL_ENC_SSL - An encryption block that supports the SMTP server.EMAIL_SEND - Send an email.
Most Metel blocks contain ERR_ID outputs where an error code is written. In this case, the code is written to the console.
EQ_STRING (Returns true if inputs are equal) - Block for comparing text strings.MOVE_STRING (Copies the input value to the output) - Copies the input string to the output.ERR_TO_STRING - Converts data types to text string.DEBUG_CONSOLE - Lists strings to the console.
The audio blocks are intended for playing audio files from the unit's IPLOG memory or playing a music stream.NoteTo use audio blocks it is necessary to have the package "metel-vs10xx" installed and to use an IF-06 module.
UINT_TO_REAL (Datatype convertion) - Converts the UINT data type to REAL.MUL (Numerical multiplication) - Numeric multiplication.REAL_TO_USINT (Datatype convertion) - Converts the REAL data type to USINT.AUDIO_VOLUME - Changes the volume of the left and right channels.AUDIO_PLAY_FILE - Plays audio file.AUDIO_PLAY_HTTP - Plays audio stream.AUDIO_STOP - Stops the currently playing file or stream.
Modbus TCP Master mode is used to read or set modbus registers to modbus slave devices connected to the LAN. In this situation, it is expected that the input on the IPLOG unit controls the relay output on the switch.
R_TRIG (Rising edge detector block) - Rising edge detection.F_TRIG (Falling edge detector block) - Detection of the falling edge.OR (Bitwise/Logical OR) - Function OR.MODBUS_TCP_W_COIL - Metel block for writing coil registers to modbus slave device.
Modbus RTU Master mode is used to read or set modbus registers to modbus slave devices connected to the IPLOG unit via the RS485 bus.
MODBUS_RTU_CFG - Metel block for RS485 bus configuration, BUS 1 = /dev/ttyS3, BUS 2 = /dev/ttyS2GEN_PULSE - Metel block that generates every 1s pulse.MODBUS_RTU_R_DISCRETE - Metel block for reading a discrete register on modbus slave equipment.
In this case, the connection logs every temperature change to the mysql database in the IPLOG device.NoteTo use datalogger of blocks it is necessary to have installed package "metel-datalogger".
EQ (Returns true if inputs are equal) - Block for comparing input values.MOVE (Copies the input value to the output) - Copies the input value to the output.DATALOGGER_W_DINT - Metel block for DINT logging to the mysql database.
The connection can be used to receive TCP notifications from other devices, eg camera, recorder, etc. In this case, the IPLOG switches to relay output if it receives a TCP notification with a text "Start" and the relay output is deactivated after receiving a TCP notification with a text "End".
TCP_RX (Metel block for receiving TCP pattern) - Block for TCP pattern processing. If it is receiving a pattern to the specified port and it will contain the entered text, the log.1 will be set on the output with name contains.SR (Bistable function block (set dominant)) - Flip-Flop SR.
An example of creating logical AND, OR in LD programming.
The wiring can be used to switch on the lighting by pressing button 1 or button 2. The lighting is than activated for 10 seconds.
The wiring can be applied as a signal to release the switch when opening the switchboard or alarm system cabinet.
Usage can be found, for example, in the switch, when the first press lights up the lighting and others change the color, number of lights or intensity.
CTU (Up-counter: CV increments at each positive edge of CU) - Forward counter.EQ (Returns true if inputs are equal) - Block for comparing input values.RS (Bistable function block (reset dominant)) - RS flip-flop.
The wiring can be used to differentiate the status of Sabotage Short, Normal , Alarm and Sabotage open on the PIR sensor.
LE (Returns TRUE if IN1 is less-or-equal than IN2 (and IN2 less-or-equal than IN3, etc)) - Compares values on inputs and in the event IN1 is less than or equal to IN2 it is output log. 1.GT (Returns TRUE if IN1 greater than IN2 (and IN2 greater than IN3, etc)) - It compares the values on the inputs, and when the value on IN1 is greater than the value on IN2, the output is log. 1.AND (Bitwise/Logical AND) - Logical ANDOR (Bitwise/Logical OR) - Logical OR
The wiring can be used to switch on the lighting by pressing button 1 or button 2. The lighting is activated for 10 seconds.
OR (Bitwise/Logical OR) - Logical ORTP (Timer Pulse: generates a pulse of width PT for each input rising edge) - Timer
MOVE (Copies the input value to the output) - Copies the input value to the output.
A useful system that is able to analyze the number of cars in the building and continuously updates the occupancy status according to the outgoing cars and signals it.
CTDUD (Up-Down Counter) - Forward and reverse counter.GE (Returns TRUE if IN1 greater or equal than IN2) - A block for comparing the value of whether IN1 is greater than or equal to IN2.NOT (Bitwise/Logical NOT) - Block for negating the input value 0->1, 1->0.