Is it possible to transfer the system time to the active konfiguratio via a function or something else?

I want to transfer the current system time to the konfiguration by using a button im mappView. (Doing the same as in the info screen but just in mappView)
is there an easy solution for this problem?

Regards Victor

Hi,
I think we need a little more information about what your intention is.
The data storage for your active configuration is your PC but the time settings goes into your connected PLC (active online connection).

Or does it mean you need to set the time of the PLC in the active configuration ? Online connection and configurations are two sides of a medal but you can link both here:

Hello Victor,

you can use to set time of PLC via DTSetTime

To display time of mapp View client (in this case your PC) you can use DateTimeOutput widget without any binding.

By using an event you can write value to PLC and use it in DTSetTime FUB as input.

Code to send DateTime to PLC:

<EventBinding id="EventBinding_1">
	<Source xsi:type="widgets.brease.Button.Event" contentRefId="ContSystemInfo" widgetRefId="btSetDateTime" event="Click" />
	<Operand datatype="DATE_AND_TIME" name="dateTime">
		<ReadTarget xsi:type="widgets.brease.DateTimeOutput.ReadAction" contentRefId="ContSystemInfo" widgetRefId="DOSystemDateTime">
			<Method xsi:type="widgets.brease.DateTimeOutput.Action.GetValue" />
		</ReadTarget>
	</Operand>
	<EventHandler>
		<Action>
			<Target xsi:type="opcUa.NodeAction" refId="::MyTask:DateTime.Par.DesiredTime">
				<Method xsi:type="opcUa.NodeAction.SetValueDateTime" value="=dateTime" />
			</Target>
		</Action>
	</EventHandler>
</EventBinding>

Hopefully this helps you.

Sincerly Simon :slight_smile: